|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.graph.Node
public class Node
This class represents a individual in a pedigree (Graph).
Constructor Summary | |
---|---|
Node(java.lang.Object id)
Creates a new node with the given id. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the Node object. |
java.util.Set<Node> |
getChilds()
Returns a collection of all successor. |
java.util.Set<Node> |
getChilds(int max)
Returns a collection of all successor. |
int |
getDegree()
Returns the number of outgoing and ingoing edges. |
int |
getFamilieRank()
Returns the node's familie id. |
Hierarchy |
getHierarchy()
Returns the node's hierarchy. |
java.lang.Object |
getId()
Returns the id. |
java.lang.Object |
getIdDad()
Returns the node's dad id. |
java.lang.Object |
getIdMom()
Returns the node's mom id. |
int |
getInDegree()
Returns the number of ingoing edges (parents). |
java.util.ArrayList<Edge> |
getInEdges()
Returns a collection of ingoing edges (parents). |
int |
getLevel()
Returns the node's level in hierarchy. |
int |
getNodeCount()
Returns the number of sub nodes. |
java.util.ArrayList<Node> |
getNodes()
Returns a collection of all subnodes. |
int |
getOutDegree()
Returns the number of outgoing edges (childrens). |
java.util.ArrayList<Edge> |
getOutEdges()
Returns a collection of outgoing edges (childrens) |
Node |
getParent()
Returns the cluster node, i the node is a subnode. |
java.util.Set<Node> |
getParents()
Returns a collection of all ancestors. |
java.util.Set<Node> |
getParents(int max)
Returns a collection of all ancestors. |
java.util.Set<Node> |
getParentsAndChilds()
Returns a collection of all ancestors and successor. |
java.util.Set<Node> |
getParentsAndChilds(int max)
Returns the ancestors and successors for the given node. |
java.util.Set<Node> |
getPathTo(Node node)
Returns a collection of all Nodes on the path between this node and the given node. |
java.lang.Object |
getUserData(java.lang.String title)
Returns the trait that can be identified by the given title. |
java.lang.Object[] |
getUserDataList()
Returns a array of all traits. |
boolean |
hasParents()
Returns true, if the node has parents. |
boolean |
isDummy()
Returns true, if the node is a dummy. |
void |
setDummy(boolean dummy)
Sets |
void |
setFamilieRank(int familieRank)
Sets the node's familie id. |
void |
setIdDad(java.lang.Object idDad)
Sets the node's dad id. |
void |
setIdMom(java.lang.Object idMom)
Sets the node's mom id. |
void |
setUserData(java.lang.String title,
java.lang.Object data)
Stores an trait that can be identified by the given identifier. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Node(java.lang.Object id)
id
- idMethod Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public int getInDegree()
public int getOutDegree()
public java.lang.Object getId()
public java.util.ArrayList<Edge> getInEdges()
public java.util.ArrayList<Edge> getOutEdges()
public boolean isDummy()
public void setDummy(boolean dummy)
dummy
- public java.util.ArrayList<Node> getNodes()
public void setUserData(java.lang.String title, java.lang.Object data)
title
- identifierdata
- datapublic java.lang.Object getUserData(java.lang.String title)
title
-
public java.lang.Object[] getUserDataList()
public Node getParent()
public int getFamilieRank()
public void setFamilieRank(int familieRank)
familieRank
- new familie idpublic java.util.Set<Node> getParentsAndChilds(int max)
Number
- of max generations that should be considered.
public java.util.Set<Node> getParentsAndChilds()
node
- The node
public java.util.Set<Node> getParents()
public java.util.Set<Node> getParents(int max)
Number
- the number of max generations which should be considered.
public java.util.Set<Node> getChilds()
public java.util.Set<Node> getChilds(int max)
Number
- Number the number of max generations which should be
considered.
public java.lang.Object getIdDad()
public void setIdDad(java.lang.Object idDad)
idDad
- dad's id.public java.lang.Object getIdMom()
public void setIdMom(java.lang.Object idMom)
idDad
- mom's id.public int getNodeCount()
public int getDegree()
public boolean hasParents()
public java.util.Set<Node> getPathTo(Node node)
node
-
public int getLevel()
public Hierarchy getHierarchy()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |