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

public class Subject extends Object
The subject of an Experiment, e.g., an application or algorithm.
  • Constructor Details

    • Subject

      public Subject(String id, String version)
      Creates a new instance.
      Parameters:
      id - Identifier for the subject
      version - To distinguish different versions among instances with the same id
  • Method Details

    • addConfiguration

      public Subject addConfiguration(String key, Object value)
      Adds a configuration.
      Parameters:
      key - Key of the configuration entry
      value - Value for the new configuration entry; must be JSON-compatible, e.g. Integer or String
      Returns:
      this instance
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object