FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.VariableInfo Class Reference

Convenience class to hold variable information. More...

Inheritance diagram for frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.VariableInfo:

Public Member Functions

 VariableInfo (String variableID, V[] domain, String parent, List< String > children, Class< SamplingProcedure< V > > samplingClass, Class< TerminationCondition< V > > terminationClass)
 Constructor.
boolean storeCOSTmsg (COSTBmsg msg)
AddableReal getFinalBound ()

Protected Member Functions

SearchNode< V > createNode (int domainSize, boolean maximize, boolean IGNORE_INF)

Protected Attributes

AddableReal reportedBound
 sum of all bounds reported by the children

Detailed Description

Convenience class to hold variable information.

Author
Brammert Ottens, 7 jul. 2011

Constructor & Destructor Documentation

◆ VariableInfo()

frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.VariableInfo.VariableInfo ( String variableID,
V[] domain,
String parent,
List< String > children,
Class< SamplingProcedure< V > > samplingClass,
Class< TerminationCondition< V > > terminationClass )

Constructor.

Parameters
variableIDthe name of the variable
domainthe domain of the variable
parentthe parent of the variable
childrenlist of the children of the variable
samplingClassthe class of the sampling method
terminationClassthe class of the termination condition

Member Function Documentation

◆ createNode()

SearchNode< V > frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.VariableInfo.createNode ( int domainSize,
boolean maximize,
boolean IGNORE_INF )
protected

◆ getFinalBound()

◆ storeCOSTmsg()

boolean frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.VariableInfo.storeCOSTmsg ( COSTBmsg msg)
Author
Brammert Ottens, 7 jul. 2011
Parameters
msgthe message to be stored
Returns
true when enough cost messages have been received, false otherwise

References frodo2.solutionSpaces.AddableReal.add(), frodo2.algorithms.duct.COSTBmsg.getBound(), frodo2.algorithms.duct.COSTBmsg.getCost(), and reportedBound.

Referenced by frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.notifyIn().

Here is the call graph for this function:

Member Data Documentation

◆ reportedBound

AddableReal frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.VariableInfo.reportedBound
protected

sum of all bounds reported by the children

Referenced by storeCOSTmsg().


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