|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Selects the next child as the one that has the highest score. More...

Public Member Functions | |
| ScoreBroadcastingHeuristic (DCOPProblemInterface<?, ?> problem, Element params) throws Exception | |
| Constructor. | |
| ScoreBroadcastingHeuristic (ScoringHeuristic< S > heuristic, Map< String, Set< String > > neighborAgents) | |
| Constructor. | |
| String | popNextChild (String var, DFSview<?, ?> unused, Collection< String > openNeighbors) |
| Collection< MessageType > | getMsgTypes () |
| void | notifyIn (Message msg) |
| void | setQueue (Queue queue) |
| Public Member Functions inherited from frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.BlindScoringHeuristic< S > | |
| BlindScoringHeuristic (ScoringHeuristic< S > heuristic) | |
| Constructor. | |
| String | popNextChild (String var, DFSview<?, ?> dfsView, Collection< String > openNeighbors) |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Static Package Attributes | |
| static final MessageType | SCORE_MSG_TYPE = new MessageType ("VarOrdering", "DFSgeneration", "ScoreBroadcastingHeuristic", "HeuristicScores") |
| The type of messages containing the scores of given variables. | |
| static final MessageType | SCORE_SINGLE_VAR_MSG_TYPE = new MessageType ("VarOrdering", "DFSgeneration", "ScoreBroadcastingHeuristic", "HeuristicScoreSingleVar") |
| The type of messages containing the scores of given variables. | |
Private Member Functions | |
| void | init () |
| Parses the problem. | |
| void | buildKnownVars (Map< String, Set< String > > neighborAgents) |
| Builds the knownVars map. | |
| void | reset () |
| Resets all problem-dependent fields (except the problem itself). | |
Private Attributes | |
| DCOPProblemInterface<?, ?> | problem |
| The problem. | |
| boolean | started = false |
| Whether the execution of the algorithm has started. | |
| Map< String, Set< String > > | neighborAgents |
| For each variable owned by this agent, the set of agents that own a variable connected to this variable. | |
| HashMap< String, HashSet< String > > | knownVars = new HashMap< String, HashSet<String> > () |
| For each neighboring agent, the set of my variables it knows. | |
| Map< String, S > | scores |
| For each known variable, its score. | |
| Queue | queue |
| The queue used to exchange information about scores. | |
Additional Inherited Members | |
| Protected Attributes inherited from frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.BlindScoringHeuristic< S > | |
| ScoringHeuristic< S > | heuristic |
| The ScoringHeuristic used. | |
Selects the next child as the one that has the highest score.
| <S> | the type used for the scores |
| frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.ScoreBroadcastingHeuristic< S extends Comparable< S > &Serializable >.ScoreBroadcastingHeuristic | ( | DCOPProblemInterface<?, ?> | problem, |
| Element | params ) throws Exception |
Constructor.
| problem | description of the agent's problem |
| params | the heuristic parameters |
| Exception | if the constructor of the superclass throws an exception |
References problem.
| frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.ScoreBroadcastingHeuristic< S extends Comparable< S > &Serializable >.ScoreBroadcastingHeuristic | ( | ScoringHeuristic< S > | heuristic, |
| Map< String, Set< String > > | neighborAgents ) |
Constructor.
| heuristic | The ScoringHeuristic used |
| neighborAgents | for each variable owned by this agent, the set of agents that own a variable connected to this variable |
References buildKnownVars(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.BlindScoringHeuristic< S >.heuristic, and neighborAgents.

|
private |
Builds the knownVars map.
| neighborAgents | for each internal variable, its collection of neighboring agents |
References neighborAgents.
Referenced by init(), and ScoreBroadcastingHeuristic().
| Collection< MessageType > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.ScoreBroadcastingHeuristic< S extends Comparable< S > &Serializable >.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
References frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.FINISH_MSG_TYPE, SCORE_MSG_TYPE, SCORE_SINGLE_VAR_MSG_TYPE, and frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.START_MSG_TYPE.
|
private |
Parses the problem.
References buildKnownVars(), and problem.
Referenced by notifyIn(), and popNextChild().

| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.ScoreBroadcastingHeuristic< S extends Comparable< S > &Serializable >.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.communication.MessageType.equals(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.FINISH_MSG_TYPE, init(), notifyIn(), and frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.START_MSG_TYPE.
Referenced by notifyIn().

| String frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.ScoreBroadcastingHeuristic< S extends Comparable< S > &Serializable >.popNextChild | ( | String | var, |
| DFSview<?, ?> | unused, | ||
| Collection< String > | openNeighbors ) |
References init(), and frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.openNeighbors.

|
private |
Resets all problem-dependent fields (except the problem itself).
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.ScoreBroadcastingHeuristic< S extends Comparable< S > &Serializable >.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
|
private |
For each neighboring agent, the set of my variables it knows.
|
private |
For each variable owned by this agent, the set of agents that own a variable connected to this variable.
Referenced by buildKnownVars(), and ScoreBroadcastingHeuristic().
|
private |
The problem.
Referenced by init(), and ScoreBroadcastingHeuristic().
|
private |
The queue used to exchange information about scores.
Referenced by setQueue().
|
staticpackage |
The type of messages containing the scores of given variables.
Referenced by getMsgTypes(), frodo2.algorithms.varOrdering.dfs.ScoresMsg< S extends Serializable >.ScoresMsg(), and frodo2.algorithms.varOrdering.dfs.ScoresMsg< S extends Serializable >.ScoresMsg().
|
staticpackage |
The type of messages containing the scores of given variables.
Referenced by getMsgTypes(), frodo2.algorithms.varOrdering.dfs.ScoreMsg< S extends Serializable >.ScoreMsg(), and frodo2.algorithms.varOrdering.dfs.ScoreMsg< S extends Serializable >.ScoreMsg().
|
private |
For each known variable, its score.
|
private |
Whether the execution of the algorithm has started.