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 classTreeLeafIt 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) TreeNodeTree. currentNodeIt specifies the current right item of the tree which have been yet included in computation of replaceable weight.TreeNodeTreeNode. leftIt specifies the left child.TreeNodeTreeNode. leftNeighborIt specifies the left neighbor.TreeNodeTreeNode. parentIt specifies the parent of this node.TreeNodeTreeNode. rightIt specifies the right child.TreeNodeTreeNode. rightNeighborIt specifies the right neighbor.TreeNodeTree. rootIt specifies the root of the tree.Methods in org.jacop.constraints.knapsack with parameters of type TreeNode Modifier and Type Method Description private 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 Constructor Description Tree(TreeNode node)Create a single node tree.TreeNode(TreeNode left, TreeNode right)It constructs a node of the item tree.
-