Class Experiment

  • All Implemented Interfaces:
    ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder, ch.systemsx.cisd.openbis.generic.shared.basic.IIdHolder, java.io.Serializable

    @JsonObject("Experiment")
    public final class Experiment
    extends java.lang.Object
    implements java.io.Serializable, ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder, ch.systemsx.cisd.openbis.generic.shared.basic.IIdHolder
    Immutable value object representing an experiment.
    See Also:
    Serialized Form
    • Constructor Detail

      • Experiment

        public Experiment​(Experiment.ExperimentInitializer initializer)
        Creates a new instance with the provided initializer
        Throws:
        java.lang.IllegalArgumentException - if some of the required information is not provided.
    • Method Detail

      • getId

        public java.lang.Long getId()
        Returns the experiment id.
        Specified by:
        getId in interface ch.systemsx.cisd.openbis.generic.shared.basic.IIdHolder
      • getPermId

        public java.lang.String getPermId()
        Returns the experiment permanent id.
      • getCode

        public java.lang.String getCode()
        Returns the experiment code.
      • getIdentifier

        public java.lang.String getIdentifier()
        Returns the experiment identifier.
        Specified by:
        getIdentifier in interface ch.systemsx.cisd.openbis.generic.shared.basic.IIdentifierHolder
      • getExperimentTypeCode

        public java.lang.String getExperimentTypeCode()
        Returns the experiment type code.
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
      • getMetaprojects

        public java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Metaproject> getMetaprojects()
                                                                                                      throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • isStub

        public boolean isStub()
      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object