java.lang.Object
org.apache.wayang.commons.util.profiledb.model.Experiment

public class Experiment extends Object
An experiment comprises Measurements from one specific Subject execution.
  • Constructor Details

    • Experiment

      public Experiment(String id, Subject subject, String... tags)
      Create a new instance that is starting right now.
      Parameters:
      id - Identifier for the new instance
      subject - the Subject
      tags - tags to group several experiments
    • Experiment

      public Experiment(String id, Subject subject, long startTime, String... tags)
      Create a new instance.
      Parameters:
      id - Identifier for the new instance
      subject - the Subject of this experiment
      startTime - start timestamp of this experiment
      tags - tags to group several experiments
  • Method Details

    • withDescription

      public Experiment withDescription(String description)
      Adds a description for this instance.
      Parameters:
      description - the description
      Returns:
      this instance
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getStartTime

      public long getStartTime()
    • setStartTime

      public void setStartTime(long startTime)
    • getTags

      public Collection<String> getTags()
    • setTags

      public void setTags(Collection<String> tags)
    • addMeasurement

      public void addMeasurement(Measurement measurement)
    • getMeasurements

      public Collection<Measurement> getMeasurements()
    • getSubject

      public Subject getSubject()
    • setSubject

      public void setSubject(Subject subject)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object