edu.isi.karma.modeling.semantictypes.mycrf.common
Class Node

java.lang.Object
  extended by 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

Field Summary
 java.util.ArrayList<java.lang.String> features
           
 int fieldPos
           
 int labelIndex
           
 java.lang.String string
           
 int tokenPos
           
 int type
           
 
Constructor Summary
Node(int type, int topLevelPosition, int bottomLevelPosition)
           
 
Method Summary
 void addChildNode(Node childNode)
           
 java.util.ArrayList<Node> getChildrenNodesList()
           
 Node getParentNode()
           
 int numberOfChildren()
           
 void setParentNode(Node parentNode)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Node

public Node(int type,
            int topLevelPosition,
            int bottomLevelPosition)
Method Detail

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