Class 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
  • Constructor Details

    • Instrument

      public Instrument()
      Empty default constructor
    • Instrument

      public Instrument​(String name, CvTerm source, CvTerm detector, ArrayList<CvTerm> cvTerms)
      Create a new Instrument object.
      Parameters:
      name - the name
      source - the source
      detector - the detector
      cvTerms - the CV terms
  • Method Details

    • getName

      public String getName()
      Returns the instrument name.
      Returns:
      the name
    • setName

      public void setName​(String name)
      Set the instrument name.
      Parameters:
      name - the name to set
    • getCvTerms

      public ArrayList<CvTerm> getCvTerms()
      Returns the CV terms.
      Returns:
      the cvTerms
    • setCvTerms

      public void setCvTerms​(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 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