Package org.jacop.constraints.cumulative
Class ThetaTree
- java.lang.Object
-
- org.jacop.constraints.cumulative.Tree
-
- org.jacop.constraints.cumulative.ThetaTree
-
- Direct Known Subclasses:
ThetaLambdaUnaryTree
class ThetaTree extends Tree
Implements ThetaTree and operations on this tree for Cumulative constraint- Version:
- 4.8
-
-
Constructor Summary
Constructors Constructor Description ThetaTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddLeave(int i)private voidaddNode(int i)(package private) voidaddToThetaInit(int i)voidbuildTree(TaskView[] task)(package private) voidclearNode(int i)(package private) voidclearTree()(package private) voidcomputeLeaveVals(int i)private voidcomputeNode(int i)(package private) voidcomputeNodeVals(int i)private voiddisableNode(int i)(package private) intect(int i)(package private) voidenableNode(int i)(package private) ThetaNodeget(int i)voidinitTree(TaskView[] task)(package private) booleanisLeaf(int i)(package private) ThetaNodeleaf(int i)private intleaveIndex(int i)voidprintTree(java.lang.String name)(package private) ThetaNoderootNode()java.lang.StringtoGraph(java.lang.String name)java.lang.StringtoString()(package private) java.lang.StringBuffertreeToGraph(int i)(package private) voidupdateTree(int i)
-
-
-
Method Detail
-
buildTree
public void buildTree(TaskView[] task)
-
initTree
public void initTree(TaskView[] task)
-
addLeave
private void addLeave(int i)
-
computeLeaveVals
void computeLeaveVals(int i)
-
addToThetaInit
void addToThetaInit(int i)
-
computeNodeVals
void computeNodeVals(int i)
-
addNode
private void addNode(int i)
-
computeNode
private void computeNode(int i)
-
updateTree
void updateTree(int i)
-
enableNode
void enableNode(int i)
-
disableNode
private void disableNode(int i)
-
ect
int ect(int i)
-
leaveIndex
private int leaveIndex(int i)
-
leaf
ThetaNode leaf(int i)
-
isLeaf
boolean isLeaf(int i)
-
rootNode
ThetaNode rootNode()
-
get
ThetaNode get(int i)
-
printTree
public void printTree(java.lang.String name)
-
toGraph
public java.lang.String toGraph(java.lang.String name)
-
treeToGraph
java.lang.StringBuffer treeToGraph(int i)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-