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

Public Member Functions | |
| LocalWhitePages (Daemon daemon) | |
| Constructor to be used when the lwp is a listener for the daemon. | |
| LocalWhitePages (Controller controller) | |
| Constructor to be used when the lwp is a listener for the 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. | |
Static Public Attributes | |
| static final MessageType | AGENT_ADDRESS_REQUEST = MessageType.SYSTEM.newChild("LocalWhitePages", "Agent-Address-Request") |
| Message used to request to address of a specific agent. | |
| static final String | CONTROLLER_ID = "Controller" |
| The ID of the controller. | |
| static final MessageType | AGENT_OUTPUT_PIPE = MessageType.SYSTEM.newChild("LocalWhitePages", "Agent-Output-Pipe") |
| Send an Output pipe to an agent. | |
| static final MessageType | DIE = MessageType.SYSTEM.newChild("LocalWhitePages", "Die") |
| Message send to agent to kill it. | |
| static final MessageType | AGENTS_KILLED = MessageType.SYSTEM.newChild("LocalWhitePages", "Agents-killed") |
| Message send when an agent is killed by the daemon. | |
Package Attributes | |
| HashMap< String, QueueOutputPipeInterface > | externalAgents |
| Each agent has its own QueueIOPipe for JVM-internal messages. | |
| HashSet< String > | localAgents |
| A set of local agent IDs. | |
| boolean | global |
| global is true if the experiments run on one machine | |
Private Attributes | |
| Queue | queue |
| The queue used to send messages. | |
| ArrayList< MessageType > | msgTypes = new ArrayList <MessageType> () |
| The list of messages types this listener wants to be notified of. | |
| Daemon | daemon |
| Pointer to the daemon. | |
| Controller | controller |
| Pointer to the controller. | |
| frodo2.daemon.LocalWhitePages.LocalWhitePages | ( | Daemon | daemon | ) |
Constructor to be used when the lwp is a listener for the daemon.
| daemon | the daemon |
References frodo2.controller.WhitePages.AGENT_ADDRESS, AGENT_OUTPUT_PIPE, daemon, externalAgents, global, frodo2.controller.WhitePages.KILL_AGENTS, frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_ADDRESS_REQUEST, frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_REPORTING, and msgTypes.
| frodo2.daemon.LocalWhitePages.LocalWhitePages | ( | Controller | controller | ) |
Constructor to be used when the lwp is a listener for the controller.
| controller | the controller |
References frodo2.controller.WhitePages.AGENT_ADDRESS, AGENT_OUTPUT_PIPE, frodo2.controller.ConfigurationManager.CONNECT, controller, externalAgents, global, frodo2.controller.WhitePages.KILL_AGENTS, frodo2.controller.ConfigurationManager.KILL_ALL_AGENTS, frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_ADDRESS_REQUEST, frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_REPORTING, localAgents, msgTypes, and frodo2.controller.ConfigurationManager.START.
| Collection< MessageType > frodo2.daemon.LocalWhitePages.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
References msgTypes.
| void frodo2.daemon.LocalWhitePages.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.communication.MessageType.equals(), externalAgents, frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_ADDRESS_REQUEST, and notifyIn().
Referenced by notifyIn().

| void frodo2.daemon.LocalWhitePages.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
|
static |
Message used to request to address of a specific agent.
Referenced by frodo2.controller.WhitePages.WhitePages().
|
static |
Send an Output pipe to an agent.
Referenced by LocalWhitePages(), LocalWhitePages(), and frodo2.daemon.TestLocalWhitePages.SimpleAgent.SimpleAgent().
|
static |
Message send when an agent is killed by the daemon.
Referenced by frodo2.controller.TestConfigurationManager.SimpleDaemonListener.notifyIn(), and frodo2.controller.WhitePages.WhitePages().
|
private |
Pointer to the controller.
Referenced by LocalWhitePages().
|
static |
The ID of the controller.
Referenced by frodo2.daemon.TestLocalWhitePages.SimpleAgent.agentReportGlobal(), frodo2.daemon.LocalConfigManager.notifyIn(), frodo2.daemon.userIO.UserIO.registerController(), frodo2.daemon.Daemon.registerDaemon(), frodo2.daemon.TestLocalWhitePages.setUp(), and frodo2.daemon.TestLocalWhitePages.testLocalAgentAddressRequestUnknown().
|
private |
Pointer to the daemon.
Referenced by LocalWhitePages(), and frodo2.daemon.TestLocalWhitePages.LocalWhitePagesExtension.LocalWhitePagesExtension().
|
static |
Message send to agent to kill it.
Referenced by frodo2.algorithms.SingleQueueAgent< Val extends Addable< Val > >.notifyIn().
|
package |
Each agent has its own QueueIOPipe for JVM-internal messages.
Referenced by frodo2.daemon.TestLocalWhitePages.LocalWhitePagesExtension.getAgents(), LocalWhitePages(), LocalWhitePages(), and notifyIn().
|
package |
global is true if the experiments run on one machine
Referenced by LocalWhitePages(), and LocalWhitePages().
|
package |
A set of local agent IDs.
Referenced by LocalWhitePages().
|
private |
The list of messages types this listener wants to be notified of.
Referenced by getMsgTypes(), LocalWhitePages(), and LocalWhitePages().
|
private |
The queue used to send messages.
Referenced by setQueue().