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

Public Member Functions | |
| Listener (boolean useTCP, Element parameters) throws Exception | |
| Constructor that tests ExpectedUTIL on a random DFS. | |
| Collection< MessageType > | getMsgTypes () |
| void | notifyIn (Message msg) |
Protected Member Functions | |
| void | setUpPrelimModules (Queue queue, DCOPProblemInterface< AddableInteger, AddableReal > subProblem) |
| void | checkOutput () |
Private Attributes | |
| HashMap< String, UtilitySolutionSpace< AddableInteger, AddableReal > > | sentUtils = new HashMap< String, UtilitySolutionSpace<AddableInteger, AddableReal> > () |
| For each variable, the utility space it sent to its parent. | |
| HashMap< String, UtilitySolutionSpace< AddableInteger, AddableReal > > | joins = new HashMap< String, UtilitySolutionSpace<AddableInteger, AddableReal> > () |
| For each variable, the join of all received utility spaces. | |
| HashMap< String[], BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > > | condOptAssignments |
| For arrays of variables, their chosen conditional optimal assignments. | |
| HashMap< String, HashSet< String > > | whereToProject = new HashMap< String, HashSet<String> > () |
| For each decision variable, the random variables it is responsible for projecting out. | |
The listener that checks the messages sent by the ExpectedUTIL listeners.
| frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.Listener | ( | boolean | useTCP, |
| Element | parameters ) throws Exception |
Constructor that tests ExpectedUTIL on a random DFS.
| useTCP | true whether TCP pipes should be used instead of QueueIOPipes |
| parameters | the parameters for the module under test |
| Exception | if an error occurs |
References frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.graph, frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.parameters, and frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.useTCP.
|
protected |
References frodo2.solutionSpaces.AddableInteger.add(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.ProjOutput< V extends Addable< V >, U extends Addable< U > >.assignments, frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.blindProject(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.changeVariablesOrder(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.changeVariablesOrder(), frodo2.solutionSpaces.AddableReal.compareTo(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.compose(), frodo2.solutionSpaces.AddableInteger.equals(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.expectation(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.getCurrentUtility(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.getUtility(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.getVariables(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.maximize, frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.method, frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.multiply(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.nbrSamples, frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.nextUtility(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.parameters, frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.project(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.resolve(), and frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.ProjOutput< V extends Addable< V >, U extends Addable< U > >.space.

| Collection< MessageType > frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.getMsgTypes | ( | ) |
References frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.OUTPUT_MSG_TYPE, frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.RAND_VARS_PROJ_MSG_TYPE, and frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.UTIL_MSG_TYPE.
| void frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.notifyIn | ( | Message | msg | ) |
References frodo2.communication.MessageType.equals(), frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.SolutionMessage< Val extends Addable< Val > >.getCondOptAssignments(), frodo2.algorithms.dpop.UTILmsg< Val extends Addable< Val >, U extends Addable< U > >.getDestination(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.RandVarsProjMsg.getRandVars(), frodo2.algorithms.dpop.UTILmsg< Val extends Addable< Val >, U extends Addable< U > >.getSender(), frodo2.algorithms.dpop.UTILmsg< Val extends Addable< Val >, U extends Addable< U > >.getSpace(), frodo2.communication.Message.getType(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.RandVarsProjMsg.getVariable(), frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.SolutionMessage< Val extends Addable< Val > >.getVariables(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.nbrSamples, frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.OUTPUT_MSG_TYPE, frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.RAND_VARS_PROJ_MSG_TYPE, and frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.UTIL_MSG_TYPE.

|
protected |
References frodo2.communication.Queue.addIncomingMessagePolicy(), and frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.nbrSamples.

|
private |
For arrays of variables, their chosen conditional optimal assignments.
|
private |
For each variable, the join of all received utility spaces.
|
private |
For each variable, the utility space it sent to its parent.
|
private |
For each decision variable, the random variables it is responsible for projecting out.