|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcytoscape.data.annotation.OntologyTerm
public class OntologyTerm
Represents one node in an ontology, which is a hierarchical classification of entities using a controlled vocabulary. Each term has a name, a unique integer identifier, a list of parent terms, and a list of containers. Parent terms capture the "is-child-of" relationship for this term. Container terms capture the "is-part-of" relationship. This data model was inspired by the three ontologies (biological process, molecular function, cellular component) of the Gene Ontology project. Other ontologies should work nicely with this class as well.
| Constructor Summary | |
|---|---|
OntologyTerm(String name,
int id)
Creates a new OntologyTerm object. |
|
| Method Summary | |
|---|---|
void |
addContainer(int newContainer)
DOCUMENT ME! |
void |
addParent(int newParent)
DOCUMENT ME! |
int[] |
getContainers()
DOCUMENT ME! |
int |
getId()
DOCUMENT ME! |
String |
getName()
DOCUMENT ME! |
int[] |
getParents()
DOCUMENT ME! |
int[] |
getParentsAndContainers()
DOCUMENT ME! |
boolean |
isAncestorOf(Ontology ontology,
OntologyTerm other)
|
boolean |
isChildOf(OntologyTerm other)
DOCUMENT ME! |
boolean |
isChildOfOrContainedIn(OntologyTerm other)
DOCUMENT ME! |
boolean |
isContainedIn(OntologyTerm other)
DOCUMENT ME! |
boolean |
isContainerOf(OntologyTerm other)
DOCUMENT ME! |
boolean |
isParentOf(OntologyTerm other)
DOCUMENT ME! |
boolean |
isParentOrContainerOf(OntologyTerm other)
DOCUMENT ME! |
int |
numberOfContainers()
DOCUMENT ME! |
int |
numberOfParents()
DOCUMENT ME! |
int |
numberOfParentsAndContainers()
DOCUMENT ME! |
String |
toString()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OntologyTerm(String name,
int id)
name - DOCUMENT ME!id - DOCUMENT ME!| Method Detail |
|---|
public String getName()
public int getId()
public void addParent(int newParent)
newParent - DOCUMENT ME!public void addContainer(int newContainer)
newContainer - DOCUMENT ME!public int numberOfParentsAndContainers()
public int numberOfParents()
public int numberOfContainers()
public int[] getParents()
public int[] getContainers()
public int[] getParentsAndContainers()
public boolean isParentOf(OntologyTerm other)
other - DOCUMENT ME!
public boolean isAncestorOf(Ontology ontology,
OntologyTerm other)
ontology - the Ontology that contains the termspublic boolean isChildOf(OntologyTerm other)
other - DOCUMENT ME!
public boolean isContainerOf(OntologyTerm other)
other - DOCUMENT ME!
public boolean isContainedIn(OntologyTerm other)
other - DOCUMENT ME!
public boolean isChildOfOrContainedIn(OntologyTerm other)
other - DOCUMENT ME!
public boolean isParentOrContainerOf(OntologyTerm other)
other - DOCUMENT ME!
public String toString()
toString in class Object
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||