Class Subject


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

      Constructors 
      Constructor Description
      Subject​(java.lang.String id, java.lang.String version)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Subject addConfiguration​(java.lang.String key, java.lang.Object value)
      Adds a configuration.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Subject

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

      • addConfiguration

        public Subject addConfiguration​(java.lang.String key,
                                        java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object