All Implemented Interfaces:
PrideObject, Serializable

public class Sample
extends ExperimentObject
implements PrideObject
An object for storing Sample details.
Author:
Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • Sample

      public Sample()
      Empty default constructor
    • Sample

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

    • getName

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

      public void setName​(String name)
      Set the name of the sample.
      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
    • getDefaultSamples

      public static ArrayList<Sample> getDefaultSamples()
      Returns a list of default samples.
      Returns:
      a list of default samples
    • 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