FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo Class Reference

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.

Detailed Description

Convenience class that contains information for a specific variable.

Author
brammert

Constructor & Destructor Documentation

◆ VariableInfo()

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.

Parameters
variableIDThe ID of the variable
parentThe parent of the variable
childrenThe children of the variable
treeThe 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.

Here is the call graph for this function:

Member Function Documentation

◆ getAskMessage() [1/2]

◆ getAskMessage() [2/2]

ASKmsg frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.getAskMessage ( String child)
Author
Brammert Ottens, 2 sep 2009
Parameters
childchild of the variable
Returns
pre-created ASK message for child

References askMessages, and childrenPointer.

◆ getNewVariable()

◆ setNewVariable()

void frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.setNewVariable ( boolean newVariable)

◆ toString()

Member Data Documentation

◆ askMessages

ASKmsg [] frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.askMessages
protected

A list of precreated ask messages, one for each child.

Referenced by getAskMessage(), getAskMessage(), and VariableInfo().

◆ children

◆ childrenPointer

◆ done

◆ infeasible

◆ newVariable

boolean frodo2.algorithms.odpop.UTILpropagationFullDomain< Val extends Addable< Val >, U extends Addable< U >, L extends LeafNode< U > >.VariableInfo.newVariable
protected

true when this variable must report a new variable in his separator to his parent

Referenced by getNewVariable(), setNewVariable(), and VariableInfo().

◆ parent

◆ responded

◆ root

◆ terminated

◆ tree

◆ variableID


The documentation for this class was generated from the following file: