Uses of Class
org.jacop.constraints.knapsack.TreeNode
Packages that use TreeNode
-
Uses of TreeNode in org.jacop.constraints.knapsack
Subclasses of TreeNode in org.jacop.constraints.knapsackModifier and TypeClassDescriptionfinal classIt contains information required by the leaf node of the item tree.Fields in org.jacop.constraints.knapsack declared as TreeNodeModifier and TypeFieldDescription(package private) TreeNodeTree.currentNodeIt specifies the current right item of the tree which have been yet included in computation of replaceable weight.final TreeNodeTreeNode.leftIt specifies the left child.TreeNode.leftNeighborIt specifies the left neighbor.TreeNode.parentIt specifies the parent of this node.final TreeNodeTreeNode.rightIt specifies the right child.TreeNode.rightNeighborIt specifies the right neighbor.final TreeNodeTree.rootIt specifies the root of the tree.Methods in org.jacop.constraints.knapsack with parameters of type TreeNodeModifier and TypeMethodDescriptionprivate voidKnapsack.restrictItemQuantity(Store store, TreeNode parent, int availableCapacity) It makes sure that no item has a possibility to use more than available capacity.voidTreeNode.setLeftNeighbor(TreeNode leftNeighbor) It sets the left neighbor of this tree node.voidTreeNode.setRightNeighbor(TreeNode rightNeighbor) It sets the right neighbor of this tree node.Constructors in org.jacop.constraints.knapsack with parameters of type TreeNode