public class MsExperiment extends ExperimentObject
Constructor and Description |
---|
MsExperiment(java.lang.String reference)
Constructor for an experiment
|
MsExperiment(java.lang.String reference,
java.util.HashMap<java.lang.Integer,Sample> samples)
Constructor for an experiment
|
Modifier and Type | Method and Description |
---|---|
void |
addAnalysisSet(Sample sample,
SampleAnalysisSet analysisSet)
Method to link an analysis set to an experiment
|
SampleAnalysisSet |
getAnalysisSet(Sample sample)
Returns the analysis set corresponding to a sample
|
java.lang.String |
getReference()
returns the reference of the experiment
|
Sample |
getSample(int id)
Returns a single sample accessed by its index
|
java.util.HashMap<java.lang.Integer,Sample> |
getSamples()
Returns the implemented samples
|
void |
setReference(java.lang.String reference)
sets the reference of the experiment
|
void |
setSample(int index,
Sample sample)
Set a new sample
|
addUrParam, getParameterKey, getUrParam
public MsExperiment(java.lang.String reference, java.util.HashMap<java.lang.Integer,Sample> samples)
reference
- the reference of the experimentsamples
- the samples analyzedpublic MsExperiment(java.lang.String reference)
reference
- the reference of the experimentpublic java.lang.String getReference()
public void setReference(java.lang.String reference)
reference
- the experiment referencepublic void addAnalysisSet(Sample sample, SampleAnalysisSet analysisSet)
sample
- the reference sampleanalysisSet
- the analysis set corresponding to this samplepublic SampleAnalysisSet getAnalysisSet(Sample sample)
sample
- the reference samplepublic java.util.HashMap<java.lang.Integer,Sample> getSamples()
public Sample getSample(int id)
id
- the index of the desired samplepublic void setSample(int index, Sample sample)
index
- the index of the samplesample
- the new sampleCopyright © 2013. All Rights Reserved.