com.compomics.util.experiment.biology
Class Sample

java.lang.Object
  extended by com.compomics.util.experiment.personalization.ExperimentObject
      extended by com.compomics.util.experiment.biology.Sample
All Implemented Interfaces:
Serializable, Cloneable

public class Sample
extends ExperimentObject

This class models a proteomic sample. User: Marc Date: Sep 1, 2010 Time: 10:07:52 AM

See Also:
Serialized Form

Constructor Summary
Sample(String reference)
          Constructor for a sample
 
Method Summary
 String getReference()
          Getter for the sample reference
 boolean isSameAs(Sample otherSample)
          Comparator for samples.
 void setReference(String newReference)
          setter for the reference of a sample
 
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, getParameterKey, getUrParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sample

public Sample(String reference)
Constructor for a sample

Parameters:
reference - the reference of the sample
Method Detail

setReference

public void setReference(String newReference)
setter for the reference of a sample

Parameters:
newReference - the new reference

getReference

public String getReference()
Getter for the sample reference

Returns:
sample reference

isSameAs

public boolean isSameAs(Sample otherSample)
Comparator for samples. For now based on the reference

Parameters:
otherSample - an other sample
Returns:
a boolean indicating if both samples are the same


Copyright © 2011. All Rights Reserved.