edu
.
umass
.
cs
.
automan
.
adapters
.
mturk
.
connectionpool
MTState
Related Doc:
package connectionpool
case class
MTState
(
hit_types:
Map
[
BatchKey
,
HITType
]
,
hit_states:
Map
[
HITID
,
HITState
]
,
hit_ids:
Map
[
HITKey
,
HITID
]
,
worker_whitelist:
Map
[(
WorkerID
,
GroupID
),
HITTypeID
]
,
disqualifications:
Map
[
QualificationID
,
HITTypeID
]
,
batch_no:
Map
[
GroupID
,
Int
]
)
extends
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
MTState
Serializable
Serializable
Product
Equals
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
new
MTState
()
new
MTState
(
hit_types:
Map
[
BatchKey
,
HITType
]
,
hit_states:
Map
[
HITID
,
HITState
]
,
hit_ids:
Map
[
HITKey
,
HITID
]
,
worker_whitelist:
Map
[(
WorkerID
,
GroupID
),
HITTypeID
]
,
disqualifications:
Map
[
QualificationID
,
HITTypeID
]
,
batch_no:
Map
[
GroupID
,
Int
]
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
val
batch_no
:
Map
[
GroupID
,
Int
]
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
val
disqualifications
:
Map
[
QualificationID
,
HITTypeID
]
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
getAssignmentOption
(
t:
Task
)
:
Option
[
Assignment
]
def
getBatchNo
(
groupID:
GroupID
)
:
Int
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getHITID
(
t:
Task
)
:
HITID
def
getHITIDsForBatch
(
batch_key:
BatchKey
)
:
List
[
HITID
]
def
getHITState
(
hit_key:
HITKey
)
:
HITState
def
getHITState
(
hitID:
HITID
)
:
HITState
def
getHITType
(
batch_key:
BatchKey
)
:
HITType
def
getHITTypeIDforQualificationTypeID
(
qualificationID:
QualificationID
)
:
HITTypeID
def
getWhitelistedHITType
(
workerID:
WorkerID
,
groupID:
GroupID
)
:
HITTypeID
val
hit_ids
:
Map
[
HITKey
,
HITID
]
val
hit_states
:
Map
[
HITID
,
HITState
]
val
hit_types
:
Map
[
BatchKey
,
HITType
]
def
initOrUpdateBatchNo
(
group_id:
GroupID
)
:
MTState
def
isFirstRun
(
group_id:
GroupID
)
:
Boolean
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
updateBatchNo
(
groupID:
GroupID
,
batchNo:
Int
)
:
MTState
def
updateDisqualifications
(
qualificationID:
QualificationID
,
hittypeid:
HITTypeID
)
:
MTState
def
updateHITIDs
(
hit_key:
HITKey
,
hit_id:
HITID
)
:
MTState
def
updateHITStates
(
pairs:
Seq
[(
HITID
,
HITState
)]
)
:
MTState
def
updateHITStates
(
hit_id:
HITID
,
hit_state:
HITState
)
:
MTState
def
updateHITTypes
(
batch_key:
BatchKey
,
hit_type:
HITType
)
:
MTState
def
updateWorkerWhitelist
(
worker_id:
WorkerID
,
group_id:
GroupID
,
hit_type_id:
HITTypeID
)
:
MTState
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
val
worker_whitelist
:
Map
[(
WorkerID
,
GroupID
),
HITTypeID
]
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
AnyRef
Inherited from
Any
Ungrouped