public class DirectedGraphNode extends Node
| Constructor and Description |
|---|
DirectedGraphNode(DecisionNode decisionNode,
Node leafNode) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillData(Object target,
int pos,
int len)
Write this node's data into the target object at pos, making sure that exactly len data are written.
|
Object |
getAllData()
Get all the data at or below this node.
|
DecisionNode |
getDecisionNode() |
String |
getDecisionPath() |
Node |
getLeafNode() |
Node |
getMother()
Get a mother node of this node.
|
List<Node> |
getMothers() |
Node |
getNextNode(FeatureVector fv) |
int |
getNodeIndex()
Get the index of this node in the mother returned by getMother().
|
int |
getNodeIndex(Node aMother)
Return this node's index in the given mother's array of daughters.
|
int |
getNumberOfData()
Count all the data available at and below this node.
|
int |
getNumberOfNodes()
Count all the nodes at and below this node.
|
int |
getUniqueGraphNodeID() |
boolean |
isDirectedGraphNode() |
void |
removeMother(Node aMother)
Remove the given node from the list of mothers.
|
void |
setDecisionNode(DecisionNode newNode) |
void |
setLeafNode(Node newNode) |
void |
setMother(Node node,
int nodeIndex)
set the mother node of this node, and remember this node's index in mother.
|
void |
setUniqueGraphNodeID(int id) |
String |
toString() |
getRootNode, isDecisionNode, isLeafNode, isRoot, setIsRoot, toStringpublic DirectedGraphNode(DecisionNode decisionNode, Node leafNode)
decisionNode - decisionNodeleafNode - leafNodepublic DecisionNode getDecisionNode()
public boolean isDirectedGraphNode()
isDirectedGraphNode in class Nodepublic void setDecisionNode(DecisionNode newNode)
public Node getLeafNode()
public void setLeafNode(Node newNode)
public void setMother(Node node, int nodeIndex)
Nodepublic Node getMother()
public int getNodeIndex()
getNodeIndex in class Nodepublic int getNodeIndex(Node aMother)
aMother - aMotherIllegalArgumentException - if mother is not a mother of this node.public void removeMother(Node aMother)
aMother - aMotherIllegalArgumentException - if mother is not a mother of this node.protected void fillData(Object target, int pos, int len)
Nodepublic Object getAllData()
NodegetAllData in class Nodepublic int getNumberOfData()
NodegetNumberOfData in class Nodepublic int getNumberOfNodes()
NodegetNumberOfNodes in class Nodepublic Node getNextNode(FeatureVector fv)
public int getUniqueGraphNodeID()
public void setUniqueGraphNodeID(int id)
public String getDecisionPath()
getDecisionPath in class NodeCopyright © 2000–2016 DFKI GmbH. All rights reserved.