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 TreeLeafTree. criticalLeafIt specifies the leaf containing the critical item.TreeLeafTree. firstIt specifies the first (counting from left to right), the most efficient item in the tree.TreeLeafTree. lastIt specifies the last (counting from left to right), the least efficient item in the tree.private TreeLeaf[]Knapsack. leavesIt 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. hashForUpdateIt stores for each level the leaves which have changed at this level.private java.util.Map<IntVar,TreeLeaf>Knapsack. variableLeafMappingIt 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 TreeLeafTree. 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.TreeLeafTree. 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.TreeLeafTree. getFirst()Used to search for mandatoryTreeLeafTree. 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 TreeLeafTree. 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.TreeLeafTree. 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 voidTree. 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.
-