|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Container for information belonging to a specific variable. More...
Public Member Functions | |
| VariableInfo (String variableID, Preprocessing< Val, U > p) | |
| Constructor. | |
| void | setParent (String parent) |
| Set the parent of this variable, in this very general version of the class, nothing should happen. | |
| boolean | isInfoReady () |
| Returns true when this variable is ready to send info to its parent. | |
| boolean | isHeuristicReady () |
| Returns true when this variable is ready to send the heuristic. | |
| void | setNumberOfChildren (int numberOfChildren) |
| Set the infoCounter to the number of children. | |
Public Attributes | |
| String | variableID |
| The ID of this variable. | |
| String | parent |
| The variables parent. | |
| int | infoCounter |
| Counts the number of children from whom information has been received. | |
| int | numberOfChildren |
| The number of children of this variable. | |
| boolean | infoSent |
true when info has sent to ones parent | |
| boolean | heuristicSent |
true when the heuristics has been calculated | |
Package Attributes | |
| UtilitySolutionSpace< Val, U > | h |
| Stores the minimal utilities received by the children. | |
| UtilitySolutionSpace< Val, U > | c |
| the constraints owned by this variable | |
Container for information belonging to a specific variable.
| <Val> | the type used for variable values |
| <U> | the type used for utility values |
| frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo | ( | String | variableID, |
| Preprocessing< Val, U > | p ) |
Constructor.
| variableID | The ID of this variable |
| p | A link to the Preprocessing class |
References frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.createUtilitySpace(), h, numberOfChildren, frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.Preprocessing(), variableID, frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.variables, and frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.zeroObject.

| boolean frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.isHeuristicReady | ( | ) |
Returns true when this variable is ready to send the heuristic.
By default the variable is always ready
true when ready | boolean frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.isInfoReady | ( | ) |
Returns true when this variable is ready to send info to its parent.
By default the variable is never ready
true when ready | void frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.setNumberOfChildren | ( | int | numberOfChildren | ) |
Set the infoCounter to the number of children.
The value should be decreased everytime information from a child is received
| numberOfChildren | The number of children of this variable |
References numberOfChildren.
| void frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.setParent | ( | String | parent | ) |
Set the parent of this variable, in this very general version of the class, nothing should happen.
| parent | The parent of this variable |
References parent.
|
package |
the constraints owned by this variable
Referenced by frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput(), and frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput().
|
package |
Stores the minimal utilities received by the children.
Referenced by frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.processHeuristicsInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.processHeuristicsInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.processHeuristicsInfoMessage(), and VariableInfo().
| boolean frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.heuristicSent |
true when the heuristics has been calculated
| int frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.infoCounter |
Counts the number of children from whom information has been received.
Referenced by frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.processHeuristicsInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.processHeuristicsInfoMessage(), and frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.processHeuristicsInfoMessage().
| boolean frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.infoSent |
true when info has sent to ones parent
| int frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.numberOfChildren |
The number of children of this variable.
Referenced by setNumberOfChildren(), and VariableInfo().
| String frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.parent |
The variables parent.
Referenced by frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput(), and setParent().
| String frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Addable< U > >.variableID |
The ID of this variable.
Referenced by frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP1< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage(), and VariableInfo().