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

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< MessageTypegetMsgTypes ()
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, QueueOutputPipeInterfaceexternalAgents
 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< MessageTypemsgTypes = 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.

Detailed Description

Author
brammertottens
Todo
implement the measure messages and measure nccc's also for the deamon

Constructor & Destructor Documentation

◆ LocalWhitePages() [1/2]

◆ LocalWhitePages() [2/2]

Member Function Documentation

◆ getMsgTypes()

Collection< MessageType > frodo2.daemon.LocalWhitePages.getMsgTypes ( )

◆ notifyIn()

◆ setQueue()

void frodo2.daemon.LocalWhitePages.setQueue ( Queue queue)

Member Data Documentation

◆ AGENT_ADDRESS_REQUEST

final MessageType frodo2.daemon.LocalWhitePages.AGENT_ADDRESS_REQUEST = MessageType.SYSTEM.newChild("LocalWhitePages", "Agent-Address-Request")
static

Message used to request to address of a specific agent.

Referenced by frodo2.controller.WhitePages.WhitePages().

◆ AGENT_OUTPUT_PIPE

final MessageType frodo2.daemon.LocalWhitePages.AGENT_OUTPUT_PIPE = MessageType.SYSTEM.newChild("LocalWhitePages", "Agent-Output-Pipe")
static

◆ AGENTS_KILLED

final MessageType frodo2.daemon.LocalWhitePages.AGENTS_KILLED = MessageType.SYSTEM.newChild("LocalWhitePages", "Agents-killed")
static

◆ controller

Controller frodo2.daemon.LocalWhitePages.controller
private

Pointer to the controller.

Referenced by LocalWhitePages().

◆ CONTROLLER_ID

◆ daemon

Daemon frodo2.daemon.LocalWhitePages.daemon
private

◆ DIE

final MessageType frodo2.daemon.LocalWhitePages.DIE = MessageType.SYSTEM.newChild("LocalWhitePages", "Die")
static

◆ externalAgents

HashMap<String, QueueOutputPipeInterface> frodo2.daemon.LocalWhitePages.externalAgents
package

◆ global

boolean frodo2.daemon.LocalWhitePages.global
package

global is true if the experiments run on one machine

Referenced by LocalWhitePages(), and LocalWhitePages().

◆ localAgents

HashSet<String> frodo2.daemon.LocalWhitePages.localAgents
package

A set of local agent IDs.

Referenced by LocalWhitePages().

◆ msgTypes

ArrayList<MessageType> frodo2.daemon.LocalWhitePages.msgTypes = new ArrayList <MessageType> ()
private

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

Referenced by getMsgTypes(), LocalWhitePages(), and LocalWhitePages().

◆ queue

Queue frodo2.daemon.LocalWhitePages.queue
private

The queue used to send messages.

Referenced by setQueue().


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