Package | Description |
---|---|
org.jacop.constraints.knapsack |
Modifier and Type | Class and Description |
---|---|
class |
TreeLeaf
It contains information required by the leaf node of the item tree.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
Tree(TreeNode node)
Create a single node tree.
|
TreeNode(TreeNode left,
TreeNode right)
It constructs a node of the item tree.
|
Copyright © 2022. All rights reserved.