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 ExperimentSample
addSample(Sample sample)
Add a sample.boolean
containsSample(Sample sample)
Test if the experiment contains a sample.boolean
equals(Object o)
Design
getDesign()
Get the design related to the experiment.ExperimentSample
getExperimentSample(Sample sample)
Get the experiment sample related to the sample.List<ExperimentSample>
getExperimentSamples()
Get experiment samples list.String
getId()
get the experiment id.fr.ens.biologie.genomique.eoulsan.design.ExperimentMetadataImpl
getMetadata()
Get the experiment metadata.String
getName()
Get the experiment name.int
getNumber()
Get the experiment number.List<Sample>
getSamples()
Get the samples of the experiment.int
hashCode()
void
removeSample(Sample sample)
Remove the sample.void
setName(String newExperimentName)
Set the name of the experiment.String
toString()
-
-
-
Method Detail
-
getDesign
public Design getDesign()
Description copied from interface:Experiment
Get the design related to the experiment.- Specified by:
getDesign
in interfaceExperiment
- 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 interfaceExperiment
- Returns:
- the experiment id
-
getName
public String getName()
Description copied from interface:Experiment
Get the experiment name.- Specified by:
getName
in interfaceExperiment
- Returns:
- the experiment name
-
getNumber
public int getNumber()
Description copied from interface:Experiment
Get the experiment number.- Specified by:
getNumber
in interfaceExperiment
- Returns:
- the experiment number
-
getMetadata
public fr.ens.biologie.genomique.eoulsan.design.ExperimentMetadataImpl getMetadata()
Description copied from interface:Experiment
Get the experiment metadata.- Specified by:
getMetadata
in interfaceExperiment
- Returns:
- the experiment metadata
-
getSamples
public List<Sample> getSamples()
Description copied from interface:Experiment
Get the samples of the experiment.- Specified by:
getSamples
in interfaceExperiment
- Returns:
- a list of ExperimentSample object
-
getExperimentSamples
public List<ExperimentSample> getExperimentSamples()
Description copied from interface:Experiment
Get experiment samples list.- Specified by:
getExperimentSamples
in interfaceExperiment
- 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 interfaceExperiment
- 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 interfaceExperiment
- Parameters:
newExperimentName
- the new experiment name
-
addSample
public ExperimentSample addSample(Sample sample)
Description copied from interface:Experiment
Add a sample.- Specified by:
addSample
in interfaceExperiment
- 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 interfaceExperiment
- 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 interfaceExperiment
- Parameters:
sample
- the sample to test- Returns:
- true if the sample is the experiment
-
-