T
- object typepublic class QNode<T> extends PQTreeNode<T>
Constructor and Description |
---|
QNode(PQTreeNode<T> parent,
PQTree<T> tree) |
Modifier and Type | Method and Description |
---|---|
void |
clearMLValues()
This method clears all ML values between all children in this child
list.
|
PQTreeNode<T> |
getMaxMinSeq()
This method is used for node ordering in algorithm second phase when
moving backwards over layers.
|
int |
getMLValue(int index)
This method returns required ML value.
|
int |
getMLValue(java.lang.Object o)
This method returns ML value from given object to next in child list.
|
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 index,
int MLValue,
boolean insert)
This method sets ML value between given objects.
|
addChild, 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, toString, update
public QNode(PQTreeNode<T> parent, PQTree<T> tree)
public int getType()
PQTree.QNODE
getType
in class PQTreeNode<T>
PQTree.CNODE
,
PQTree.QNODE
,
PQTree.PNODE
.PQTree
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(int index)
index
- returns ML value between index-th and (index + 1)-th child.public int getMLValue(java.lang.Object o)
o
- given object.public void setMLValue(int index, int MLValue, boolean insert)
index
- place to put new ML value.MLValue
- new ML value.insert
- boolean value that determine whether new value just replace
old value or inserts new one.public void clearMLValues()