com.mindfusion.graphs
Class PQTree.Node
java.lang.Object
com.mindfusion.graphs.PQTree.Node
- Enclosing class:
- PQTree<T>
public class PQTree.Node
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PQTree.Node
public PQTree.Node()
PQTree.Node
public PQTree.Node(T data)
PQTree.Node
public PQTree.Node(int type,
T data)
Init
public void Init(int nodeType)
Destroy
public void Destroy()
Reinit
public void Reinit()
Reinit
public void Reinit(boolean reinitParent)
GetBlockedSiblings
public java.util.ArrayList<PQTree.Node> GetBlockedSiblings()
GetUnblockedSiblings
public java.util.ArrayList<PQTree.Node> GetUnblockedSiblings()
GetEndMostDirectedSibling
public PQTree.Node GetEndMostDirectedSibling(PQTree.Node otherSide)
GetNonDirectedSibling
public PQTree.Node GetNonDirectedSibling(PQTree.Node otherSide)
SetPseudoRoot
public void SetPseudoRoot(java.util.ArrayList<PQTree.Node> blockedList)
GetMaximalConsecutiveBlockedSiblings
public java.util.ArrayList<PQTree.Node> GetMaximalConsecutiveBlockedSiblings()
MarkBlocked
public void MarkBlocked()
MarkUnblocked
public void MarkUnblocked()
MarkQueued
public void MarkQueued()
FullChildrenAreAdjacent
public boolean FullChildrenAreAdjacent()
FullChildrenAreAdjacentTo
public boolean FullChildrenAreAdjacentTo(PQTree.Node node)
FullChildrenAreEndMost
public boolean FullChildrenAreEndMost()
PartialChildrenAtEnds
public boolean PartialChildrenAtEnds()
EndMostChildrenAreEmptyOrPartial
public boolean EndMostChildrenAreEmptyOrPartial()
ChildrenAreFull
public boolean ChildrenAreFull()
TwoChildrenLeft
public boolean TwoChildrenLeft()
GetPartialChild
public PQTree.Node GetPartialChild(int index)
GetFirstFullChild
public PQTree.Node GetFirstFullChild()
GetFirstEmptyChild
public PQTree.Node GetFirstEmptyChild()
RemoveFromFullList
public void RemoveFromFullList(PQTree.Node node)
RemoveFromPartialList
public void RemoveFromPartialList(PQTree.Node node)
RemoveChildFromPNode
public void RemoveChildFromPNode(PQTree.Node node)
RemoveChildFromQNode
public void RemoveChildFromQNode(PQTree.Node node)
AddChild
public void AddChild(PQTree.Node node)
AddChild
public void AddChild(PQTree.Node node,
boolean updateTree)
RemoveChild
public void RemoveChild(PQTree.Node node)
RemoveChild
public void RemoveChild(PQTree.Node node,
boolean updateTree)
ReplaceChild
public void ReplaceChild(PQTree.Node node,
PQTree.Node newNode)
AbsorbPartialChild
public void AbsorbPartialChild(PQTree.Node qNode)
ReplaceFullChildrenWith
public void ReplaceFullChildrenWith(PQTree.Node node)
BecomeChild
public void BecomeChild(PQTree.Node theChild)
MoveFullChildrenTo
public void MoveFullChildrenTo(PQTree.Node newParent)
CheckLabelDirected
public boolean CheckLabelDirected(PQTree.Node node,
int nodeLabel)
HasChildren
public boolean HasChildren()
SiblingOf
public boolean SiblingOf(PQTree.Node node)
GetFullLeavesFrom
public PQTree.Node GetFullLeavesFrom()
GetFullLeavesTo
public PQTree.Node GetFullLeavesTo()
GetFullLeaves
public java.util.ArrayList<PQTree.Node> GetFullLeaves()
Print
public void Print()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getType
public int getType()
setType
public void setType(int value)
getData
public T getData()
getParent
public PQTree.Node getParent()
setParent
public void setParent(PQTree.Node value)
getImmediateSiblings
public PQTree.NodePair getImmediateSiblings()
getEndMostChildren
public PQTree.NodePair getEndMostChildren()
getChildren
public int getChildren()
getFullChildren
public int getFullChildren()
getPartialChildren
public int getPartialChildren()
getEmptyChildren
public int getEmptyChildren()
getPertinentChildCount
public int getPertinentChildCount()
setPertinentChildCount
public void setPertinentChildCount(int value)
getPertinentLeafCount
public int getPertinentLeafCount()
setPertinentLeafCount
public void setPertinentLeafCount(int value)
getLabel
public int getLabel()
setLabel
public void setLabel(int value)
getUnmarked
public boolean getUnmarked()
getBlocked
public boolean getBlocked()
getQueued
public boolean getQueued()
getPseudoRoot
public boolean getPseudoRoot()
getReadInReverseDirection
public boolean getReadInReverseDirection()
setReadInReverseDirection
public void setReadInReverseDirection(boolean value)
getDirection
public PQTree.Node getDirection()
setDirection
public void setDirection(PQTree.Node value)
getDestroyed
public boolean getDestroyed()