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

A simple class that listens for messages sent to a daemon. More...

Inheritance diagram for frodo2.controller.TestConfigurationManager.SimpleDaemonListener:

Public Member Functions

 SimpleDaemonListener (boolean countNCCCs)
 A simple constructor.
void setQueue (Queue queue)
void notifyIn (Message msg)
Collection< MessageTypegetMsgTypes ()
int getNbrReceived ()
Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T >
default void notifyIn (Message msg, Object toAgent)
 Notifies the listener of an incoming message.

Private Attributes

Queue queue
 the queue that handles the messages
int received = 0
 number of agent definitions that have been received
ArrayList< MessageTypemsgTypes = new ArrayList <MessageType> ()
 The list of message types this listener wants to be notified of.

Detailed Description

A simple class that listens for messages sent to a daemon.

Author
brammertottens

Constructor & Destructor Documentation

◆ SimpleDaemonListener()

frodo2.controller.TestConfigurationManager.SimpleDaemonListener.SimpleDaemonListener ( boolean countNCCCs)

Member Function Documentation

◆ getMsgTypes()

Collection< MessageType > frodo2.controller.TestConfigurationManager.SimpleDaemonListener.getMsgTypes ( )

◆ getNbrReceived()

int frodo2.controller.TestConfigurationManager.SimpleDaemonListener.getNbrReceived ( )
Returns
the number of agent definitions received

References received.

◆ notifyIn()

◆ setQueue()

void frodo2.controller.TestConfigurationManager.SimpleDaemonListener.setQueue ( Queue queue)

Member Data Documentation

◆ msgTypes

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

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

Referenced by getMsgTypes(), and SimpleDaemonListener().

◆ queue

Queue frodo2.controller.TestConfigurationManager.SimpleDaemonListener.queue
private

the queue that handles the messages

Referenced by notifyIn(), and setQueue().

◆ received

int frodo2.controller.TestConfigurationManager.SimpleDaemonListener.received = 0
private

number of agent definitions that have been received

Referenced by getNbrReceived(), and notifyIn().


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