Class UnmodifiableExperiment

java.lang.Object
fr.ens.biologie.genomique.eoulsan.design.UnmodifiableExperiment
All Implemented Interfaces:
Experiment, Serializable

public class UnmodifiableExperiment extends Object implements Experiment, Serializable
See Also:
  • Constructor Details

    • UnmodifiableExperiment

      public UnmodifiableExperiment(Experiment experiment)
  • Method Details

    • getDesign

      public Design getDesign()
      Description copied from interface: Experiment
      Get the design related to the experiment.
      Specified by:
      getDesign in interface Experiment
      Returns:
      the Design object related to the experiment
    • getId

      public String getId()
      Description copied from interface: Experiment
      get the experiment id.
      Specified by:
      getId in interface Experiment
      Returns:
      the experiment id
    • getName

      public String getName()
      Description copied from interface: Experiment
      Get the experiment name.
      Specified by:
      getName in interface Experiment
      Returns:
      the experiment name
    • getNumber

      public int getNumber()
      Description copied from interface: Experiment
      Get the experiment number.
      Specified by:
      getNumber in interface Experiment
      Returns:
      the experiment number
    • getMetadata

      public ExperimentMetadata getMetadata()
      Description copied from interface: Experiment
      Get the experiment metadata.
      Specified by:
      getMetadata in interface Experiment
      Returns:
      the experiment metadata
    • getSamples

      public List<Sample> getSamples()
      Description copied from interface: Experiment
      Get the samples of the experiment.
      Specified by:
      getSamples in interface Experiment
      Returns:
      a list of ExperimentSample object
    • getExperimentSamples

      public List<ExperimentSample> getExperimentSamples()
      Description copied from interface: Experiment
      Get experiment samples list.
      Specified by:
      getExperimentSamples in interface Experiment
      Returns:
      a list of ExperimentSample object
    • getExperimentSample

      public ExperimentSample getExperimentSample(Sample sample)
      Description copied from interface: Experiment
      Get the experiment sample related to the sample.
      Specified by:
      getExperimentSample in interface Experiment
      Parameters:
      sample - the sample
      Returns:
      an experiment sample object if exists or null
    • setName

      public void setName(String newExperimentName)
      Description copied from interface: Experiment
      Set the name of the experiment.
      Specified by:
      setName in interface Experiment
      Parameters:
      newExperimentName - the new experiment name
    • addSample

      public ExperimentSample addSample(Sample sample)
      Description copied from interface: Experiment
      Add a sample.
      Specified by:
      addSample in interface Experiment
      Parameters:
      sample - the sample to add
      Returns:
      an experiment sample object
    • removeSample

      public void removeSample(Sample sample)
      Description copied from interface: Experiment
      Remove the sample.
      Specified by:
      removeSample in interface Experiment
      Parameters:
      sample - the sample to remove
    • containsSample

      public boolean containsSample(Sample sample)
      Description copied from interface: Experiment
      Test if the experiment contains a sample.
      Specified by:
      containsSample in interface Experiment
      Parameters:
      sample - the sample to test
      Returns:
      true if the sample is the experiment
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object