Class Experiment
java.lang.Object
org.apache.wayang.commons.util.profiledb.model.Experiment
An experiment comprises
Measurements from one specific Subject execution.-
Constructor Summary
ConstructorsConstructorDescriptionExperiment(String id, Subject subject, long startTime, String... tags) Create a new instance.Experiment(String id, Subject subject, String... tags) Create a new instance that is starting right now. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMeasurement(Measurement measurement) booleangetId()longgetTags()inthashCode()voidsetDescription(String description) voidvoidsetStartTime(long startTime) voidsetSubject(Subject subject) voidsetTags(Collection<String> tags) toString()withDescription(String description) Adds a description for this instance.
-
Constructor Details
-
Experiment
Create a new instance that is starting right now.- Parameters:
id- Identifier for the new instancesubject- theSubjecttags- tags to group several experiments
-
Experiment
Create a new instance.- Parameters:
id- Identifier for the new instancesubject- theSubjectof this experimentstartTime- start timestamp of this experimenttags- tags to group several experiments
-
-
Method Details
-
withDescription
Adds a description for this instance.- Parameters:
description- the description- Returns:
- this instance
-
getId
-
setId
-
getDescription
-
setDescription
-
getStartTime
public long getStartTime() -
setStartTime
public void setStartTime(long startTime) -
getTags
-
setTags
-
addMeasurement
-
getMeasurements
-
getSubject
-
setSubject
-
equals
-
hashCode
public int hashCode() -
toString
-