|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
The inner node of a tree. More...

Public Member Functions | |
| InnerNode () | |
| A constructor. | |
| InnerNode (Node< U >[] children) | |
| A constructor. | |
| Node< U > | getExample () |
| Node< U > | getChild (int i) |
| void | retainOnly (int child) |
| void | setChild (Node< U > child, int position) |
| Add a child in a particular position. | |
| Public Member Functions inherited from frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > > | |
| InnerNode (int nbrOfChildren) | |
| A constructor. | |
| Node< U > | getExample () |
| L | getMaxUB () |
| int | getMaxUBChild () |
| int | getMaxChild () |
| L | getMaxUtil () |
| void | setUtil (int index, boolean direct) |
| Set the maximal utility for this node. | |
| void | setUB (int index, boolean direct) |
| Set the maximal upper bound for this node. | |
| void | enlargeChildrenArray (int enlargement, boolean dummy) |
| If maxUBChild points to the dummy child, its value should be increased by 1. | |
| Node< U > | getChild (int i) |
| Return a specific child of this node. | |
| void | setChild (Node< U > child, int position) |
| Add a child in a particular position. | |
| void | retainOnly (int child) |
| This method is used when the assignment belonging to leaf child has been sent as a confirmed good. | |
| boolean | utilCandidate (U maxUtil, final boolean maximize) |
| boolean | ubCandidate (U maxUB, final boolean maximize) |
| U | getUtil () |
| U | getUB () |
| boolean | hasUtil () |
| boolean | hasUB () |
| boolean | check1 () |
| If there is a util, there must be an upperbound as well. | |
| boolean | check2 (final boolean maximize) |
| Either the utility is lower than the upperbound, or the utility is not up to date. | |
| boolean | check3 (final boolean maximize) |
| Either the utility is not up to date or it is not greater than the upper bound. | |
| boolean | check4 () |
| If there is an upper bound, and its utility is up to date, then there must also be a utility. | |
| boolean | check5 (U[] upperBoundSums, final boolean maximize) |
| Check whether the upperbound is up to date. | |
| boolean | recalculateUtil () |
Additional Inherited Members | |
| Public Attributes inherited from frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > > | |
| Node< U >[] | children |
| The children of this node. | |
| Protected Attributes inherited from frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > > | |
| int | maxChild |
| the branch from this node to the assignment that has the highest utility | |
| int | maxUBChild |
| the branch from this node to the assignment that has the highest upper bound | |
| L | util |
| The utility stored in this node. | |
| L | UB |
| The UB stored in this node. | |
The inner node of a tree.
| <U> | the type used to represent a utility value |
| <L> | the type of LeafNode that is to be used |
| frodo2.algorithms.odpop.goodsTree.InnerNodeTreeBinaryDomains.InnerNode< U extends Addable< U >, L extends LeafNode< U > >.InnerNode | ( | ) |
A constructor.
| frodo2.algorithms.odpop.goodsTree.InnerNodeTreeBinaryDomains.InnerNode< U extends Addable< U >, L extends LeafNode< U > >.InnerNode | ( | Node< U >[] | children | ) |
A constructor.
| children | the number of children of this node |
References frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > >.children.
| Node< U > frodo2.algorithms.odpop.goodsTree.InnerNodeTreeBinaryDomains.InnerNode< U extends Addable< U >, L extends LeafNode< U > >.getChild | ( | int | i | ) |
| Node< U > frodo2.algorithms.odpop.goodsTree.InnerNodeTreeBinaryDomains.InnerNode< U extends Addable< U >, L extends LeafNode< U > >.getExample | ( | ) |
References frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > >.children, frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > >.maxChild, frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > >.maxUBChild, and frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > >.UB.
| void frodo2.algorithms.odpop.goodsTree.InnerNodeTreeBinaryDomains.InnerNode< U extends Addable< U >, L extends LeafNode< U > >.retainOnly | ( | int | child | ) |
| void frodo2.algorithms.odpop.goodsTree.InnerNodeTreeBinaryDomains.InnerNode< U extends Addable< U >, L extends LeafNode< U > >.setChild | ( | Node< U > | child, |
| int | position ) |
Add a child in a particular position.
| child | the child to be updated |
| position | the position of the child |
References frodo2.algorithms.odpop.goodsTree.InnerNodeTreeFullDomain.InnerNode< U, LeafNode< U > >.children.