|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
JUnit tests for the BasicHypercube iterator. More...

Public Member Functions | |
| HypercubeIterTest (String name) | |
| Constructor. | |
| void | testSameOrder () |
| Tests the case when the variables of iteration are the hypercube's variable, in the same order. | |
| void | testOtherOrder () |
| Tests the case when the variables of iteration are the hypercube's variable, in a different order. | |
| void | testMoreVars () |
| Tests the case when the variables of iteration include variables not in the space. | |
| void | testSubDoms () |
| Tests the case when the input domains are sub-domains of the space's. | |
Static Public Member Functions | |
| static Test | suite () |
JUnit tests for the BasicHypercube iterator.
| frodo2.solutionSpaces.hypercube.tests.HypercubeIterTest.HypercubeIterTest | ( | String | name | ) |
|
static |
References HypercubeIterTest().
Referenced by frodo2.solutionSpaces.hypercube.tests.AllTestsHypercube.suite().

| void frodo2.solutionSpaces.hypercube.tests.HypercubeIterTest.testMoreVars | ( | ) |
Tests the case when the variables of iteration include variables not in the space.
References frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.changeVariablesOrder(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.getCurrentSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.getCurrentUtility(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.nextSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.nextUtility(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.random_hypercube().

| void frodo2.solutionSpaces.hypercube.tests.HypercubeIterTest.testOtherOrder | ( | ) |
Tests the case when the variables of iteration are the hypercube's variable, in a different order.
References frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.changeVariablesOrder(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.getCurrentSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.getCurrentUtility(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.nextSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.nextUtility(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.random_hypercube().

| void frodo2.solutionSpaces.hypercube.tests.HypercubeIterTest.testSameOrder | ( | ) |
Tests the case when the variables of iteration are the hypercube's variable, in the same order.
References frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.getCurrentSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.getCurrentUtility(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.nextSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.nextUtility(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.random_hypercube().

| void frodo2.solutionSpaces.hypercube.tests.HypercubeIterTest.testSubDoms | ( | ) |
Tests the case when the input domains are sub-domains of the space's.
References frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.getCurrentSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.getCurrentUtility(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.nextSolution(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.nextUtility(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.random_hypercube(), and frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.slice().
