Uses of Class
org.jacop.constraints.knapsack.TreeNode
-
Packages that use TreeNode Package Description org.jacop.constraints.knapsack -
-
Uses of TreeNode in org.jacop.constraints.knapsack
Subclasses of TreeNode in org.jacop.constraints.knapsack Modifier and Type Class Description class
TreeLeaf
It contains information required by the leaf node of the item tree.Fields in org.jacop.constraints.knapsack declared as TreeNode Modifier and Type Field Description (package private) TreeNode
Tree. currentNode
It specifies the current right item of the tree which have been yet included in computation of replaceable weight.TreeNode
TreeNode. left
It specifies the left child.TreeNode
TreeNode. leftNeighbor
It specifies the left neighbor.TreeNode
TreeNode. parent
It specifies the parent of this node.TreeNode
TreeNode. right
It specifies the right child.TreeNode
TreeNode. rightNeighbor
It specifies the right neighbor.TreeNode
Tree. root
It specifies the root of the tree.Methods in org.jacop.constraints.knapsack with parameters of type TreeNode Modifier and Type Method Description private 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 Constructor Description Tree(TreeNode node)
Create a single node tree.TreeNode(TreeNode left, TreeNode right)
It constructs a node of the item tree.
-