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

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< 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.

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< MessageTypemsgTypes = 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.

Detailed Description

Author
Brammert Ottens, Thomas Leaute

Constructor & Destructor Documentation

◆ Constructor() [1/2]

frodo2.daemon.Constructor.Constructor ( boolean local,
QueueIOPipe outputToDaemon,
Daemon daemon )

Constructor to be used when this constructor is attached to a daemon.

Parameters
localwhether the experiments are run in the same JVM as the controller
outputToDaemonthe pipe to send messages to the daemon
daemonthe daemon

References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, agentPort, daemon, local, msgTypes, and outputToDaemon.

◆ Constructor() [2/2]

frodo2.daemon.Constructor.Constructor ( boolean local,
QueueIOPipe outputToDaemon,
Controller controller )

Constructor to be used when this constructor is attached to a controller.

Parameters
localwhether the experiments are run in the same JVM as the controller
outputToDaemonthe pipe to send messages to the daemon
controllerthe controller

References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, agentPort, controller, local, msgTypes, outputToDaemon, and frodo2.controller.Controller.PORT.

Member Function Documentation

◆ getMsgTypes()

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

◆ notifyIn()

◆ setQueue()

◆ tellUser()

void frodo2.daemon.Constructor.tellUser ( String message)
private

This function is used to send a message to the user via the UI.

Parameters
messagethe message to be send to the user

References queue, and frodo2.controller.userIO.UserIO.USER_NOTIFICATION_MSG.

Referenced by notifyIn().

Member Data Documentation

◆ agentPort

int frodo2.daemon.Constructor.agentPort
private

Every time an agent is created this number is updated.

Referenced by Constructor(), and Constructor().

◆ controller

Controller frodo2.daemon.Constructor.controller
private

Pointer to the controller.

To be used when problem is NOT distributed

Referenced by Constructor().

◆ daemon

Daemon frodo2.daemon.Constructor.daemon
private

Pointer to the daemon.

To be used when problem is distributed

Referenced by Constructor().

◆ local

boolean frodo2.daemon.Constructor.local
private

Is true when the experiments are run in the same JVM as the controller.

Referenced by Constructor(), Constructor(), and notifyIn().

◆ msgTypes

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

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

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

◆ outputToDaemon

QueueOutputPipeInterface frodo2.daemon.Constructor.outputToDaemon
private

The output pipe to communicate with the daemon.

Referenced by Constructor(), and Constructor().

◆ queue

Queue frodo2.daemon.Constructor.queue
package

The daemon queue.

Referenced by setQueue(), and tellUser().


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