|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A simple class that listens for messages sent to a daemon. More...

Public Member Functions | |
| SimpleDaemonListener (boolean countNCCCs) | |
| A simple constructor. | |
| void | setQueue (Queue queue) |
| void | notifyIn (Message msg) |
| Collection< MessageType > | getMsgTypes () |
| int | getNbrReceived () |
| 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 |
| the queue that handles the messages | |
| int | received = 0 |
| number of agent definitions that have been received | |
| ArrayList< MessageType > | msgTypes = new ArrayList <MessageType> () |
| The list of message types this listener wants to be notified of. | |
A simple class that listens for messages sent to a daemon.
| frodo2.controller.TestConfigurationManager.SimpleDaemonListener.SimpleDaemonListener | ( | boolean | countNCCCs | ) |
A simple constructor.
| countNCCCs | whether we should count Non-Concurrent Constraint Checks |
References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, frodo2.controller.WhitePages.CONNECT_AGENT, frodo2.controller.WhitePages.KILL_AGENTS, msgTypes, and frodo2.algorithms.AgentInterface< V extends Addable< V > >.START_AGENT.
| Collection< MessageType > frodo2.controller.TestConfigurationManager.SimpleDaemonListener.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
References msgTypes.
| int frodo2.controller.TestConfigurationManager.SimpleDaemonListener.getNbrReceived | ( | ) |
References received.
| void frodo2.controller.TestConfigurationManager.SimpleDaemonListener.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.controller.TestConfigurationManager.address, frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_CONNECTED, frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_FINISHED, frodo2.controller.messages.MessageAgentReporting.AGENT_REPORTING, frodo2.daemon.LocalWhitePages.AGENTS_KILLED, frodo2.controller.WhitePages.CONNECT_AGENT, frodo2.communication.MessageType.equals(), frodo2.communication.Message.getType(), frodo2.controller.WhitePages.KILL_AGENTS, queue, received, and frodo2.algorithms.AgentInterface< V extends Addable< V > >.START_AGENT.

| void frodo2.controller.TestConfigurationManager.SimpleDaemonListener.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
|
private |
The list of message types this listener wants to be notified of.
Referenced by getMsgTypes(), and SimpleDaemonListener().
|
private |
the queue that handles the messages
Referenced by notifyIn(), and setQueue().
|
private |
number of agent definitions that have been received
Referenced by getNbrReceived(), and notifyIn().