|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Convenience class that contains information for a specific variable. More...
Public Member Functions | |
| VariableInfo (String variableID, String parent, String[] children, GoodsTree< Val, U, L > tree) | |
| Constructor. | |
| void | setNewVariable (boolean newVariable) |
| Setter method for newVariable. | |
| boolean | getNewVariable () |
| ASKmsg | getAskMessage (int child) |
| ASKmsg | getAskMessage (String child) |
| String | toString () |
Protected Attributes | |
| String | variableID |
| The ID of the variable. | |
| boolean | root |
true if this variable is the root node of the DFS tree | |
| GoodsTree< Val, U, L > | tree |
| The goods tree, containing the goods received from the children. | |
| String[] | children |
| A list of the children. | |
| HashMap< String, Integer > | childrenPointer |
| Maps a child's ID to an integer. | |
| String | parent |
| The parent of this variable. | |
| boolean | responded |
false if an ASK message needs answering, true otherwise | |
| boolean | infeasible |
true when the remain part of the local problem has become infeasible | |
| boolean[] | done |
| Records, for each child, whether it is done or not. | |
| boolean | terminated |
If the root, true when the optimal utility has been found and false otherwise. | |
| boolean | newVariable |
true when this variable must report a new variable in his separator to his parent | |
| ASKmsg[] | askMessages |
| A list of precreated ask messages, one for each child. | |
Convenience class that contains information for a specific variable.
| frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.VariableInfo | ( | String | variableID, |
| String | parent, | ||
| String[] | children, | ||
| GoodsTree< Val, U, L > | tree ) |
Constructor.
| variableID | The ID of the variable |
| parent | The parent of the variable |
| children | The children of the variable |
| tree | The GoodsTree containing utility information |
References askMessages, children, childrenPointer, done, frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.LOG, frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.log(), newVariable, parent, tree, and variableID.

| ASKmsg frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.getAskMessage | ( | int | child | ) |
| child | child of the variable |
References askMessages.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.startProcess().
| ASKmsg frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.getAskMessage | ( | String | child | ) |
| child | child of the variable |
References askMessages, and childrenPointer.
| boolean frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.getNewVariable | ( | ) |
References newVariable.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD().
| void frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.setNewVariable | ( | boolean | newVariable | ) |
Setter method for newVariable.
| newVariable | the value for newVariable |
References newVariable.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD().
| String frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.toString | ( | ) |
References tree.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE().
|
protected |
A list of precreated ask messages, one for each child.
Referenced by getAskMessage(), getAskMessage(), and VariableInfo().
|
protected |
A list of the children.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.startProcess(), and VariableInfo().
|
protected |
Maps a child's ID to an integer.
Referenced by getAskMessage(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD(), and VariableInfo().
|
protected |
Records, for each child, whether it is done or not.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.startProcess(), and VariableInfo().
|
protected |
true when the remain part of the local problem has become infeasible
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE().
|
protected |
true when this variable must report a new variable in his separator to his parent
Referenced by getNewVariable(), setNewVariable(), and VariableInfo().
|
protected |
The parent of this variable.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD(), and VariableInfo().
|
protected |
false if an ASK message needs answering, true otherwise
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD().
|
protected |
true if this variable is the root node of the DFS tree
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.startProcess().
|
protected |
If the root, true when the optimal utility has been found and false otherwise.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE(), and frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD().
|
protected |
The goods tree, containing the goods received from the children.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.startProcess(), toString(), and VariableInfo().
|
protected |
The ID of the variable.
Referenced by frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processASK(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processDONE(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.processGOOD(), frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.startProcess(), and VariableInfo().