T
- object typepublic class CNode<T> extends PQTreeNode<T>
Constructor and Description |
---|
CNode(PQTreeNode<T> parent,
T o,
PQTree<T> tree) |
Modifier and Type | Method and Description |
---|---|
PQTreeNode<T> |
getMaxMinSeq()
This method is used for node ordering in algorithm second phase when moving backwards over layers.
|
T |
getObject()
This method gets object associated with this c-node.
|
java.lang.String |
getTestValue()
This method returns string value that will represent this node for
more comfortable testing.
|
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 with this node.
|
void |
setEmpty()
This method sets this node as empty.
|
void |
setObject(T o)
This method sets object associated with this c-node.
|
addChild, addChild, clearChildList, getChildIterator, getChildList, getLevel, getMaxSeq, getMinSeq, getParent, getPertQChildrenCount, getTree, isFull, isPertinent, isVisited, removeChild, setLevel, setMaxSeq, setMinSeq, setParent, setParent, setParent, setParent, setTree, setVisited, toString, update
public CNode(PQTreeNode<T> parent, T o, PQTree<T> tree)
public T getObject()
public void setObject(T o)
o
- new object.public int getType()
PQTree.CNODE
getType
in class PQTreeNode<T>
PQTree.CNODE
,
PQTree.QNODE
,
PQTree.PNODE
.PQTree
public PQTreeNode<T> process(boolean isRoot)
process
in class PQTreeNode<T>
isRoot
- boolean value whether this is pertinent tree root node.public void setEmpty()
setEmpty
in class PQTreeNode<T>
public java.lang.String getTestValue()
getTestValue
in class PQTreeNode<T>
public char getTypeChar()
getTypeChar
in class PQTreeNode<T>
public PQTreeNode<T> getMaxMinSeq()
getMaxMinSeq
in class PQTreeNode<T>