Package org.jacop.constraints.cumulative
Class ThetaTree
java.lang.Object
org.jacop.constraints.cumulative.Tree
org.jacop.constraints.cumulative.ThetaTree
- Direct Known Subclasses:
ThetaLambdaUnaryTree
Implements ThetaTree and operations on this tree for Cumulative constraint
- Version:
- 4.8
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addLeave
(int i) private void
addNode
(int i) (package private) void
addToThetaInit
(int i) void
(package private) void
clearNode
(int i) (package private) void
(package private) void
computeLeaveVals
(int i) private void
computeNode
(int i) (package private) void
computeNodeVals
(int i) private void
disableNode
(int i) (package private) int
ect
(int i) (package private) void
enableNode
(int i) (package private) ThetaNode
get
(int i) void
(package private) boolean
isLeaf
(int i) (package private) ThetaNode
leaf
(int i) private int
leaveIndex
(int i) void
(package private) ThetaNode
rootNode()
toString()
(package private) StringBuffer
treeToGraph
(int i) (package private) void
updateTree
(int i)
-
Field Details
-
n
int n -
tree
-
orderedTasks
-
empty
-
-
Constructor Details
-
ThetaTree
public ThetaTree()
-
-
Method Details
-
buildTree
-
initTree
-
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) -
clearNode
void clearNode(int i) -
clearTree
void clearTree() -
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
-
isLeaf
boolean isLeaf(int i) -
rootNode
ThetaNode rootNode() -
get
-
printTree
-
toGraph
-
treeToGraph
-
toString
-