Class Instrument
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.pride.prideobjects.Instrument
- All Implemented Interfaces:
PrideObject
,Serializable
public class Instrument extends ExperimentObject implements PrideObject
An object for storing Instrument details.
- Author:
- Harald Barsnes
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Instrument()
Empty default constructorInstrument(String name, CvTerm source, CvTerm detector, ArrayList<CvTerm> cvTerms)
Create a new Instrument object. -
Method Summary
Modifier and Type Method Description ArrayList<CvTerm>
getCvTerms()
Returns the CV terms.static ArrayList<Instrument>
getDefaultInstruments()
Returns a list of predefined instruments.CvTerm
getDetector()
Returns the instrument detector.String
getFileName()
Returns the name to use when serializing the object.String
getName()
Returns the instrument name.CvTerm
getSource()
Returns the instrument source.void
setCvTerms(ArrayList<CvTerm> cvTerms)
Set the CV terms.void
setDetector(CvTerm detector)
Set the instrument detector.void
setName(String name)
Set the instrument name.void
setSource(CvTerm source)
Set the instrument source.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
Instrument
public Instrument()Empty default constructor -
Instrument
Create a new Instrument object.- Parameters:
name
- the namesource
- the sourcedetector
- the detectorcvTerms
- the CV terms
-
-
Method Details
-
getName
Returns the instrument name.- Returns:
- the name
-
setName
Set the instrument name.- Parameters:
name
- the name to set
-
getCvTerms
Returns the CV terms.- Returns:
- the cvTerms
-
setCvTerms
Set the CV terms.- Parameters:
cvTerms
- the cvTerms to set
-
getSource
Returns the instrument source.- Returns:
- the source
-
setSource
Set the instrument source.- Parameters:
source
- the source to set
-
getDetector
Returns the instrument detector.- Returns:
- the detector
-
setDetector
Set the instrument detector.- Parameters:
detector
- the detector to set
-
getDefaultInstruments
Returns a list of predefined instruments.- Returns:
- a list of predefined instruments
-
getFileName
Description copied from interface:PrideObject
Returns the name to use when serializing the object.- Specified by:
getFileName
in interfacePrideObject
- Returns:
- the name to use when serializing the object
-