FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
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 > > Class Template Reference

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

Detailed Description

Container for information belonging to a specific variable.

Author
Brammert Ottens, 20 mei 2009
Parameters
<Val>the type used for variable values
<U>the type used for utility values

Constructor & Destructor Documentation

◆ VariableInfo()

Member Function Documentation

◆ isHeuristicReady()

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

Author
Brammert Ottens, 27 mei 2009
Returns
true when ready

◆ isInfoReady()

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

Author
Brammert Ottens, 27 mei 2009
Returns
true when ready

◆ setNumberOfChildren()

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

Author
Brammert Ottens, 27 mei 2009
Parameters
numberOfChildrenThe number of children of this variable

References numberOfChildren.

◆ setParent()

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.

Author
Brammert Ottens, 27 mei 2009
Parameters
parentThe parent of this variable

References parent.

Member Data Documentation

◆ c

◆ h

◆ heuristicSent

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

◆ infoCounter

◆ infoSent

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

◆ numberOfChildren

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().

◆ parent

◆ variableID


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