Class

spacro.tasks.HITManager

Helper

Related Doc: package HITManager

Permalink

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)

    Permalink

Type Members

  1. class AssignmentInReview extends AnyRef

    Permalink

    Represents an assignment waiting for a reviewing result.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Message

    Permalink
  5. def activeHITInfos(p: Prompt): List[HITInfo[Prompt, Response]]

    Permalink
  6. def activeHITInfosByPromptIterator: Iterator[(Prompt, List[HITInfo[Prompt, Response]])]

    Permalink
  7. def allCurrentHITInfos(p: Prompt): List[HITInfo[Prompt, Response]]

    Permalink
  8. def allCurrentHITInfosByPromptIterator: Iterator[(Prompt, List[HITInfo[Prompt, Response]])]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. implicit val config: TaskConfig

    Permalink
  12. def createHIT(prompt: Prompt, numAssignments: Int): Try[HIT[Prompt]]

    Permalink

    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.

  13. def deleteAll: Unit

    Permalink
  14. def deleteHIT(hit: HIT[Prompt]): Unit

    Permalink

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

  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def evaluateAssignment(hit: HIT[Prompt], aInRev: AssignmentInReview, evaluation: AssignmentEvaluation): Unit

    Permalink

    Process and record the result of reviewing an assignment.

  18. def expireAll: Unit

    Permalink
  19. def expireHIT(hit: HIT[Prompt]): Unit

    Permalink
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def finishedHITInfos(p: Prompt): List[HITInfo[Prompt, Response]]

    Permalink
  22. def finishedHITInfosByPromptIterator: Iterator[(Prompt, List[HITInfo[Prompt, Response]])]

    Permalink
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def getInReview(assignmentId: String): Option[AssignmentInReview]

    Permalink
  25. def getInReview(assignment: Assignment[Response]): Option[AssignmentInReview]

    Permalink
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. def isActive(hitId: String): Boolean

    Permalink
  28. def isActive(hit: HIT[Prompt]): Boolean

    Permalink
  29. def isActive(prompt: Prompt): Boolean

    Permalink
  30. def isInReview(assignmentId: String): Boolean

    Permalink
  31. def isInReview(assignment: Assignment[Response]): Boolean

    Permalink
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def numActiveHITs: Int

    Permalink
  38. def numAssignmentsInReview: Int

    Permalink
  39. implicit val promptReader: upickle.default.Reader[P]

    Permalink
  40. implicit val responseReader: upickle.default.Reader[R]

    Permalink
  41. implicit val responseWriter: upickle.default.Writer[R]

    Permalink
  42. def startReviewing(assignment: Assignment[Response]): AssignmentInReview

    Permalink

    Mark an assignment as under review.

  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. val taskSpec: TaskSpecification { ... /* 2 definitions in type refinement */ }

    Permalink
  45. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped