|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|

Public Member Functions | |
| Constructor (boolean local, QueueIOPipe outputToDaemon, Daemon daemon) | |
| Constructor to be used when this constructor is attached to a daemon. | |
| Constructor (boolean local, QueueIOPipe outputToDaemon, Controller controller) | |
| Constructor to be used when this constructor is attached to a controller. | |
| Collection< MessageType > | getMsgTypes () |
| void | notifyIn (Message msg) |
| void | setQueue (Queue queue) |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Package Attributes | |
| Queue | queue |
| The daemon queue. | |
Private Member Functions | |
| void | tellUser (String message) |
| This function is used to send a message to the user via the UI. | |
Private Attributes | |
| ArrayList< MessageType > | msgTypes = new ArrayList <MessageType> () |
| The list of messages types this listener wants to be notified of. | |
| QueueOutputPipeInterface | outputToDaemon |
| The output pipe to communicate with the daemon. | |
| Daemon | daemon |
| Pointer to the daemon. | |
| Controller | controller |
| Pointer to the controller. | |
| int | agentPort |
| Every time an agent is created this number is updated. | |
| boolean | local |
| Is true when the experiments are run in the same JVM as the controller. | |
| frodo2.daemon.Constructor.Constructor | ( | boolean | local, |
| QueueIOPipe | outputToDaemon, | ||
| Daemon | daemon ) |
Constructor to be used when this constructor is attached to a daemon.
| local | whether the experiments are run in the same JVM as the controller |
| outputToDaemon | the pipe to send messages to the daemon |
| daemon | the daemon |
References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, agentPort, daemon, local, msgTypes, and outputToDaemon.
| frodo2.daemon.Constructor.Constructor | ( | boolean | local, |
| QueueIOPipe | outputToDaemon, | ||
| Controller | controller ) |
Constructor to be used when this constructor is attached to a controller.
| local | whether the experiments are run in the same JVM as the controller |
| outputToDaemon | the pipe to send messages to the daemon |
| controller | the controller |
References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, agentPort, controller, local, msgTypes, outputToDaemon, and frodo2.controller.Controller.PORT.
| Collection< MessageType > frodo2.daemon.Constructor.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
References msgTypes.
| void frodo2.daemon.Constructor.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, frodo2.communication.MessageType.equals(), frodo2.algorithms.AgentInterface< V extends Addable< V > >.getID(), local, notifyIn(), and tellUser().
Referenced by notifyIn().

| void frodo2.daemon.Constructor.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
|
private |
This function is used to send a message to the user via the UI.
| message | the message to be send to the user |
References queue, and frodo2.controller.userIO.UserIO.USER_NOTIFICATION_MSG.
Referenced by notifyIn().
|
private |
Every time an agent is created this number is updated.
Referenced by Constructor(), and Constructor().
|
private |
|
private |
|
private |
Is true when the experiments are run in the same JVM as the controller.
Referenced by Constructor(), Constructor(), and notifyIn().
|
private |
The list of messages types this listener wants to be notified of.
Referenced by Constructor(), Constructor(), and getMsgTypes().
|
private |
The output pipe to communicate with the daemon.
Referenced by Constructor(), and Constructor().
|
package |
The daemon queue.
Referenced by setQueue(), and tellUser().