|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A StatsReporter that collects the generic solution to a DCOP. More...

Classes | |
| class | AssignmentsMessage |
| A message holding assignments to variables. More... | |
| class | AssignmentMessage |
| A message holding an assignment to a variable. More... | |
Public Member Functions | |
| Map< String, V > | getSolution () |
| U | getUtility () |
| long | getFinalTime () |
| SolutionCollector (DCOPProblemInterface< V, U > problem, Element params) | |
| Constructor for the module added to the agents' queues. | |
| SolutionCollector (Element params, DCOPProblemInterface< V, U > problem) | |
| Constructor in StatsReporter mode. | |
| void | notifyIn (Message msg) |
| void | setQueue (Queue queue) |
| ArrayList< MessageType > | getMsgTypes () |
| void | getStatsFromQueue (Queue queue) |
| void | setSilent (boolean silent) |
| void | reset () |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Static Public Attributes | |
| static final MessageType | ASSIGNMENTS_MSG_TYPE = new MessageType ("SolutionCollector", "VariableValueAssignments") |
| The type of the messages containing assignments to variables. | |
| static final MessageType | ASSIGNMENT_MSG_TYPE = new MessageType ("SolutionCollector", "VariableValueAssignment") |
| The type of the messages containing an assignment to a variable. | |
Protected Attributes | |
| boolean | maximize = true |
true if we are maximizing utility, false if we are minimizing cost | |
Private Attributes | |
| Queue | queue |
| The queue form which this module collects solution messages. | |
| boolean | silent |
| Whether this module should print out its solution. | |
| DCOPProblemInterface< V, U > | problem |
| The problem. | |
| HashMap< String, V > | solution |
| For each variable, its reported value. | |
| U | utility |
| The true utility of the reported solution. | |
| Long | finalTime |
| The time at which the final solution was reported. | |
A StatsReporter that collects the generic solution to a DCOP.
| <V> | type used for variable values |
| <U> | type used for utility values |
| frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.SolutionCollector | ( | DCOPProblemInterface< V, U > | problem, |
| Element | params ) |
Constructor for the module added to the agents' queues.
| problem | problem instance |
| params | module parameters |
References problem.
Referenced by notifyIn().
| frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.SolutionCollector | ( | Element | params, |
| DCOPProblemInterface< V, U > | problem ) |
Constructor in StatsReporter mode.
| params | module parameters |
| problem | problem instance |
References problem.
| long frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.getFinalTime | ( | ) |
Referenced by frodo2.algorithms.adopt.ADOPTsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), and frodo2.algorithms.dpop.DPOPsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution().
| ArrayList< MessageType > frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
| Map< String, V > frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.getSolution | ( | ) |
Referenced by frodo2.algorithms.asodpop.ASODPOPsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.dpop.DPOPsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.duct.DUCTsolver< V extends Addable< V > >.buildSolution(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4solver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.odpop.ODPOPsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), frodo2.algorithms.adopt.test.testADOPT.test(), and frodo2.algorithms.AgentFactory< V extends Addable< V >, U extends Addable< U > >.writeSol().
| void frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.getStatsFromQueue | ( | Queue | queue | ) |
Implements frodo2.algorithms.StatsReporter.
References ASSIGNMENT_MSG_TYPE, ASSIGNMENTS_MSG_TYPE, and queue.
Referenced by frodo2.algorithms.AgentFactory< V extends Addable< V >, U extends Addable< U > >.init(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and frodo2.algorithms.adopt.test.testADOPT.test().
| U frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.getUtility | ( | ) |
References utility.
Referenced by frodo2.algorithms.asodpop.ASODPOPsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.dpop.DPOPsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4solver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.odpop.ODPOPsolver< V extends Addable< V >, U extends Addable< U > >.buildSolution(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), frodo2.algorithms.adopt.test.testADOPT.test(), and frodo2.algorithms.AgentFactory< V extends Addable< V >, U extends Addable< U > >.writeSol().
| void frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.communication.MessageType.equals(), frodo2.communication.Message.getType(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getUtility(), frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.AssignmentMessage< V extends Addable< V > >.getValue(), frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.AssignmentsMessage< V >.getValues(), frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.AssignmentMessage< V extends Addable< V > >.getVariable(), frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.AssignmentsMessage< V >.getVariables(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.maximize(), queue, solution, and SolutionCollector().

| void frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.reset | ( | ) |
Implements frodo2.algorithms.StatsReporter.
| void frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
| void frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.setSilent | ( | boolean | silent | ) |
Implements frodo2.algorithms.StatsReporter.
References silent.
Referenced by frodo2.algorithms.afb.AFBsolver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.asodpop.ASODPOPsolver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.duct.DUCTsolver< V extends Addable< V > >.getSolGatherers(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2solver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.localSearch.mgm.MGMsolver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.maxsum.MaxSumSolver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4solver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.odpop.ODPOPsolver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.synchbb.SynchBBsolver< V extends Addable< V >, U extends Addable< U > >.getSolGatherers(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and frodo2.algorithms.adopt.test.testADOPT.test().
|
static |
The type of the messages containing an assignment to a variable.
Referenced by frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.AssignmentMessage< V extends Addable< V > >.AssignmentMessage(), frodo2.algorithms.adopt.test.testADOPT.getMsgTypes(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryTest< V extends Addable< V >, U extends Addable< U > >.getMsgTypes(), frodo2.algorithms.asodpop.tests.ASODPOPTest< V extends Addable< V >, U extends Addable< U > >.getMsgTypes(), frodo2.algorithms.localSearch.dsa.tests.DSAagentTest< V extends Addable< V >, U extends Addable< U > >.getMsgTypes(), frodo2.algorithms.localSearch.mgm.mgm2.tests.MGM2agentTest< V extends Addable< V >, U extends Addable< U > >.getMsgTypes(), frodo2.algorithms.localSearch.mgm.tests.MGMagentTest< V extends Addable< V >, U extends Addable< U > >.getMsgTypes(), frodo2.algorithms.odpop.tests.VALUEpropagationTest< V extends Addable< V >, U extends Addable< U > >.getMsgTypes(), getStatsFromQueue(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryTest< V extends Addable< V >, U extends Addable< U > >.notifyIn(), and frodo2.algorithms.asodpop.tests.ASODPOPTest< V extends Addable< V >, U extends Addable< U > >.notifyIn().
|
static |
The type of the messages containing assignments to variables.
Referenced by frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.AssignmentsMessage< V >.AssignmentsMessage(), frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.Listener.getMsgTypes(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.getStatsFromQueue(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.getStatsFromQueue(), frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.Listener.getStatsFromQueue(), getStatsFromQueue(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), and frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn().
|
private |
The time at which the final solution was reported.
|
protected |
true if we are maximizing utility, false if we are minimizing cost
|
private |
The problem.
Referenced by SolutionCollector(), and SolutionCollector().
|
private |
The queue form which this module collects solution messages.
Referenced by getStatsFromQueue(), notifyIn(), and setQueue().
|
private |
Whether this module should print out its solution.
Referenced by setSilent().
|
private |
For each variable, its reported value.
Referenced by notifyIn().
|
private |
The true utility of the reported solution.
Referenced by getUtility().