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

Classes | |
| enum | Algorithm |
| The different algorithms to be tested. More... | |
Public Member Functions | |
| JaCoPtests (String name, Algorithm algorithm, String agentDescFile, Class<? extends AbstractDCOPsolver< AddableInteger, V, ?> > solverClass, Class< V > classOfValuations, boolean useTCP, boolean maximize) | |
| Constructor. | |
| JaCoPtests (String name, Algorithm algorithm, String agentDescFile, Class<? extends AbstractDCOPsolver< AddableInteger, V, ?> > solverClass, Class< V > classOfValuations, boolean useTCP, boolean maximize, File probFile) | |
| Constructor that takes in a File. | |
| void | setUp () throws Exception |
| void | testProblemFromRepository () throws Exception |
| Tests on this.probFile. | |
| void | testRandomExtensionalProblem () throws Exception |
| Tests on a random problem in extension. | |
Static Public Member Functions | |
| static TestSuite | suite () |
Protected Member Functions | |
| void | tearDown () throws Exception |
Private Member Functions | |
| void | addRandomOwners (Document problemDoc, int maxAgent) |
| Add a random owner to variables if they do not have already one. | |
Static Private Member Functions | |
| static< V extends Addable< V > TestSuite | createSuite (Algorithm algorithm, Class<? extends AbstractDCOPsolver< AddableInteger, V, ?> > solverClass, Class< V > classOfValuations, String agentDescFile) |
Private Attributes | |
| Document | agentDescDoc |
| The description file of the agent. | |
| Class<? extends AbstractDCOPsolver< AddableInteger, V, ?> > | solverClass |
| The solver used. | |
| boolean | useTCP |
| If we use the TCP pipes or not. | |
| boolean | maximize |
| The optimization type of random problems. | |
| File | probFile |
| The problem file. | |
| Algorithm | currentAlgorithm |
| The algorithm being tested. | |
| final Class< V > | classOfValuations |
| The class of valuations. | |
JUnit test for JaCoPutilSpace.
| <V> | class of valuations |
| frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.JaCoPtests | ( | String | name, |
| Algorithm | algorithm, | ||
| String | agentDescFile, | ||
| Class<? extends AbstractDCOPsolver< AddableInteger, V, ?> > | solverClass, | ||
| Class< V > | classOfValuations, | ||
| boolean | useTCP, | ||
| boolean | maximize ) |
Constructor.
| name | name of the test method |
| algorithm | the algorithm tested |
| agentDescFile | the description file of the agent |
| solverClass | the class of the tested solver |
| classOfValuations | the class of valuations |
| useTCP | whether we test with TCP pipes or not |
| maximize | the optimization type of random problems |
References classOfValuations, maximize, solverClass, and useTCP.
Referenced by createSuite().
| frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.JaCoPtests | ( | String | name, |
| Algorithm | algorithm, | ||
| String | agentDescFile, | ||
| Class<? extends AbstractDCOPsolver< AddableInteger, V, ?> > | solverClass, | ||
| Class< V > | classOfValuations, | ||
| boolean | useTCP, | ||
| boolean | maximize, | ||
| File | probFile ) |
Constructor that takes in a File.
| name | name of the test method |
| algorithm | the algorithm tested |
| agentDescFile | the description file of the agent |
| solverClass | the class of the tested solver |
| classOfValuations | the class of valuations |
| useTCP | whether we test with TCP pipes or not |
| maximize | the optimization type of random problems |
| probFile | the problem file |
References classOfValuations, maximize, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), probFile, solverClass, and useTCP.

|
private |
Add a random owner to variables if they do not have already one.
| problemDoc | the description file of the problem |
| maxAgent | the maximum number of possible agents |
Referenced by testProblemFromRepository().
|
staticprivate |
| algorithm | the name of the tested algorithm |
| solverClass | the class of the solver corresponding to the tested algorithm |
| classOfValuations | the class of valuations |
| agentDescFile | the agent description file that use the JaCoPxcspParser and the tested algorithm |
| <V> | the class used for valuations |
References frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.ADOPT, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.AFB, classOfValuations, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.DPOP, JaCoPtests(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MB_DPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MPC_DisCSP4, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MPC_DisWCSP4, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.P2_DPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.P3halves_DPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.P_DPOP, probFile, and solverClass.
Referenced by suite().

| void frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.setUp | ( | ) | throws Exception |
|
static |
References frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.ADOPT, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.AFB, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.ASODPOP, createSuite(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.DPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.DSA, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MAXSUM, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MB_DPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MGM, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MGM2, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MPC_DisCSP4, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.MPC_DisWCSP4, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.ODPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.P2_DPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.P3halves_DPOP, frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.P_DPOP, suite(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.Algorithm.SYNCHBB.
Referenced by frodo2.solutionSpaces.JaCoP.tests.AllTestsJaCoP.suite(), and suite().

|
protected |
| void frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testProblemFromRepository | ( | ) | throws Exception |
Tests on this.probFile.
| Exception | if an error occurs |
References addRandomOwners(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.blindProjectAll(), currentAlgorithm, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAgents(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), frodo2.algorithms.Solution< V, U >.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getUtility(), maximize, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setUtilClass(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.setUtilClass(), frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.solve(), solverClass, and testProblemFromRepository().
Referenced by testProblemFromRepository().

| void frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testRandomExtensionalProblem | ( | ) | throws Exception |
Tests on a random problem in extension.
| Exception | if an error occurs |
References frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.blindProjectAll(), frodo2.algorithms.test.AllTests.createRandProblem(), currentAlgorithm, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAgents(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNbrVars(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), frodo2.algorithms.Solution< V, U >.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getUtility(), maximize, frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.setUtilClass(), frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.solve(), solverClass, and testRandomExtensionalProblem().
Referenced by testRandomExtensionalProblem().

|
private |
The description file of the agent.
|
private |
The class of valuations.
Referenced by createSuite(), JaCoPtests(), and JaCoPtests().
|
private |
The algorithm being tested.
Referenced by testProblemFromRepository(), and testRandomExtensionalProblem().
|
private |
The optimization type of random problems.
Referenced by JaCoPtests(), JaCoPtests(), testProblemFromRepository(), and testRandomExtensionalProblem().
|
private |
The problem file.
Referenced by createSuite(), and JaCoPtests().
|
private |
The solver used.
Referenced by createSuite(), JaCoPtests(), JaCoPtests(), testProblemFromRepository(), and testRandomExtensionalProblem().
|
private |
If we use the TCP pipes or not.
Referenced by JaCoPtests(), and JaCoPtests().