|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Convenience class to store assignment/utility combinations in a priority queue. More...

Public Member Functions | |
| Assignment (Val[] assignment, U utility, boolean maximize) | |
| Constructor. | |
| int | compareTo (Assignment< Val, U > a) |
| Compares to assignments with each other, based on the utilty belonging to the assignment. | |
| String | toString (String[] vars) |
| Prints the information in the assignment. | |
Public Attributes | |
| Val[] | assignment |
| The assignment. | |
| U | utility |
| The utility belonging to the assignment. | |
Private Attributes | |
| final boolean | maximize |
when true we are maximizing, when false we are minimizing | |
Convenience class to store assignment/utility combinations in a priority queue.
| <Val> | type used for variable values |
| <U> | type used for utility values |
| frodo2.algorithms.odpop.goodsTree.GoodsTree< Val extends Addable< Val >, U extends Addable< U >, L extends Node< U > >.Assignment< Val extends Addable< Val >, U extends Addable< U > >.Assignment | ( | Val[] | assignment, |
| U | utility, | ||
| boolean | maximize ) |
Constructor.
| assignment | The assignment |
| utility | The utility belonging to the assignment |
| maximize | when true we are maximizing, when false we are minimizing |
References assignment, maximize, and utility.
Referenced by compareTo().
| int frodo2.algorithms.odpop.goodsTree.GoodsTree< Val extends Addable< Val >, U extends Addable< U >, L extends Node< U > >.Assignment< Val extends Addable< Val >, U extends Addable< U > >.compareTo | ( | Assignment< Val, U > | a | ) |
Compares to assignments with each other, based on the utilty belonging to the assignment.
| a | the assignment to which this assignment must be compared |
References Assignment(), maximize, and utility.

| String frodo2.algorithms.odpop.goodsTree.GoodsTree< Val extends Addable< Val >, U extends Addable< U >, L extends Node< U > >.Assignment< Val extends Addable< Val >, U extends Addable< U > >.toString | ( | String[] | vars | ) |
Prints the information in the assignment.
| vars | the variables to which this assignment assigns values |
References assignment, and utility.
| Val [] frodo2.algorithms.odpop.goodsTree.GoodsTree< Val extends Addable< Val >, U extends Addable< U >, L extends Node< U > >.Assignment< Val extends Addable< Val >, U extends Addable< U > >.assignment |
The assignment.
Referenced by Assignment(), and toString().
|
private |
when true we are maximizing, when false we are minimizing
Referenced by Assignment(), and compareTo().
| U frodo2.algorithms.odpop.goodsTree.GoodsTree< Val extends Addable< Val >, U extends Addable< U >, L extends Node< U > >.Assignment< Val extends Addable< Val >, U extends Addable< U > >.utility |
The utility belonging to the assignment.
Referenced by Assignment(), compareTo(), and toString().