|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsc.cs.mturk.lib.topone.BubbleAlgorithm.Builder
public static class BubbleAlgorithm.Builder
This class is for creating a bubble algorithm in Builder pattern.
Constructor Summary | |
---|---|
BubbleAlgorithm.Builder(java.util.ArrayList<java.lang.Object> questions,
MyHit myHit)
Constructs a Builder with questions and myHit. |
Method Summary | |
---|---|
BubbleAlgorithm |
build()
Create a new instance of TreeAlgorithm. |
BubbleAlgorithm.Builder |
inputSize(int inputSize)
Set the number of inputs of a HIT. |
BubbleAlgorithm.Builder |
isLogged(boolean isLogged)
Set whether the algorithm records the computation process. |
BubbleAlgorithm.Builder |
isShuffled(boolean isShuffled)
Set whether the inputs are shuffled by the algorithm. |
BubbleAlgorithm.Builder |
jobId(java.lang.String jobId)
Set the job ID for this algorithm instance. |
BubbleAlgorithm.Builder |
logName(java.lang.String logName)
Set the name of the log file. |
BubbleAlgorithm.Builder |
numberOfAssignments(int numberOfAssignments)
Set the number of assignments for a normal HIT. |
BubbleAlgorithm.Builder |
numberOfTieAssignments(int numberOfTieAssignments)
Set the number of assignments for a tie-solving HIT. |
BubbleAlgorithm.Builder |
outputSize(int outputSize)
Set the number of outputs of a HIT. |
BubbleAlgorithm.Builder |
propertyFile(java.lang.String propertyFileName)
Set the name of the the name of the MTurk property file. |
BubbleAlgorithm.Builder |
service(com.amazonaws.mturk.service.axis.RequesterService service)
Set the service object of the library user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BubbleAlgorithm.Builder(java.util.ArrayList<java.lang.Object> questions, MyHit myHit)
questions
- the questions to be solved by workers.myHit
- the object which implements MyHit interface and
provides callback functions.Method Detail |
---|
public BubbleAlgorithm.Builder service(com.amazonaws.mturk.service.axis.RequesterService service)
service
- the service object of the library user.
public BubbleAlgorithm.Builder propertyFile(java.lang.String propertyFileName)
propertyFileName
- the name of the property file.
public BubbleAlgorithm.Builder inputSize(int inputSize)
inputSize
- the number of inputs of a HIT.
public BubbleAlgorithm.Builder outputSize(int outputSize)
outputSize
- the number of outputs of a HIT.
public BubbleAlgorithm.Builder numberOfAssignments(int numberOfAssignments)
numberOfAssignments
- the number of assignments for a normal
HIT.
public BubbleAlgorithm.Builder numberOfTieAssignments(int numberOfTieAssignments)
numberOfTieAssignments
- the number of assignments for a
tie-solving HIT.
public BubbleAlgorithm.Builder isShuffled(boolean isShuffled)
isShuffled
- true if the inputs are shuffled by the algorithm.
public BubbleAlgorithm.Builder isLogged(boolean isLogged)
isLogged
- true if the algorithm records the computation
process.
public BubbleAlgorithm.Builder logName(java.lang.String logName)
logName
- the name of the log file.
public BubbleAlgorithm.Builder jobId(java.lang.String jobId)
jobId
- the job ID for this algorithm instance.
public BubbleAlgorithm build()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |