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 TreeKnapsack. treeThe 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 TreeTree. 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 TreeTree. merge(Tree that)A merge method for trees, it added a new root from the ancientsvoidTreeLeaf. recomputeDown(Tree tree)voidTreeNode. recomputeDown(Tree tree)This function recomputes the attributes of this node after recomputing the left and right subtree.voidTreeLeaf. recomputeUp(Tree tree)voidTreeNode. recomputeUp(Tree tree)This function is used to recompute the attributes of all nodes on the way to root from this node.voidTreeLeaf. 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.
-