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

A local configuration manager that parses configuration files passed to the daemon. More...

Inheritance diagram for frodo2.daemon.LocalConfigManager:

Public Member Functions

 LocalConfigManager (Daemon daemon, String workDir)
 Constructor.
void notifyIn (Message msg)
Public Member Functions inherited from frodo2.controller.ConfigurationManager
 ConfigurationManager (Controller control, boolean local, String workDir)
 The constructor of the Configuration manager.
 ConfigurationManager (Controller control, boolean local)
 The constructor of the Configuration manager.
Collection< MessageTypegetMsgTypes ()
void setQueue (Queue queue)
int parseConfigurationFile (String configFile) throws JDOMException, IOException
 This function parses the "configuration" element in the experiment file.
boolean getDebug ()
 A getter function for testing purposes.
String getAgentDescription ()
 A getter function for testing purposes.
int getTimeOut ()
 A getter function for testing purposes.
String getLogClass ()
 A getter function for testing purposes.
String getResultFile ()
 A getter function for testing purposes.
HashMap< String, AgentAddressgetDaemonList ()
 A getter function for testing purposes.
long getNCCCs ()
Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T >
default void notifyIn (Message msg, Object toAgent)
 Notifies the listener of an incoming message.

Protected Member Functions

void distributeAgents (DCOPProblemInterface<?, ?> problem) throws Exception
Protected Member Functions inherited from frodo2.controller.ConfigurationManager
 ConfigurationManager ()
 Empty constructor.
void tellUser (String message)
 This function is used to send a message to the user via the UI.
void runExperiment (String filename)
 This file sets up a specific problem and tells the agents to run it.

Private Attributes

final Daemon daemon
 The daemon.

Additional Inherited Members

Static Public Attributes inherited from frodo2.controller.ConfigurationManager
static final MessageType AGENT_CONFIGURATION_MESSAGE = MessageType.SYSTEM.newChild("ConfigurationManager", "Agent-Configuration")
 The message send to the Daemon that contain the configuration of an agent.
static final MessageType REQUEST_DAEMONS_CONFIG_MSG = MessageType.SYSTEM.newChild("ConfigurationManager", "Request-Daemons-Config")
 The message type used to ask the white pages for a list of available daemons.
static final MessageType START = MessageType.SYSTEM.newChild("ConfigurationManager", "Start")
 Message used to tell the white pages that the algorithm can start.
static final MessageType CONNECT = MessageType.SYSTEM.newChild("ConfigurationManager", "Connect")
 Message used to tell the white pages that the agent can connect to their neighbours.
static final MessageType KILL_ALL_AGENTS = MessageType.SYSTEM.newChild("ConfigurationManager", "Kill-All-Agents")
 Message to signal to the white pages to kill the agents.
static final String END_TEXT = "All experiments are finished"
 The text displayed when the experiment is over.
Protected Attributes inherited from frodo2.controller.ConfigurationManager
Queue queue
 The queue on which it should call sendMessage().
ArrayList< MessageTypemsgTypes = new ArrayList <MessageType> ()
 The list of messages types this listener wants to be notified of.
Element problemList
 After the configuration file has been loaded, this contains a list of problems that will be solved when the experiment starts.
Document agentDescriptionDoc
 The JDOM Document describing the agent configuration.
int problem
 the experiment that is currently run
int numberOfAgents
 Number of agents in the problem that is currently run.
int numberOfAgentsFinished
 The number of agents that reported to be finished.
String workDir
 Folder containing the files mentioned in the configuration document.

Detailed Description

A local configuration manager that parses configuration files passed to the daemon.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ LocalConfigManager()

Member Function Documentation

◆ distributeAgents()

void frodo2.daemon.LocalConfigManager.distributeAgents ( DCOPProblemInterface<?, ?> problem) throws Exception
protected

◆ notifyIn()

Member Data Documentation

◆ daemon

final Daemon frodo2.daemon.LocalConfigManager.daemon
private

The daemon.

Referenced by LocalConfigManager().


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