cytoscape.data.annotation
Class AnnotationDescription
java.lang.Object
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
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()
|
AnnotationDescription
public AnnotationDescription(String species,
String curator,
String annotationType)
- Parameters:
species
- The formal Linnaean name (genus & species) is preferredcurator
- The institute or group which maintains this annotationontolotyType
- The nature of this annotation, eg, "metabolic pathway",
"molecular function", or "cellular component"
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