FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.controller.WhitePages Class Reference
Inheritance diagram for frodo2.controller.WhitePages:

Public Member Functions

 WhitePages ()
 Constructor.
Collection< MessageTypegetMsgTypes ()
void notifyIn (Message msg)
void setQueue (Queue queue)
void close ()
 This function needs to be called to make sure that all the sockets are properly closed.
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_REPORTED = MessageType.SYSTEM.newChild("WhitePages", "Agent-Reported")
 Message used by white pages to notified the interested that an agent reported itself.
static final MessageType ALL_AGENTS_KILLED = MessageType.SYSTEM.newChild("WhitePages", "All-Agents-Killed")
 Message used to tell the configuration Manager that all agents are killed.
static final MessageType DEAMONS_CONFIG_MSG = MessageType.SYSTEM.newChild("WhitePages", "Daemon-List")
 The message containing the list of available daemons.
static final MessageType DEAMONS_LIST = MessageType.SYSTEM.newChild("WhitePages", "Daemon list")
 Message containing the list of registered daemons for the user interface.
static final MessageType AGENTS_LIST = MessageType.SYSTEM.newChild("WhitePages", "Agent list")
 Message containing the list of registered agents for the user interface.
static final MessageType CONNECT_AGENT = MessageType.SYSTEM.newChild("WhitePages", "Connect-Agent")
 Message used to tell an agent to connect to its neighbours.
static final MessageType KILL_AGENTS = MessageType.SYSTEM.newChild("WhitePages", "Kill-Agents")
 Message to signal to the daemon to kill agents.
static final MessageType AGENT_ADDRESS = MessageType.SYSTEM.newChild("WhitePages", "Agent-Address")
 Message send to the local white pages that contains the address of an agent.

Package Attributes

HashMap< String, AgentAddressdaemons
 The list of available daemons.
HashMap< String, AgentAddressagents
 The list of available agents.
String localAddress
 The controllers IP address.

Private Attributes

Queue queue
 The queue this listener belongs to.
int daemonCount
 Counts the number of daemons that killed their agents.
ArrayList< MessageTypemsgTypes = new ArrayList <MessageType> ()
 The list of messages types this listener wants to be notified of.

Detailed Description

Author
Brammert Ottens, Thomas Leaute, Xavier Olive

The white pages contains a list of the ip addresses of all agents and all daemons

Constructor & Destructor Documentation

◆ WhitePages()

Member Function Documentation

◆ close()

void frodo2.controller.WhitePages.close ( )

This function needs to be called to make sure that all the sockets are properly closed.

References agents, daemons, and queue.

Referenced by frodo2.daemon.TestLocalWhitePages.testLocalAgentAddressRequestUnknown().

◆ getMsgTypes()

Collection< MessageType > frodo2.controller.WhitePages.getMsgTypes ( )

◆ notifyIn()

◆ setQueue()

void frodo2.controller.WhitePages.setQueue ( Queue queue)

Member Data Documentation

◆ AGENT_ADDRESS

final MessageType frodo2.controller.WhitePages.AGENT_ADDRESS = MessageType.SYSTEM.newChild("WhitePages", "Agent-Address")
static

◆ AGENT_REPORTED

final MessageType frodo2.controller.WhitePages.AGENT_REPORTED = MessageType.SYSTEM.newChild("WhitePages", "Agent-Reported")
static

Message used by white pages to notified the interested that an agent reported itself.

Referenced by frodo2.controller.ConfigurationManager.ConfigurationManager(), and notifyIn().

◆ agents

HashMap<String, AgentAddress> frodo2.controller.WhitePages.agents
package

◆ AGENTS_LIST

final MessageType frodo2.controller.WhitePages.AGENTS_LIST = MessageType.SYSTEM.newChild("WhitePages", "Agent list")
static

Message containing the list of registered agents for the user interface.

Referenced by frodo2.controller.userIO.UserIO.notifyIn(), and frodo2.controller.userIO.UserIO.UserIO().

◆ ALL_AGENTS_KILLED

final MessageType frodo2.controller.WhitePages.ALL_AGENTS_KILLED = MessageType.SYSTEM.newChild("WhitePages", "All-Agents-Killed")
static

Message used to tell the configuration Manager that all agents are killed.

Referenced by frodo2.controller.ConfigurationManager.ConfigurationManager().

◆ CONNECT_AGENT

◆ daemonCount

int frodo2.controller.WhitePages.daemonCount
private

Counts the number of daemons that killed their agents.

◆ daemons

HashMap<String, AgentAddress> frodo2.controller.WhitePages.daemons
package

The list of available daemons.

Referenced by close(), frodo2.controller.TestWhitePages.WhitePagesExtention.getDaemons(), and WhitePages().

◆ DEAMONS_CONFIG_MSG

final MessageType frodo2.controller.WhitePages.DEAMONS_CONFIG_MSG = MessageType.SYSTEM.newChild("WhitePages", "Daemon-List")
static

The message containing the list of available daemons.

Referenced by frodo2.controller.ConfigurationManager.ConfigurationManager().

◆ DEAMONS_LIST

final MessageType frodo2.controller.WhitePages.DEAMONS_LIST = MessageType.SYSTEM.newChild("WhitePages", "Daemon list")
static

Message containing the list of registered daemons for the user interface.

Referenced by frodo2.controller.userIO.UserIO.notifyIn(), and frodo2.controller.userIO.UserIO.UserIO().

◆ KILL_AGENTS

◆ localAddress

String frodo2.controller.WhitePages.localAddress
package

The controllers IP address.

Referenced by WhitePages().

◆ msgTypes

ArrayList<MessageType> frodo2.controller.WhitePages.msgTypes = new ArrayList <MessageType> ()
private

The list of messages types this listener wants to be notified of.

Referenced by getMsgTypes(), and WhitePages().

◆ queue

Queue frodo2.controller.WhitePages.queue
private

The queue this listener belongs to.

Referenced by close(), notifyIn(), and setQueue().


The documentation for this class was generated from the following file: