Class ExperimentImpl
java.lang.Object
fr.ens.biologie.genomique.eoulsan.design.ExperimentImpl
- All Implemented Interfaces:
Experiment,Serializable
This class defines the default implementation of an experiment.
- Since:
- 2.0
- Author:
- Xavier Bauquet
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAdd a sample.booleancontainsSample(Sample sample) Test if the experiment contains a sample.booleanGet the design related to the experiment.getExperimentSample(Sample sample) Get the experiment sample related to the sample.Get experiment samples list.getId()get the experiment id.fr.ens.biologie.genomique.eoulsan.design.ExperimentMetadataImplGet the experiment metadata.getName()Get the experiment name.intGet the experiment number.Get the samples of the experiment.inthashCode()voidremoveSample(Sample sample) Remove the sample.voidSet the name of the experiment.toString()
-
Method Details
-
getDesign
Description copied from interface:ExperimentGet the design related to the experiment.- Specified by:
getDesignin interfaceExperiment- Returns:
- the Design object related to the experiment
-
getId
Description copied from interface:Experimentget the experiment id.- Specified by:
getIdin interfaceExperiment- Returns:
- the experiment id
-
getName
Description copied from interface:ExperimentGet the experiment name.- Specified by:
getNamein interfaceExperiment- Returns:
- the experiment name
-
getNumber
public int getNumber()Description copied from interface:ExperimentGet the experiment number.- Specified by:
getNumberin interfaceExperiment- Returns:
- the experiment number
-
getMetadata
public fr.ens.biologie.genomique.eoulsan.design.ExperimentMetadataImpl getMetadata()Description copied from interface:ExperimentGet the experiment metadata.- Specified by:
getMetadatain interfaceExperiment- Returns:
- the experiment metadata
-
getSamples
Description copied from interface:ExperimentGet the samples of the experiment.- Specified by:
getSamplesin interfaceExperiment- Returns:
- a list of ExperimentSample object
-
getExperimentSamples
Description copied from interface:ExperimentGet experiment samples list.- Specified by:
getExperimentSamplesin interfaceExperiment- Returns:
- a list of ExperimentSample object
-
getExperimentSample
Description copied from interface:ExperimentGet the experiment sample related to the sample.- Specified by:
getExperimentSamplein interfaceExperiment- Parameters:
sample- the sample- Returns:
- an experiment sample object if exists or null
-
setName
Description copied from interface:ExperimentSet the name of the experiment.- Specified by:
setNamein interfaceExperiment- Parameters:
newExperimentName- the new experiment name
-
addSample
Description copied from interface:ExperimentAdd a sample.- Specified by:
addSamplein interfaceExperiment- Parameters:
sample- the sample to add- Returns:
- an experiment sample object
-
removeSample
Description copied from interface:ExperimentRemove the sample.- Specified by:
removeSamplein interfaceExperiment- Parameters:
sample- the sample to remove
-
containsSample
Description copied from interface:ExperimentTest if the experiment contains a sample.- Specified by:
containsSamplein interfaceExperiment- Parameters:
sample- the sample to test- Returns:
- true if the sample is the experiment
-
toString
-
hashCode
public int hashCode() -
equals
-