FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.param.test.ParamUTILtest< U extends Addable< U > >.Listener Class Reference

The listener that checks the messages sent by the ParamUTIL listeners. More...

Inheritance diagram for frodo2.algorithms.dpop.param.test.ParamUTILtest< U extends Addable< U > >.Listener:

Public Member Functions

 Listener (boolean useTCP, boolean useXML, Element parameters) throws Exception
 Constructor that tests the ParamUTIL propagation protocol on a random DFS.
Collection< MessageTypegetMsgTypes ()
void notifyIn (Message msg)

Protected Member Functions

void checkOutput ()

Private Attributes

HashMap< String, UtilitySolutionSpace< AddableInteger, U > > optUtils = new HashMap< String, UtilitySolutionSpace<AddableInteger, U> > ()
 Optimal utility of each connected component (identified by its root), conditioned on the values of the parameters (if any).
final Object optUtils_lock = new Object ()
 Used to synchronize access to optUtils, which can be null.

Detailed Description

The listener that checks the messages sent by the ParamUTIL listeners.

Constructor & Destructor Documentation

◆ Listener()

frodo2.algorithms.dpop.param.test.ParamUTILtest< U extends Addable< U > >.Listener.Listener ( boolean useTCP,
boolean useXML,
Element parameters ) throws Exception

Constructor that tests the ParamUTIL propagation protocol on a random DFS.

Parameters
useTCPtrue whether TCP pipes should be used instead of QueueIOPipes
useXMLwhether we should use the constructor that takes in XML elements or the manual constructor
parametersthe parameters for the module under test
Exceptions
Exceptionif an error occurs

References frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.parameters, frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.useTCP, and frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.useXML.

Member Function Documentation

◆ checkOutput()

◆ getMsgTypes()

◆ notifyIn()

Member Data Documentation

◆ optUtils

HashMap< String, UtilitySolutionSpace<AddableInteger, U> > frodo2.algorithms.dpop.param.test.ParamUTILtest< U extends Addable< U > >.Listener.optUtils = new HashMap< String, UtilitySolutionSpace<AddableInteger, U> > ()
private

Optimal utility of each connected component (identified by its root), conditioned on the values of the parameters (if any).

Referenced by checkOutput().

◆ optUtils_lock

final Object frodo2.algorithms.dpop.param.test.ParamUTILtest< U extends Addable< U > >.Listener.optUtils_lock = new Object ()
private

Used to synchronize access to optUtils, which can be null.


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