|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A module that waits for the root variable to compute its optimal value, and then calls for a rerooting. More...

Classes | |
| class | RootValueMsg |
| The class of statistics messages containing the optimal assignment to a variable. More... | |
Public Member Functions | |
| RerootRequester (Element params, DCOPProblemInterface< V, U > problem) | |
| Constructor in "stats gatherer" mode. | |
| RerootRequester (DCOPProblemInterface< V, U > problem, Element params) | |
| Constructor. | |
| U | getOptUtil () |
| HashMap< String, V > | getSolution () |
| void | notifyIn (Message msg) |
| Collection< MessageType > | getMsgTypes () |
| void | setQueue (Queue queue) |
| void | getStatsFromQueue (Queue queue) |
| void | reset () |
| void | setSilent (boolean silent) |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Private Attributes | |
| Queue | queue |
| This agent's queue. | |
| HashMap< String, List< String > > | children = new HashMap< String, List<String> > () |
| For each internal variable, its list of children in the current DFS. | |
| HashMap< String, Boolean > | roots = new HashMap<String, Boolean> () |
| For each internal variable, whether it is a root. | |
| DCOPProblemInterface< V, U > | problem |
| The problem. | |
| boolean | reportStats = true |
| Whether to report stats. | |
| HashMap< String, Integer > | countdownsInit = new HashMap<String, Integer> () |
| For each internal variable, the number of variables in its constraint graph component. | |
| HashMap< String, Integer > | countdowns = new HashMap<String, Integer> () |
| For each internal variable, the number of remaining UTIL propagations. | |
| U | optUtil |
| The total optimal utility across all constraint graph components. | |
| int | nbrVars |
| The total number of variables in the problem (in stats gatherer mode). | |
| HashMap< String, V > | solution |
| The optimal assignment to each variable. | |
| boolean | infeasible = false |
| Whether the problem has been found infeasible. | |
Static Private Attributes | |
| static final MessageType | OPT_ASSIGNMENT_MSG_TYPE = new MessageType ("P3/2-DPOP", "RerootRequester", "OptAssignment") |
| The type of the statistics messages containing the optimal assignment to a variable. | |
| static final MessageType | OPT_UTIL_MSG_TYPE = new MessageType ("P3/2-DPOP", "RerootRequester", "TotalOptUtil") |
| The type of the MessageWithPayload's containing the total optimal utility for one component of the constraint graph. | |
A module that waits for the root variable to compute its optimal value, and then calls for a rerooting.
| <V> | the type used for variable values |
| <U> | the type used for utility values |
| frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.RerootRequester | ( | Element | params, |
| DCOPProblemInterface< V, U > | problem ) |
Constructor in "stats gatherer" mode.
| params | the parameters of the module |
| problem | the overall problem |
References frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getDomain(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getVariables(), and problem.

| frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.RerootRequester | ( | DCOPProblemInterface< V, U > | problem, |
| Element | params ) |
Constructor.
| problem | the agent's subproblem |
| params | the parameters of the module |
References problem.
| Collection< MessageType > frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
References frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.OPT_UTIL_MSG_TYPE, frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.OUTPUT_MSG_TYPE, frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.OUTPUT_MSG_TYPE, frodo2.algorithms.varOrdering.dfs.DFSgenerationWithOrder< V extends Addable< V >, U extends Addable< U > >.OUTPUT_MSG_TYPE, frodo2.algorithms.dpop.privacy.SecureRerooting< C extends Addable< C >, E extends AddableLimited< C, E >.REROOTING_REQUEST_TYPE, frodo2.algorithms.dpop.privacy.StopMsg.STOP_MSG_TYPE, and frodo2.algorithms.varOrdering.dfs.DFSgenerationWithOrder< V extends Addable< V >, U extends Addable< U > >.VARIABLE_COUNT_TYPE.
| U frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.getOptUtil | ( | ) |
References frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.getZeroUtility(), and optUtil.
Referenced by frodo2.algorithms.dpop.privacy.P3halves_DPOPsolver< V extends Addable< V > >.buildSolution().

| HashMap< String, V > frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.getSolution | ( | ) |
References solution.
| void frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.getStatsFromQueue | ( | Queue | queue | ) |
Implements frodo2.algorithms.StatsReporter.
References OPT_ASSIGNMENT_MSG_TYPE, OPT_UTIL_MSG_TYPE, and queue.
| void frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.communication.MessageType.equals(), notifyIn(), and OPT_ASSIGNMENT_MSG_TYPE.
Referenced by notifyIn().

| void frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.reset | ( | ) |
| void frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
| void frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.setSilent | ( | boolean | silent | ) |
Implements frodo2.algorithms.StatsReporter.
|
private |
For each internal variable, its list of children in the current DFS.
|
private |
For each internal variable, the number of remaining UTIL propagations.
|
private |
For each internal variable, the number of variables in its constraint graph component.
|
private |
Whether the problem has been found infeasible.
|
private |
The total number of variables in the problem (in stats gatherer mode).
|
staticprivate |
The type of the statistics messages containing the optimal assignment to a variable.
Referenced by getStatsFromQueue(), notifyIn(), and frodo2.algorithms.dpop.privacy.RerootRequester< V extends Addable< V >, U extends Addable< U > >.RootValueMsg.RootValueMsg().
|
staticprivate |
The type of the MessageWithPayload's containing the total optimal utility for one component of the constraint graph.
Referenced by getStatsFromQueue().
|
private |
The total optimal utility across all constraint graph components.
Referenced by getOptUtil().
|
private |
The problem.
Referenced by RerootRequester(), RerootRequester(), and reset().
|
private |
This agent's queue.
Referenced by getStatsFromQueue(), and setQueue().
|
private |
Whether to report stats.
|
private |
For each internal variable, whether it is a root.
|
private |
The optimal assignment to each variable.
Referenced by getSolution().