|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A JUnit test class for the configuration manager. More...

Classes | |
| class | SimpleDaemonListener |
| A simple class that listens for messages sent to a daemon. More... | |
Public Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () |
| void | testParseConfigurationFile1 () throws Exception |
| Tests the parsing of the configuration file with certain parameters omitted. | |
| void | testParseConfigurationFile2 () throws Exception |
| Tests the parsing of a configuration file with all the options specified. | |
| void | testStartExperiment () throws Exception |
| Tests starting an experiment. | |
| void | testStartExperimentNCCCs () throws Exception |
| Tests starting an experiment with NCCCs. | |
| void | testStartExperiment (boolean countNCCCs) throws Exception |
| Tests starting an experiment. | |
Static Public Attributes | |
| static AgentAddress | address = Controller.PipeFactoryInstance.getSelfAddress(4444) |
| The address of the agent to be used. | |
Private Attributes | |
| Controller | control |
| This controller is only used to be able to create a Configuration manager. | |
| ConfigurationManager | configManager |
| A configuration manager, it handles the configuration file. | |
| SimpleDaemonListener | daemonListener |
| A simple daemon. | |
| WhitePages | whitePage |
| The white pages. | |
| Queue | queue |
| Queue that handles all the messages. | |
| QueueInputPipeInterface | input |
| An input pipe to test the sending of messages to the daemon. | |
Static Private Attributes | |
| static String | testDir = TestConfigurationManager.class.getResource("testFiles").getFile() + "/" |
| Directory containing the test files. | |
A JUnit test class for the configuration manager.
| void frodo2.controller.TestConfigurationManager.setUp | ( | ) | throws Exception |
References address, configManager, control, input, frodo2.communication.PipeFactory.inputPipe(), frodo2.controller.Controller.PipeFactoryInstance, queue, testDir, and whitePage.

| void frodo2.controller.TestConfigurationManager.tearDown | ( | ) |
| void frodo2.controller.TestConfigurationManager.testParseConfigurationFile1 | ( | ) | throws Exception |
Tests the parsing of the configuration file with certain parameters omitted.
These should be set to default values.
| Exception | if an error occurs |
References configManager, daemonListener, queue, and testDir.
| void frodo2.controller.TestConfigurationManager.testParseConfigurationFile2 | ( | ) | throws Exception |
Tests the parsing of a configuration file with all the options specified.
| Exception | if an error occurs |
References configManager, daemonListener, queue, and testDir.
| void frodo2.controller.TestConfigurationManager.testStartExperiment | ( | ) | throws Exception |
Tests starting an experiment.
| Exception | if an error occurs |
References testStartExperiment().
Referenced by testStartExperiment(), and testStartExperimentNCCCs().

| void frodo2.controller.TestConfigurationManager.testStartExperiment | ( | boolean | countNCCCs | ) | throws Exception |
Tests starting an experiment.
| countNCCCs | whether we should count NCCCs |
| Exception | if an error occurs |
References address, configManager, daemonListener, frodo2.controller.messages.MessageAgentReporting.DEAMON_REPORTING, queue, frodo2.controller.userIO.UserIO.START_MSG, and testDir.
| void frodo2.controller.TestConfigurationManager.testStartExperimentNCCCs | ( | ) | throws Exception |
Tests starting an experiment with NCCCs.
| Exception | if an error occurs |
References testStartExperiment().

|
static |
The address of the agent to be used.
Referenced by frodo2.controller.TestConfigurationManager.SimpleDaemonListener.notifyIn(), setUp(), and testStartExperiment().
|
private |
A configuration manager, it handles the configuration file.
Referenced by setUp(), testParseConfigurationFile1(), testParseConfigurationFile2(), and testStartExperiment().
|
private |
This controller is only used to be able to create a Configuration manager.
Referenced by setUp(), and tearDown().
|
private |
A simple daemon.
Referenced by testParseConfigurationFile1(), testParseConfigurationFile2(), and testStartExperiment().
|
private |
An input pipe to test the sending of messages to the daemon.
Referenced by setUp(), and tearDown().
|
private |
Queue that handles all the messages.
Referenced by setUp(), tearDown(), testParseConfigurationFile1(), testParseConfigurationFile2(), and testStartExperiment().
|
staticprivate |
Directory containing the test files.
Must end with a slash.
Referenced by setUp(), testParseConfigurationFile1(), testParseConfigurationFile2(), and testStartExperiment().
|
private |
The white pages.
Referenced by setUp(), and tearDown().