Class ExperimentImpl
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.design.ExperimentImpl
-
- All Implemented Interfaces:
Experiment,Serializable
public class ExperimentImpl extends Object implements Serializable, Experiment
This class defines the default implementation of an experiment.- Since:
- 2.0
- Author:
- Xavier Bauquet
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExperimentSampleaddSample(Sample sample)Add a sample.booleancontainsSample(Sample sample)Test if the experiment contains a sample.booleanequals(Object o)DesigngetDesign()Get the design related to the experiment.ExperimentSamplegetExperimentSample(Sample sample)Get the experiment sample related to the sample.List<ExperimentSample>getExperimentSamples()Get experiment samples list.StringgetId()get the experiment id.fr.ens.biologie.genomique.eoulsan.design.ExperimentMetadataImplgetMetadata()Get the experiment metadata.StringgetName()Get the experiment name.intgetNumber()Get the experiment number.List<Sample>getSamples()Get the samples of the experiment.inthashCode()voidremoveSample(Sample sample)Remove the sample.voidsetName(String newExperimentName)Set the name of the experiment.StringtoString()
-
-
-
Method Detail
-
getDesign
public Design 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
public String getId()
Description copied from interface:Experimentget the experiment id.- Specified by:
getIdin interfaceExperiment- Returns:
- the experiment id
-
getName
public String 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
public List<Sample> getSamples()
Description copied from interface:ExperimentGet the samples of the experiment.- Specified by:
getSamplesin interfaceExperiment- Returns:
- a list of ExperimentSample object
-
getExperimentSamples
public List<ExperimentSample> getExperimentSamples()
Description copied from interface:ExperimentGet experiment samples list.- Specified by:
getExperimentSamplesin interfaceExperiment- Returns:
- a list of ExperimentSample object
-
getExperimentSample
public ExperimentSample getExperimentSample(Sample sample)
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
public void setName(String newExperimentName)
Description copied from interface:ExperimentSet the name of the experiment.- Specified by:
setNamein interfaceExperiment- Parameters:
newExperimentName- the new experiment name
-
addSample
public ExperimentSample addSample(Sample sample)
Description copied from interface:ExperimentAdd a sample.- Specified by:
addSamplein interfaceExperiment- Parameters:
sample- the sample to add- Returns:
- an experiment sample object
-
removeSample
public void removeSample(Sample sample)
Description copied from interface:ExperimentRemove the sample.- Specified by:
removeSamplein interfaceExperiment- Parameters:
sample- the sample to remove
-
containsSample
public boolean containsSample(Sample sample)
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
-
-