Uses of Class
org.jacop.constraints.knapsack.TreeLeaf
-
Packages that use TreeLeaf Package Description org.jacop.constraints.knapsack -
-
Uses of TreeLeaf in org.jacop.constraints.knapsack
Fields in org.jacop.constraints.knapsack declared as TreeLeaf Modifier and Type Field Description TreeLeaf
Tree. criticalLeaf
It specifies the leaf containing the critical item.TreeLeaf
Tree. first
It specifies the first (counting from left to right), the most efficient item in the tree.TreeLeaf
Tree. last
It specifies the last (counting from left to right), the least efficient item in the tree.private TreeLeaf[]
Knapsack. leaves
It stores all the leaves of the knapsack tree in one array.Fields in org.jacop.constraints.knapsack with type parameters of type TreeLeaf Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.util.List<TreeLeaf>>
Knapsack. hashForUpdate
It stores for each level the leaves which have changed at this level.private java.util.Map<IntVar,TreeLeaf>
Knapsack. variableLeafMapping
It specifies mapping from variables into the leaf of the knapsack tree.Methods in org.jacop.constraints.knapsack that return TreeLeaf Modifier and Type Method Description TreeLeaf
Tree. findNextLeafAtLeastOfWeight(TreeLeaf leaf, int weight)
It finds next leaf of a maximum weight of at least weight, so it can have some parts of it mandatory.TreeLeaf
Tree. findPreviousLeafAtLeastOfWeight(TreeLeaf leaf, int weight)
It finds previous leaf of a maximum weight of at least weight, so it can have some parts of it forbidden.TreeLeaf
Tree. getFirst()
Used to search for mandatoryTreeLeaf
Tree. getLast()
It returns the last (the least efficient) item in the tree.Methods in org.jacop.constraints.knapsack with parameters of type TreeLeaf Modifier and Type Method Description TreeLeaf
Tree. findNextLeafAtLeastOfWeight(TreeLeaf leaf, int weight)
It finds next leaf of a maximum weight of at least weight, so it can have some parts of it mandatory.TreeLeaf
Tree. findPreviousLeafAtLeastOfWeight(TreeLeaf leaf, int weight)
It finds previous leaf of a maximum weight of at least weight, so it can have some parts of it forbidden.Method parameters in org.jacop.constraints.knapsack with type arguments of type TreeLeaf Modifier and Type Method Description void
Tree. updateFromList(java.util.List<TreeLeaf> list, int startingPosition)
Used for updating the tree using a list of nodes that have changed.Constructors in org.jacop.constraints.knapsack with parameters of type TreeLeaf Constructor Description Tree(KnapsackItem[] items, java.util.Map<IntVar,TreeLeaf> varPositionMaping, TreeLeaf[] leaves, IntVar zero)
It constructs a tree out of the list of items and creates proper supporting structures.Constructor parameters in org.jacop.constraints.knapsack with type arguments of type TreeLeaf Constructor Description Tree(KnapsackItem[] items, java.util.Map<IntVar,TreeLeaf> varPositionMaping, TreeLeaf[] leaves, IntVar zero)
It constructs a tree out of the list of items and creates proper supporting structures.
-