FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.FunctionInfo Class Reference

Information about each neighboring function node. More...

Inheritance diagram for frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.FunctionInfo:

Private Member Functions

 FunctionInfo (String name, UtilitySolutionSpace< V, U > space, String agent)
 Constructor.
void addVariable (String varName, V[] dom)
 Adds a variable to this FunctionInfo.
boolean doIrespond (String senderVar, UtilitySolutionSpace< V, U > marginalUtil)
 Returns whether to respond to this message.

Private Attributes

HashMap< String, UtilitySolutionSpace< V, U > > lastMsgsIn = new HashMap< String, UtilitySolutionSpace<V, U> > ()
 The last marginal utility received from each variable node.
final int nbrNeighbors
 Number of neighboring variable nodes.
int nbrIter
 The remaining number of iterations for this node.

Additional Inherited Members

Public Member Functions inherited from frodo2.algorithms.varOrdering.factorgraph.FunctionNode< V extends Addable< V >, U extends Addable< U > >
 FunctionNode (String name, UtilitySolutionSpace< V, U > space, String agent)
 Constructor.
String toString ()
String getName ()
UtilitySolutionSpace< V, U > getSpace ()
String getAgent ()

Detailed Description

Information about each neighboring function node.

Constructor & Destructor Documentation

◆ FunctionInfo()

Member Function Documentation

◆ addVariable()

void frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.FunctionInfo.addVariable ( String varName,
V[] dom )
private

Adds a variable to this FunctionInfo.

Parameters
varNamethe variable name
domthe variable domain

References frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.zeroSpace().

Referenced by FunctionInfo().

Here is the call graph for this function:

◆ doIrespond()

boolean frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.FunctionInfo.doIrespond ( String senderVar,
UtilitySolutionSpace< V, U > marginalUtil )
private

Returns whether to respond to this message.

Parameters
senderVarthe sender variable
marginalUtilthe received message
Returns
whether to respond or not

References frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.synchronous.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

Member Data Documentation

◆ lastMsgsIn

HashMap< String, UtilitySolutionSpace<V, U> > frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.FunctionInfo.lastMsgsIn = new HashMap< String, UtilitySolutionSpace<V, U> > ()
private

The last marginal utility received from each variable node.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

◆ nbrIter

int frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.FunctionInfo.nbrIter
private

The remaining number of iterations for this node.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

◆ nbrNeighbors

final int frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.FunctionInfo.nbrNeighbors
private

Number of neighboring variable nodes.


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