public class MsExperiment extends ExperimentObject
| Modifier and Type | Field and Description |
|---|---|
static String |
experimentObjectName
The name of the serialized experiment.
|
| Constructor and Description |
|---|
MsExperiment(String reference)
Constructor for an experiment.
|
MsExperiment(String reference,
HashMap<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.
|
String |
getReference()
Returns the reference of the experiment.
|
Sample |
getSample(int id)
Returns a single sample accessed by its index.
|
HashMap<Integer,Sample> |
getSamples()
Returns the implemented samples.
|
void |
setReference(String reference)
Sets the reference of the experiment.
|
void |
setSample(int index,
Sample sample)
Set a new sample.
|
addUrParam, getParameterKey, getUrParampublic static final String experimentObjectName
public MsExperiment(String reference, HashMap<Integer,Sample> samples)
reference - the reference of the experimentsamples - the samples analyzedpublic MsExperiment(String reference)
reference - the reference of the experimentpublic String getReference()
public void setReference(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 HashMap<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 © 2016. All rights reserved.