com.compomics.util.pride.prideobjects
Class Instrument

java.lang.Object
  extended by com.compomics.util.pride.prideobjects.Instrument
All Implemented Interfaces:
PrideObject, java.io.Serializable

public class Instrument
extends java.lang.Object
implements PrideObject, java.io.Serializable

An object for storing Instrument details.

Author:
Harald Barsnes
See Also:
Serialized Form

Constructor Summary
Instrument(java.lang.String name, CvTerm source, CvTerm detector, java.util.ArrayList<CvTerm> cvTerms)
          Create a new Instrument object.
 
Method Summary
 java.util.ArrayList<CvTerm> getCvTerms()
          Returns the CV terms.
static java.util.ArrayList<Instrument> getDefaultInstruments()
          Returns a list of predefined instruments.
 CvTerm getDetector()
          Returns the instrument detector.
 java.lang.String getFileName()
          Returns the name to use when serializing the object.
 java.lang.String getName()
          Returns the instrument name.
 CvTerm getSource()
          Returns the instrument source.
 void setCvTerms(java.util.ArrayList<CvTerm> cvTerms)
          Set the CV terms.
 void setDetector(CvTerm detector)
          Set the instrument detector.
 void setName(java.lang.String name)
          Set the instrument name.
 void setSource(CvTerm source)
          Set the instrument source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instrument

public Instrument(java.lang.String name,
                  CvTerm source,
                  CvTerm detector,
                  java.util.ArrayList<CvTerm> cvTerms)
Create a new Instrument object.

Parameters:
name -
source -
detector -
cvTerms -
Method Detail

getName

public java.lang.String getName()
Returns the instrument name.

Returns:
the name

setName

public void setName(java.lang.String name)
Set the instrument name.

Parameters:
name - the name to set

getCvTerms

public java.util.ArrayList<CvTerm> getCvTerms()
Returns the CV terms.

Returns:
the cvTerms

setCvTerms

public void setCvTerms(java.util.ArrayList<CvTerm> cvTerms)
Set the CV terms.

Parameters:
cvTerms - the cvTerms to set

getSource

public CvTerm getSource()
Returns the instrument source.

Returns:
the source

setSource

public void setSource(CvTerm source)
Set the instrument source.

Parameters:
source - the source to set

getDetector

public CvTerm getDetector()
Returns the instrument detector.

Returns:
the detector

setDetector

public void setDetector(CvTerm detector)
Set the instrument detector.

Parameters:
detector - the detector to set

getDefaultInstruments

public static java.util.ArrayList<Instrument> getDefaultInstruments()
Returns a list of predefined instruments.

Returns:
a list of predefined instruments

getFileName

public java.lang.String getFileName()
Description copied from interface: PrideObject
Returns the name to use when serializing the object.

Specified by:
getFileName in interface PrideObject
Returns:
the name to use when serializing the object


Copyright © 2013. All Rights Reserved.