Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data.annotation
Class AnnotationDescription

java.lang.Object
  extended by cytoscape.data.annotation.AnnotationDescription
All Implemented Interfaces:
Serializable

public class AnnotationDescription
extends Object
implements Serializable

Distinguish among different ontologies, by curator and type. For example, KEGG maintains two ontologies: metabolic pathways, and regulatory pathways. GO has three: biological process, molecular function, cellular component. This simple class captures these distinctions It will perhaps prove most useful when some data source (a biodata server, for example) contains a number of ontologies, and needs to communicate a summary of these to a client.

See Also:
Serialized Form

Constructor Summary
AnnotationDescription(String species, String curator, String annotationType)
           
 
Method Summary
 boolean equals(Object obj)
          redefine equals so that instances with the same contents are equal. this emulates the way that String equality is judged.
 String getCurator()
           
 String getSpecies()
           
 String getType()
           
 int hashCode()
          redefine hashCode so that instances with the same contents have the same hashCode. this will make them identical when used as the keys in HashMaps, the purpose for which they were invented.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationDescription

public AnnotationDescription(String species,
                             String curator,
                             String annotationType)
Parameters:
species - The formal Linnaean name (genus & species) is preferred
curator - The institute or group which maintains this annotation
ontolotyType - The nature of this annotation, eg, "metabolic pathway", "molecular function", or "cellular component"
Method Detail

getSpecies

public String getSpecies()

getCurator

public String getCurator()

getType

public String getType()

equals

public boolean equals(Object obj)
redefine equals so that instances with the same contents are equal. this emulates the way that String equality is judged.

Overrides:
equals in class Object

hashCode

public int hashCode()
redefine hashCode so that instances with the same contents have the same hashCode. this will make them identical when used as the keys in HashMaps, the purpose for which they were invented.

Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

www.cytoscape.org