Interface Experiment
- All Known Implementing Classes:
ExperimentImpl,UnmodifiableExperiment
public interface Experiment
This interface defines an experiment.
- Since:
- 2.0
- Author:
- Xavier Bauquet
-
Method Summary
Modifier and TypeMethodDescriptionAdd a sample.booleancontainsSample(Sample sample) Test if the experiment contains a sample.Get 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.Get the experiment metadata.getName()Get the experiment name.intGet the experiment number.Get the samples of the experiment.voidremoveSample(Sample sample) Remove the sample.voidSet the name of the experiment.
-
Method Details
-
getDesign
Design getDesign()Get the design related to the experiment.- Returns:
- the Design object related to the experiment
-
getId
String getId()get the experiment id.- Returns:
- the experiment id
-
getName
String getName()Get the experiment name.- Returns:
- the experiment name
-
getNumber
int getNumber()Get the experiment number.- Returns:
- the experiment number
-
getMetadata
ExperimentMetadata getMetadata()Get the experiment metadata.- Returns:
- the experiment metadata
-
getSamples
Get the samples of the experiment.- Returns:
- a list of ExperimentSample object
-
getExperimentSamples
List<ExperimentSample> getExperimentSamples()Get experiment samples list.- Returns:
- a list of ExperimentSample object
-
getExperimentSample
Get the experiment sample related to the sample.- Parameters:
sample- the sample- Returns:
- an experiment sample object if exists or null
-
setName
Set the name of the experiment.- Parameters:
newExperimentName- the new experiment name
-
addSample
Add a sample.- Parameters:
sample- the sample to add- Returns:
- an experiment sample object
-
removeSample
Remove the sample.- Parameters:
sample- the sample to remove
-
containsSample
Test if the experiment contains a sample.- Parameters:
sample- the sample to test- Returns:
- true if the sample is the experiment
-