com.compomics.util.pride.prideobjects
Class Sample

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

public class Sample
extends Object
implements PrideObject, Serializable

An object for storing Sample details.

Author:
Harald Barsnes
See Also:
Serialized Form

Constructor Summary
Sample(String name, ArrayList<CvTerm> cvTerms)
          Create a new Sample object.
 
Method Summary
 ArrayList<CvTerm> getCvTerms()
          Returns the CV terms.
static ArrayList<Sample> getDefaultSamples()
          Returns a list of default samples.
 String getFileName()
          Returns the name to use when serializing the object
 String getName()
          Returns the name of the sample.
 void setCvTerms(ArrayList<CvTerm> cvTerms)
          Set the CV terms.
 void setName(String name)
          Set the name of the sample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sample

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

Parameters:
name -
cvTerms -
Method Detail

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


Copyright © 2012. All Rights Reserved.