|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.MsExperiment
public class MsExperiment
This class represents the experiment. Created by IntelliJ IDEA. User: Marc Date: Jun 18, 2010 Time: 8:55:09 AM
Constructor Summary | |
---|---|
MsExperiment(String reference)
Constructor for an experiment |
|
MsExperiment(String reference,
HashMap<Integer,Sample> samples)
Constructor for an experiment |
Method Summary | |
---|---|
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 |
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject |
---|
addUrParam, getParameterKey, getUrParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 experimentMethod Detail |
---|
public 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 sample
public HashMap<Integer,Sample> getSamples()
public Sample getSample(int id)
id
- the index of the desired sample
public void setSample(int index, Sample sample)
index
- the index of the samplesample
- the new sample
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |