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

Public Member Functions

 UserIO (Daemon daemon)
 Constructor.
void start ()
void load (String filename)
 Used to load a new configuration file.
Collection< MessageTypegetMsgTypes ()
void notifyIn (Message msg)
void setQueue (Queue queue)
void registerController (AgentAddress address)
 Report the daemon to the controller.
void exit ()
 Quit the daemon;.
abstract void tellUser (String message)
 Give a message to the user.
abstract void stopRunning ()
 Stop the user interface.
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

Daemon daemon
 The daemon this UI belongs to.
Queue queue
 the daemons queue

Private Attributes

ArrayList< MessageTypemsgTypes = new ArrayList <MessageType> ()
 The list of messages types this listener wants to be notified of.

Detailed Description

Author
Brammert Ottens, Thomas Leaute

Constructor & Destructor Documentation

◆ UserIO()

Member Function Documentation

◆ exit()

void frodo2.daemon.userIO.UserIO.exit ( )

Quit the daemon;.

References daemon.

Referenced by frodo2.daemon.userIO.Console.parseInput().

◆ getMsgTypes()

Collection< MessageType > frodo2.daemon.userIO.UserIO.getMsgTypes ( )

◆ load()

void frodo2.daemon.userIO.UserIO.load ( String filename)

Used to load a new configuration file.

Parameters
filenamethe file to be loaded

References frodo2.controller.userIO.UserIO.CONFIGURATION_MSG, and frodo2.communication.Queue.sendMessageToSelf().

Referenced by frodo2.daemon.userIO.Console.parseInput().

Here is the call graph for this function:

◆ notifyIn()

void frodo2.daemon.userIO.UserIO.notifyIn ( Message msg)

◆ registerController()

void frodo2.daemon.userIO.UserIO.registerController ( AgentAddress address)

Report the daemon to the controller.

Parameters
addressof the controller
Author
Brammert Ottens, Thomas Leaute

References frodo2.daemon.LocalWhitePages.CONTROLLER_ID, daemon, frodo2.controller.messages.MessageAgentReporting.DEAMON_REPORTING, frodo2.output, frodo2.communication.PipeFactory.outputPipe(), frodo2.controller.Controller.PipeFactoryInstance, and queue.

Referenced by frodo2.daemon.userIO.Console.parseInput().

Here is the call graph for this function:

◆ setQueue()

void frodo2.daemon.userIO.UserIO.setQueue ( Queue queue)

◆ start()

void frodo2.daemon.userIO.UserIO.start ( )
See also
java.lang.Thread#start()

◆ stopRunning()

abstract void frodo2.daemon.userIO.UserIO.stopRunning ( )
abstract

Stop the user interface.

Reimplemented in frodo2.daemon.userIO.Console.

◆ tellUser()

abstract void frodo2.daemon.userIO.UserIO.tellUser ( String message)
abstract

Give a message to the user.

Parameters
messagethe message to be presented to the user

Reimplemented in frodo2.daemon.userIO.Console.

Referenced by notifyIn().

Member Data Documentation

◆ daemon

Daemon frodo2.daemon.userIO.UserIO.daemon
package

The daemon this UI belongs to.

Referenced by frodo2.daemon.userIO.Console.Console(), exit(), registerController(), and UserIO().

◆ msgTypes

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

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

Referenced by getMsgTypes(), and UserIO().

◆ queue

Queue frodo2.daemon.userIO.UserIO.queue
package

the daemons queue

Referenced by registerController(), and setQueue().


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