Class

spacro

HITType

Related Doc: package spacro

Permalink

case class HITType(title: String, description: String, keywords: String, reward: Double, autoApprovalDelay: Long, assignmentDuration: Long, qualRequirements: Array[QualificationRequirement] = ...) extends Product with Serializable

Represents all of the fields necessary to produce a HIT type.

HIT Types define classes of HITs that are grouped together in the Mechanical Turk interface. A worker does not so much choose to work on an individual HIT as an individual HIT Type. After they complete one HIT, they will automatically be shown another of the same HIT Type, and if they so choose, they can automatically accept that next HIT.

From the requester's perspective, many operations with the RequesterService (such as searching and finding reviewable HITs) will be desired to apply only to HITs of a particular HIT type. We do this using the HIT Type ID of the HIT type, computed by Amazon and returned by the register() method on a HIT Type object. This gives us a way to segregate our interactions with the API between different tasks, allowing for running two different kinds of tasks in parallel (for example, a Q/A gathering task and validation task).

The HIT Type ID of a HIT is determined (automatically, by Amazon) on the basis of a set of values: its title, description, keyword, rewards, auto-approval delay, assignment duration, qualification requirements, assignment review policy, and HIT review policy. We don't bother with assignment review policies or HIT review policies, which are MTurk's way of automating assignment review; instead, we just review them here in the code. The rest of these fields are left for an instance to specify. If you wish tasks to be segregated / run separately, make sure their HIT Types differ in at least one of those fields.

title

the title of the HIT type; one of the first things workers see when browsing

description

a longer (but still short) description of the task, displayed when a worker clicks on the HIT group while browsing

keywords

comma-separated keywords, helping workers find the task through search

reward

the payment, in dollars, to a worker for having an assignment approved

autoApprovalDelay

the time, in seconds, before MTurk will automatically approve an assignment if you do not approve/reject it manually

assignmentDuration

The time, in seconds, allowed for a worker to complete a single assignment

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HITType
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HITType(title: String, description: String, keywords: String, reward: Double, autoApprovalDelay: Long, assignmentDuration: Long, qualRequirements: Array[QualificationRequirement] = ...)

    Permalink

    title

    the title of the HIT type; one of the first things workers see when browsing

    description

    a longer (but still short) description of the task, displayed when a worker clicks on the HIT group while browsing

    keywords

    comma-separated keywords, helping workers find the task through search

    reward

    the payment, in dollars, to a worker for having an assignment approved

    autoApprovalDelay

    the time, in seconds, before MTurk will automatically approve an assignment if you do not approve/reject it manually

    assignmentDuration

    The time, in seconds, allowed for a worker to complete a single assignment

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val assignmentDuration: Long

    Permalink

    The time, in seconds, allowed for a worker to complete a single assignment

  6. val autoApprovalDelay: Long

    Permalink

    the time, in seconds, before MTurk will automatically approve an assignment if you do not approve/reject it manually

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val description: String

    Permalink

    a longer (but still short) description of the task, displayed when a worker clicks on the HIT group while browsing

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

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val keywords: String

    Permalink

    comma-separated keywords, helping workers find the task through search

  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. val qualRequirements: Array[QualificationRequirement]

    Permalink
  18. val reward: Double

    Permalink

    the payment, in dollars, to a worker for having an assignment approved

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

    Permalink
    Definition Classes
    AnyRef
  20. val title: String

    Permalink

    the title of the HIT type; one of the first things workers see when browsing

  21. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped