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 class
It contains information required by the leaf node of the item tree.Fields in org.jacop.constraints.knapsack declared as TreeNodeModifier and TypeFieldDescription(package private) TreeNode
Tree.currentNode
It specifies the current right item of the tree which have been yet included in computation of replaceable weight.final TreeNode
TreeNode.left
It specifies the left child.TreeNode.leftNeighbor
It specifies the left neighbor.TreeNode.parent
It specifies the parent of this node.final TreeNode
TreeNode.right
It specifies the right child.TreeNode.rightNeighbor
It specifies the right neighbor.final TreeNode
Tree.root
It specifies the root of the tree.Methods in org.jacop.constraints.knapsack with parameters of type TreeNodeModifier and TypeMethodDescriptionprivate void
Knapsack.restrictItemQuantity
(Store store, TreeNode parent, int availableCapacity) It makes sure that no item has a possibility to use more than available capacity.void
TreeNode.setLeftNeighbor
(TreeNode leftNeighbor) It sets the left neighbor of this tree node.void
TreeNode.setRightNeighbor
(TreeNode rightNeighbor) It sets the right neighbor of this tree node.Constructors in org.jacop.constraints.knapsack with parameters of type TreeNode