|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Class to hold an assignment of variables. More...
Public Member Functions | |
| Assignment (String[] variables, Val[] values) | |
| A constructor. | |
| String[] | getVariables () |
| Val[] | getValues () |
| boolean | equals (Object o) |
| boolean | compatible (Assignment< Val > a) |
| Checks whether this assignment is compatible with a. | |
| String | toString () |
Private Attributes | |
| final String[] | variables |
| The variables in the assignment. | |
| final Val[] | values |
| The values to the variables. | |
Class to hold an assignment of variables.
This class is only used when sending goods. In between a more succinct representation is used.
| <Val> | type of the class used to store domain values |
| frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.Assignment | ( | String[] | variables, |
| Val[] | values ) |
A constructor.
| variables | the variables in the assignment |
| values | the values of the variables |
References values, and variables.
Referenced by compatible(), and equals().
| boolean frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.compatible | ( | Assignment< Val > | a | ) |
Checks whether this assignment is compatible with a.
Two assignments are compatible if they agree on all variables
| a | another assignment |
true if the two assignments are compatible References Assignment(), values, and variables.

| boolean frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.equals | ( | Object | o | ) |
References Assignment(), equals(), and values.
Referenced by equals().

| Val[] frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.getValues | ( | ) |
References values.
| String[] frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.getVariables | ( | ) |
References variables.
| String frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.toString | ( | ) |
|
private |
The values to the variables.
Referenced by Assignment(), compatible(), equals(), getValues(), and toString().
|
private |
The variables in the assignment.
Referenced by Assignment(), compatible(), getVariables(), and toString().