Packages

class Helper[P, R] extends StrictLogging

Manages the ongoing state for a task with a particular HIT type; keeps track of HITs and assignments that are active, saved, etc. and gives convenience methods for interfacing with Turk.

Linear Supertypes
StrictLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Helper
  2. StrictLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Helper(taskSpec: TaskSpecification { ... /* 2 definitions in type refinement */ })(implicit promptReader: upickle.default.Reader[P], responseReader: upickle.default.Reader[R], responseWriter: upickle.default.Writer[R], config: TaskConfig)

Type Members

  1. class AssignmentInReview extends AnyRef

    Represents an assignment waiting for a reviewing result.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def activeHITInfos(p: Prompt): List[HITInfo[Prompt, Response]]
  5. def activeHITInfosByPromptIterator: Iterator[(Prompt, List[HITInfo[Prompt, Response]])]
  6. def allCurrentHITInfos(p: Prompt): List[HITInfo[Prompt, Response]]
  7. def allCurrentHITInfosByPromptIterator: Iterator[(Prompt, List[HITInfo[Prompt, Response]])]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. implicit val config: TaskConfig
  11. def createHIT(prompt: Prompt, numAssignments: Int): Try[HIT[Prompt]]

    Create a HIT with the specific parameters.

    Create a HIT with the specific parameters. This should be used in order to ensure the helper has a consistent state.

  12. def deleteAll: Unit
  13. def deleteHIT(hit: HIT[Prompt]): Unit

    Deletes a HIT (if possible) and takes care of bookkeeping.

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def evaluateAssignment(hit: HIT[Prompt], aInRev: AssignmentInReview, evaluation: AssignmentEvaluation): Unit

    Process and record the result of reviewing an assignment.

  17. def expireAll: Unit
  18. def expireHIT(hit: HIT[Prompt]): Unit
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def finishedHITInfos(p: Prompt): List[HITInfo[Prompt, Response]]
  21. def finishedHITInfosByPromptIterator: Iterator[(Prompt, List[HITInfo[Prompt, Response]])]
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getInReview(assignmentId: String): Option[AssignmentInReview]
  24. def getInReview(assignment: Assignment[Response]): Option[AssignmentInReview]
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def isActive(hitId: String): Boolean
  27. def isActive(hit: HIT[Prompt]): Boolean
  28. def isActive(prompt: Prompt): Boolean
  29. def isInReview(assignmentId: String): Boolean
  30. def isInReview(assignment: Assignment[Response]): Boolean
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. def numActiveHITs: Int
  37. def numAssignmentsInReview: Int
  38. implicit val promptReader: upickle.default.Reader[P]
  39. implicit val responseReader: upickle.default.Reader[R]
  40. implicit val responseWriter: upickle.default.Writer[R]
  41. def startReviewing(assignment: Assignment[Response]): AssignmentInReview

    Mark an assignment as under review.

  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. val taskSpec: TaskSpecification { ... /* 2 definitions in type refinement */ }
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  48. object Message

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped