procope.evaluation.complexquality.go
Class GOTerm

java.lang.Object
  extended by procope.evaluation.complexquality.go.GOTerm

public class GOTerm
extends Object

Represents a single GO term in an ontology network. Contains the identifier of the term as well as its parents and children.

Author:
Jan Krumsiek

Constructor Summary
GOTerm(String ID)
          Creates a term object with the given GO term ID and name
 
Method Summary
 Collection<GOTerm> getChildren()
          Returns the list of child terms for this GO term.
 String getID()
          Returns the ID of this GO term.
 String getName()
          Returns the name of this GO term.
 Collection<GOTerm> getParents()
          Returns the list of parent terms for this GO term.
 int hashCode()
           
 String toString()
          Returns a String representation of this GO term containing its id but no parent or child relationships.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GOTerm

public GOTerm(String ID)
Creates a term object with the given GO term ID and name

Parameters:
ID - ID of the GO term
Method Detail

toString

public String toString()
Returns a String representation of this GO term containing its id but no parent or child relationships.

Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getID

public String getID()
Returns the ID of this GO term.

Returns:
ID of the GO term

getParents

public Collection<GOTerm> getParents()
Returns the list of parent terms for this GO term.

Returns:
parent terms

getChildren

public Collection<GOTerm> getChildren()
Returns the list of child terms for this GO term.

Returns:
child terms

getName

public String getName()
Returns the name of this GO term.

Returns:
name of this GO term