com.compomics.util.pride.prideobjects
Class Instrument

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

public class Instrument
extends Object
implements PrideObject, Serializable

An object for storing Instrument details.

Author:
Harald Barsnes
See Also:
Serialized Form

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

Constructor Detail

Instrument

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

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

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getCvTerms

public ArrayList<CvTerm> getCvTerms()
Returns:
the cvTerms

setCvTerms

public void setCvTerms(ArrayList<CvTerm> cvTerms)
Parameters:
cvTerms - the cvTerms to set

getSource

public CvTerm getSource()
Returns:
the source

setSource

public void setSource(CvTerm source)
Parameters:
source - the source to set

getDetector

public CvTerm getDetector()
Returns:
the detector

setDetector

public void setDetector(CvTerm detector)
Parameters:
detector - the detector to set

getDefaultInstruments

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

Returns:
a list of predefined instruments

getFileName

public 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 © 2012. All Rights Reserved.