public class Assignment extends ModelItem
Modifier and Type | Field and Description |
---|---|
String |
assignment
the assigned bucket
|
String |
bucket_label
Bucket label
|
boolean |
cache
the assignment cache value
|
String |
context
the assignment context
|
String |
created
creation date
|
String |
experiment_id
experiment ID
|
String |
experimentLabel
the experiment label for this assignment
|
boolean |
overwrite
the assignment's overwrite value
|
String |
payload
this assignment's payload
|
String |
status
the assignment status
|
String |
user_id
user id
|
Constructor and Description |
---|
Assignment()
Creates an empty experiment.
|
Assignment(Assignment other)
Creates a deep copy of the
other experiment. |
Modifier and Type | Method and Description |
---|---|
SerializationStrategy |
getSerializationStrategy()
Returns the current SerializationStrategy.
|
Assignment |
setAssignment(String assignment)
Sets the assignment bucket.
|
Assignment |
setCache(boolean cache)
Sets the cache.
|
Assignment |
setContext(String context)
Sets the context.
|
Assignment |
setExperimentLabel(String experimentLabel)
Sets the experimentLabel.
|
Assignment |
setOverwrite(boolean overwrite)
Sets the overwrite.
|
Assignment |
setPayload(String payload)
Sets the payload.
|
void |
setSerializationStrategy(SerializationStrategy serializationStrategy)
Sets the SerializationStrategy which is used for JSON serialization and
ModelItem.equals(Object) . |
Assignment |
setStatus(String status)
Sets the status.
|
public String assignment
public String payload
public String status
public String context
public boolean cache
public boolean overwrite
public String experimentLabel
public String created
public String experiment_id
public String user_id
public String bucket_label
public Assignment()
public Assignment(Assignment other)
other
experiment.other
- an experiment to copy.public Assignment setAssignment(String assignment)
assignment
- the new assignmentpublic Assignment setPayload(String payload)
payload
- the new payloadpublic Assignment setStatus(String status)
status
- the new statuspublic Assignment setContext(String context)
context
- the new contextpublic Assignment setCache(boolean cache)
cache
- the new cachepublic Assignment setOverwrite(boolean overwrite)
overwrite
- the new overwritepublic Assignment setExperimentLabel(String experimentLabel)
experimentLabel
- the new experimentLabelpublic void setSerializationStrategy(SerializationStrategy serializationStrategy)
ModelItem
ModelItem.equals(Object)
.setSerializationStrategy
in class ModelItem
serializationStrategy
- the serialization strategypublic SerializationStrategy getSerializationStrategy()
ModelItem
getSerializationStrategy
in class ModelItem
Copyright © 2016. All rights reserved.