edu.isi.karma.modeling.semantictypes.mycrf.common
Class Node
java.lang.Object
edu.isi.karma.modeling.semantictypes.mycrf.common.Node
public class Node
- extends java.lang.Object
This class defined the nodes used in graphs.
It stores the features of the item that the node represents, a field or a token.
- Author:
- amangoel
Constructor Summary |
Node(int type,
int topLevelPosition,
int bottomLevelPosition)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
public int type
fieldPos
public int fieldPos
tokenPos
public int tokenPos
string
public java.lang.String string
features
public java.util.ArrayList<java.lang.String> features
labelIndex
public int labelIndex
Node
public Node(int type,
int topLevelPosition,
int bottomLevelPosition)
setParentNode
public void setParentNode(Node parentNode)
getParentNode
public Node getParentNode()
addChildNode
public void addChildNode(Node childNode)
getChildrenNodesList
public java.util.ArrayList<Node> getChildrenNodesList()
numberOfChildren
public int numberOfChildren()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object