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, toString
public DirectedGraphNode(DecisionNode decisionNode, Node leafNode)
decisionNode
- decisionNodeleafNode
- leafNodepublic DecisionNode getDecisionNode()
public boolean isDirectedGraphNode()
isDirectedGraphNode
in class Node
public void setDecisionNode(DecisionNode newNode)
public Node getLeafNode()
public void setLeafNode(Node newNode)
public void setMother(Node node, int nodeIndex)
Node
public Node getMother()
public int getNodeIndex()
getNodeIndex
in class Node
public 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)
Node
public Object getAllData()
Node
getAllData
in class Node
public int getNumberOfData()
Node
getNumberOfData
in class Node
public int getNumberOfNodes()
Node
getNumberOfNodes
in class Node
public Node getNextNode(FeatureVector fv)
public int getUniqueGraphNodeID()
public void setUniqueGraphNodeID(int id)
public String getDecisionPath()
getDecisionPath
in class Node
Copyright © 2000–2016 DFKI GmbH. All rights reserved.