|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A local configuration manager that parses configuration files passed to the daemon. More...

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< MessageType > | getMsgTypes () |
| 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, AgentAddress > | getDaemonList () |
| 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< MessageType > | msgTypes = 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. | |
A local configuration manager that parses configuration files passed to the daemon.
| frodo2.daemon.LocalConfigManager.LocalConfigManager | ( | Daemon | daemon, |
| String | workDir ) |
| daemon | the daemon |
| workDir | the working directory |
References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_FINISHED, frodo2.controller.userIO.UserIO.CONFIGURATION_MSG, daemon, and frodo2.controller.ConfigurationManager.workDir.
|
protected |
Reimplemented from frodo2.controller.ConfigurationManager.
References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, frodo2.controller.ConfigurationManager.agentDescriptionDoc, and frodo2.controller.ConfigurationManager.problem.
| void frodo2.daemon.LocalConfigManager.notifyIn | ( | Message | msg | ) |
Reimplemented from frodo2.controller.ConfigurationManager.
References frodo2.controller.ConfigurationManager.AGENT_CONFIGURATION_MESSAGE, frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_FINISHED, frodo2.daemon.LocalWhitePages.CONTROLLER_ID, frodo2.communication.MessageType.equals(), frodo2.communication.MessageWith3Payloads< T1 extends Serializable, T2 extends Serializable, T3 extends Serializable >.getPayload1(), frodo2.communication.MessageWith3Payloads< T1 extends Serializable, T2 extends Serializable, T3 extends Serializable >.getPayload2(), frodo2.communication.MessageWith3Payloads< T1 extends Serializable, T2 extends Serializable, T3 extends Serializable >.getPayload3(), frodo2.communication.Message.getType(), frodo2.controller.ConfigurationManager.problem, frodo2.controller.ConfigurationManager.problemList, frodo2.controller.ConfigurationManager.queue, frodo2.controller.ConfigurationManager.runExperiment(), and frodo2.controller.ConfigurationManager.tellUser().

|
private |
The daemon.
Referenced by LocalConfigManager().