T - object typepublic class PNode<T> extends PQTreeNode<T>
| Constructor and Description |
|---|
PNode(PQTreeNode<T> parent,
PQTree<T> tree) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(PQTreeNode<T> child)
This method adds child to this node.
|
PQTreeNode<T> |
getMaxMinSeq()
This method is used for node ordering in algorithm second phase when moving backwards over layers.
|
int |
getMLValue()
This method gets ML value of this node.
|
int |
getType()
This method returns int value to represent this node type.
|
char |
getTypeChar()
This method returns char that represents this node type.
|
PQTreeNode<T> |
process(boolean isRoot)
This method performs all transformations for this node.
|
void |
setMLValue(int MLValue)
This method sets ML value of this node.
|
java.lang.String |
toString()
This method returns string value of this P-node.
|
addChild, clearChildList, getChildIterator, getChildList, getLevel, getMaxSeq, getMinSeq, getParent, getPertQChildrenCount, getTestValue, getTree, isFull, isPertinent, isVisited, removeChild, setEmpty, setLevel, setMaxSeq, setMinSeq, setParent, setParent, setParent, setParent, setTree, setVisited, updatepublic PNode(PQTreeNode<T> parent, PQTree<T> tree)
public int getType()
PQTree.PNODEgetType in class PQTreeNode<T>PQTree.CNODE,
PQTree.QNODE,
PQTree.PNODE.PQTreepublic void addChild(PQTreeNode<T> child)
addChild in class PQTreeNode<T>child - node that will be added as child.public PQTreeNode<T> process(boolean isRoot)
process in class PQTreeNode<T>isRoot - represents whether this is root of pertinent tree.public char getTypeChar()
getTypeChar in class PQTreeNode<T>public PQTreeNode<T> getMaxMinSeq()
getMaxMinSeq in class PQTreeNode<T>public int getMLValue()
public void setMLValue(int MLValue)
MLValue - new ML value.public java.lang.String toString()
toString in class PQTreeNode<T>