phenote.matrix.model
Class PhenotypeMatrixRow

java.lang.Object
  extended by phenote.matrix.model.PhenotypeMatrixRow
All Implemented Interfaces:
MatrixRow

public class PhenotypeMatrixRow
extends java.lang.Object
implements MatrixRow


Constructor Summary
PhenotypeMatrixRow(org.obo.datamodel.OBOClass t)
          Creates a new PhenotypeMatrixRow based on the given Valid Taxon
 
Method Summary
 boolean equals(java.lang.Object o)
           
 org.obo.datamodel.OBOClass getTaxon()
           
 java.lang.Object getValue(CharacterI character)
           
 int hashCode()
           
 boolean isValue(CharacterI character)
          Determines whether or not a given character contains the same values as the matrix row
 void setTaxon(org.obo.datamodel.OBOClass taxon)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhenotypeMatrixRow

public PhenotypeMatrixRow(org.obo.datamodel.OBOClass t)
Creates a new PhenotypeMatrixRow based on the given Valid Taxon

Parameters:
t - the taxon to use as the basis for this PhenotypeMatrixRow
Method Detail

isValue

public boolean isValue(CharacterI character)
Determines whether or not a given character contains the same values as the matrix row

Specified by:
isValue in interface MatrixRow
Parameters:
character - the character to be tested
Returns:
a Boolean value indicating the validity of the Character as a row value

getValue

public java.lang.Object getValue(CharacterI character)
Specified by:
getValue in interface MatrixRow
Parameters:
character - - given a Character from the main data list
Returns:
the Valid Taxon OBOClass term representing the value of this row

setTaxon

public void setTaxon(org.obo.datamodel.OBOClass taxon)
Parameters:
taxon - the taxon (as an OBOClass object) to be used for this row in the matrix

getTaxon

public org.obo.datamodel.OBOClass getTaxon()
Returns:
the taxon (as an OBOClass object) of the current row in the matrix

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
an int value representing the hash code computation for the PhenotypeMatrixRow

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Parameters:
o - an Object to be compared to the current PhenotypeMatrixRow object
Returns:
the Boolean value indicating whether or not the Object is equivalent to the PhenotypeMatrixRow