|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
The listener that checks the messages sent by the ParamUTIL and ParamVALUE listeners. More...

Public Member Functions | |
| Listener (boolean useTCP, boolean useXML) throws IOException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException | |
| Constructor that tests the UTIL and VALUE propagation protocols on a random DFS. | |
| Collection< MessageType > | getMsgTypes () |
| void | notifyIn (Message msg) |
| void | getStatsFromQueue (Queue queue) |
Protected Member Functions | |
| void | checkOutput () |
| Hypercube< AddableInteger, U > | simulateUTILslice (String var) |
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. | |
The listener that checks the messages sent by the ParamUTIL and ParamVALUE listeners.
| frodo2.algorithms.dpop.param.test.ParamVALUEtest< U extends Addable< U > >.Listener.Listener | ( | boolean | useTCP, |
| boolean | useXML ) throws IOException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException |
Constructor that tests the UTIL and VALUE propagation protocols on a random DFS.
| useTCP | true whether TCP pipes should be used instead of QueueIOPipes |
| useXML | whether we should use the constructor that takes in XML elements, or the manual constructor |
| IOException | if the method fails to create pipes |
| NoSuchMethodException | if the ParamVALUE class does not have a public constructor that takes in a ProblemInterface and a JDOM Element |
| InvocationTargetException | if the ParamVALUE constructor throws an exception |
| IllegalAccessException | if the ParamVALUE class does not have a public constructor that takes in a ProblemInterface and a JDOM Element |
| InstantiationException | would be thrown if ParamVALUE were abstract |
| IllegalArgumentException | if the ParamVALUE constructor does not take the proper arguments |
References Listener(), frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.useTCP, and frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.useXML.
Referenced by Listener().

|
protected |
References frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.dfs, frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.graph, optUtils, and simulateUTILslice().

| Collection< MessageType > frodo2.algorithms.dpop.param.test.ParamVALUEtest< U extends Addable< U > >.Listener.getMsgTypes | ( | ) |
| void frodo2.algorithms.dpop.param.test.ParamVALUEtest< U extends Addable< U > >.Listener.getStatsFromQueue | ( | Queue | queue | ) |
References frodo2.communication.Queue.addIncomingMessagePolicy(), and frodo2.algorithms.dpop.param.ParamVALUE< Val extends Addable< Val > >.PARAM_OUTPUT_MSG_TYPE.

| void frodo2.algorithms.dpop.param.test.ParamVALUEtest< U extends Addable< U > >.Listener.notifyIn | ( | Message | msg | ) |
References frodo2.communication.MessageType.equals(), notifyIn(), and frodo2.algorithms.dpop.param.ParamUTIL< Val extends Addable< Val >, U extends Addable< U > >.OPT_PARAM_UTIL_MSG_TYPE.
Referenced by notifyIn().

|
protected |
References frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.compose(), frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.dfs, frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.algorithms.dpop.param.test.ParamVALUEtest< U extends Addable< U > >.optAssignments, and simulateUTILslice().
Referenced by checkOutput(), and simulateUTILslice().

|
private |
Optimal utility of each connected component (identified by its root), conditioned on the values of the parameters (if any).
Referenced by checkOutput().
|
private |
Used to synchronize access to optUtils, which can be null.