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

Static Public Member Functions | |
| static TestSuite | suite () |
Protected Member Functions | |
| void | setUp () |
| void | tearDown () throws Exception |
Private Attributes | |
| final int | maxNbrVars = 15 |
| Maximum number of variables in the random graph. | |
| final int | maxNbrEdges = 100 |
| Maximum number of edges in the random graph. | |
| final int | maxNbrAgents = 5 |
| Maximum number of agents. | |
| Document | problem |
| Random XCSP problem. | |
| Graph | graph |
| A random graph. | |
| XCSPparser< AddableInteger, AddableReal > | parser |
| The parser. | |
| HashMap< String, XCSPparser< AddableInteger, AddableReal > > | trueSubProbs |
| For each agent, its correct subproblem. | |
| HashMap< String, DCOPProblemInterface< AddableInteger, AddableReal > > | subProbs |
| For each agent, its computed subproblem. | |
JUnit test case for the class Problem.
| frodo2.algorithms.test.ProblemTest.ProblemTest | ( | String | method | ) |
|
protected |
References frodo2.algorithms.test.AllTests.generateProblem(), frodo2.algorithms.RandGraphFactory.getRandGraph(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getVariables(), graph, maxNbrAgents, maxNbrEdges, maxNbrVars, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), parser, problem, subProbs, and trueSubProbs.

|
static |
References ProblemTest(), and suite().
Referenced by frodo2.algorithms.test.AllTests.suite(), and suite().

|
protected |
References parser, problem, subProbs, and trueSubProbs.
| void frodo2.algorithms.test.ProblemTest.testGetAgent | ( | ) |
Test method for Problem.getAgent().
References subProbs.
| void frodo2.algorithms.test.ProblemTest.testGetAgentNeighborhoods | ( | ) |
Test method for Problem.getAgentNeighborhoods().
References subProbs, and trueSubProbs.
| void frodo2.algorithms.test.ProblemTest.testGetAgents | ( | ) |
Test method for Problem.getAgents().
References subProbs, and trueSubProbs.
| void frodo2.algorithms.test.ProblemTest.testGetAnonymNeighborhoods | ( | ) |
Test method for Problem.getAnonymNeighborhoods().
| void frodo2.algorithms.test.ProblemTest.testGetAnonymVars | ( | ) |
Test method for Problem.getAnonymVars().
| void frodo2.algorithms.test.ProblemTest.testGetDomain | ( | ) |
Test method for Problem.getDomain(java.lang.String).
References frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAllVars(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getDomain(), and frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getDomain().

| void frodo2.algorithms.test.ProblemTest.testGetDomainSize | ( | ) |
Test method for Problem.getDomainSize(java.lang.String).
References frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAllVars(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getDomainSize(), and frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getDomainSize().

| void frodo2.algorithms.test.ProblemTest.testGetExtVars | ( | ) |
Test method for Problem.getExtVars().
| void frodo2.algorithms.test.ProblemTest.testGetMyVars | ( | ) |
Test method for Problem.getMyVars().
References subProbs, and trueSubProbs.
| void frodo2.algorithms.test.ProblemTest.testGetNbrIntVars | ( | ) |
Test method for Problem.getNbrIntVars().
| void frodo2.algorithms.test.ProblemTest.testGetNbrNeighbors | ( | ) |
Test method for Problem.getNbrNeighbors(java.lang.String).
References frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getMyVars(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNbrNeighbors(), and frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getNbrNeighbors().

| void frodo2.algorithms.test.ProblemTest.testGetNeighborhoods | ( | ) |
Test method for Problem.getNeighborhoods().
References subProbs, and trueSubProbs.
| void frodo2.algorithms.test.ProblemTest.testGetNeighborhoodSizes | ( | ) |
Test method for Problem.getNeighborhoodSizes().
| void frodo2.algorithms.test.ProblemTest.testGetOwner | ( | ) |
Test method for Problem.getOwner(java.lang.String).
References frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getOwner(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getOwner(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getVariables(), subProbs, and trueSubProbs.

| void frodo2.algorithms.test.ProblemTest.testGetOwners | ( | ) |
Test method for Problem.getOwners().
| void frodo2.algorithms.test.ProblemTest.testGetProbabilitySpaces | ( | ) |
Test method for Problem.getProbabilitySpaces().
| void frodo2.algorithms.test.ProblemTest.testGetProbabilitySpacesString | ( | ) |
Test method for Problem.getProbabilitySpaces(java.lang.String).
| void frodo2.algorithms.test.ProblemTest.testGetSolutionSpaces | ( | ) |
Test method for Problem#getSolutionSpaces(boolean).
References frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), and frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces().

| void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesString | ( | ) |
Test method for Problem.getSolutionSpaces(java.lang.String).
| void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesStringBoolean | ( | ) |
Test method for Problem.getSolutionSpaces(java.lang.String, boolean).
| void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesStringBooleanSet | ( | ) |
Test method for Problem.getSolutionSpaces(java.lang.String, boolean, Set).
| void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesStringSet | ( | ) |
Test method for Problem.getSolutionSpaces(java.lang.String, Set).
| void frodo2.algorithms.test.ProblemTest.testGetVariables | ( | ) |
Test method for Problem.getVariables().
References subProbs, and trueSubProbs.
| void frodo2.algorithms.test.ProblemTest.testIsRandom | ( | ) |
Test method for Problem.isRandom(java.lang.String).
| void frodo2.algorithms.test.ProblemTest.testSetDomain | ( | ) |
Test method for Problem.setDomain(java.lang.String, Addable[]).
|
private |
Maximum number of agents.
Referenced by setUp().
|
private |
Maximum number of edges in the random graph.
Referenced by setUp().
|
private |
|
private |
The parser.
Referenced by setUp(), and tearDown().
|
private |
Random XCSP problem.
Referenced by setUp(), and tearDown().
|
private |
For each agent, its computed subproblem.
Referenced by setUp(), tearDown(), testGetAgent(), testGetAgentNeighborhoods(), testGetAgents(), testGetMyVars(), testGetNeighborhoods(), testGetOwner(), and testGetVariables().
|
private |
For each agent, its correct subproblem.
Referenced by setUp(), tearDown(), testGetAgentNeighborhoods(), testGetAgents(), testGetMyVars(), testGetNeighborhoods(), testGetOwner(), and testGetVariables().