Uses of Class
org.jacop.constraints.knapsack.Tree
-
Packages that use Tree Package Description org.jacop.constraints.knapsack -
-
Uses of Tree in org.jacop.constraints.knapsack
Fields in org.jacop.constraints.knapsack declared as Tree Modifier and Type Field Description Tree
Knapsack. tree
The tree for the storing information about the maximalWeight, sum of weights and sum of profits.Methods in org.jacop.constraints.knapsack that return Tree Modifier and Type Method Description Tree
Tree. merge(Tree that)
A merge method for trees, it added a new root from the ancientsMethods in org.jacop.constraints.knapsack with parameters of type Tree Modifier and Type Method Description Tree
Tree. merge(Tree that)
A merge method for trees, it added a new root from the ancientsvoid
TreeLeaf. recomputeDown(Tree tree)
void
TreeNode. recomputeDown(Tree tree)
This function recomputes the attributes of this node after recomputing the left and right subtree.void
TreeLeaf. recomputeUp(Tree tree)
void
TreeNode. recomputeUp(Tree tree)
This function is used to recompute the attributes of all nodes on the way to root from this node.void
TreeLeaf. updateInternalValues(Tree tree)
Only used in removeLevelLate(), update the internal value like previous and slice.Constructors in org.jacop.constraints.knapsack with parameters of type Tree Constructor Description Tree(Tree tree)
It creates a tree by making a shallow copy.
-