|
| static TestSuite | suite () |
|
| final int | maxNbrVars = 15 |
| | Maximum number of variables in the random graph.
|
| final int | maxNbrEdges = 50 |
| | Maximum number of edges in the random graph.
|
| final int | maxNbrAgents |
| | Maximum number of agents.
|
|
| static String | testDir = TestController.class.getResource("testFiles").getFile() + "/" |
| | Directory containing the test files.
|
- Author
- Brammert Ottens
-
Thomas Leaute
◆ TestController() [1/2]
| frodo2.controller.TestController.TestController |
( |
String | name | ) |
|
◆ TestController() [2/2]
| frodo2.controller.TestController.TestController |
( |
String | name, |
|
|
int | maxNbrAgents ) |
Constructor.
- Parameters
-
| name | the name of the test method |
| maxNbrAgents | the maximum number of agents |
References maxNbrAgents.
◆ setUp()
| void frodo2.controller.TestController.setUp |
( |
| ) |
|
|
protected |
◆ suite()
| TestSuite frodo2.controller.TestController.suite |
( |
| ) |
|
|
static |
◆ tearDown()
| void frodo2.controller.TestController.tearDown |
( |
| ) |
|
|
protected |
◆ testControllerOnLocalProblem()
| void frodo2.controller.TestController.testControllerOnLocalProblem |
( |
| ) |
throws Exception |
Tests the controller when it simultaneously functions as a daemon that spawns agents.
- Exceptions
-
| Exception | if an error occurs |
References control, problem, testDir, and timeOut.
◆ testNonOmniscientControllerOnDistributedProblem()
| void frodo2.controller.TestController.testNonOmniscientControllerOnDistributedProblem |
( |
| ) |
throws Exception |
Test method for the distributed submode, in which the configuration file is passed to the daemons.
- Exceptions
-
| Exception | if an error occurs |
- Todo
- Test with more than one agent
- Todo
- Todo
- Test with more than one problem instance in the same experiment
References control, daemon, problem, testDir, and timeOut.
◆ testOmniscientControllerOnDistributedProblem()
| void frodo2.controller.TestController.testOmniscientControllerOnDistributedProblem |
( |
| ) |
throws Exception |
This test function generates random graphs, lets the controller/daemon set up the agent structure and tests whether it has been properly set up.
- Exceptions
-
| Exception | if an error occurs |
References control, daemon, problem, testDir, and timeOut.
◆ control
◆ daemon
◆ maxNbrAgents
| final int frodo2.controller.TestController.maxNbrAgents |
|
private |
◆ maxNbrEdges
| final int frodo2.controller.TestController.maxNbrEdges = 50 |
|
private |
Maximum number of edges in the random graph.
Referenced by setUp().
◆ maxNbrVars
| final int frodo2.controller.TestController.maxNbrVars = 15 |
|
private |
Maximum number of variables in the random graph.
- Note
- Must be at least 2.
Referenced by setUp().
◆ problem
| Document frodo2.controller.TestController.problem |
|
package |
◆ testDir
| String frodo2.controller.TestController.testDir = TestController.class.getResource("testFiles").getFile() + "/" |
|
staticprivate |
◆ timeOut
| int frodo2.controller.TestController.timeOut = 10000 |
|
package |
The documentation for this class was generated from the following file: