Class Instrument
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.pride.prideobjects.Instrument
- All Implemented Interfaces:
PrideObject,Serializable
An object for storing Instrument details.
- Author:
- Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructorCreate a new Instrument object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the CV terms.static ArrayList<Instrument> Returns a list of predefined instruments.Returns the instrument detector.Returns the name to use when serializing the object.getName()Returns the instrument name.Returns the instrument source.voidsetCvTerms(ArrayList<CvTerm> cvTerms) Set the CV terms.voidsetDetector(CvTerm detector) Set the instrument detector.voidSet the instrument name.voidSet 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:PrideObjectReturns the name to use when serializing the object.- Specified by:
getFileNamein interfacePrideObject- Returns:
- the name to use when serializing the object
-