|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A solution iterator for JaCoPutilSpace. More...

Protected Member Functions | |
| int | iter () |
| Protected Member Functions inherited from frodo2.solutionSpaces.hypercube.HypercubeIter< V extends Addable< V >, U extends Addable< U > > | |
| HypercubeIter (BasicHypercube< V, U > space, String[] variables, V[][] domains, V[] assignment, U skippedUtil) | |
| Constructor. | |
| HypercubeIter (BasicHypercube< V, U > space, String[] varOrder, V[] assignment, U skippedUtil) | |
| Constructor. | |
| HypercubeIter (BasicHypercube< V, U > space, V[] assignment, U skippedUtil) | |
| Constructor. | |
| Protected Member Functions inherited from frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U > | |
| BasicHypercubeIter () | |
| Empty constructor. | |
| int | iter () |
| Moves to the next solution. | |
Protected Attributes | |
| JaCoPutilSpace< U > | space |
| The JaCoPutilSpace we are iterating over. | |
| Protected Attributes inherited from frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U > | |
| U[] | utilities |
| The space's utility array. | |
| U | utility |
| Current utility value. | |
| int | utilIndex |
| The index of the current utility value in the utility array. | |
| int[][] | steps |
| For each variable: | |
| V[] | solution |
| Current variable assignments. | |
| BasicHypercube< V, U > | space |
| The BasicHypercube we are iterating over. | |
| String[] | variables |
| The order of iteration over the variables. | |
| int | nbrVars |
| The number of variables. | |
| V[][] | domains |
| The variables' domains. | |
| int[] | valIndexes |
| For each variable, the index in its domain of the current assignment. | |
| long | nbrSolLeft |
| The number of solutions left to iterate over. | |
| long | nbrSols |
| The total number of solutions to iterate over. | |
A solution iterator for JaCoPutilSpace.
| <U> | the type used for valuations |
| frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter< U extends Addable< U > >.JaCoPutilSpaceIter | ( | JaCoPutilSpace< U > | space, |
| String[] | variables, | ||
| AddableInteger | domains[][] ) |
Constructor.
| space | the space over which to iterate |
| variables | the variable order for the iteration |
| domains | the domains of the variables |
References frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.domains, space, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.variables.
| frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter< U extends Addable< U > >.JaCoPutilSpaceIter | ( | JaCoPutilSpace< U > | space, |
| String[] | variables, | ||
| AddableInteger | domains[][], | ||
| AddableInteger[] | assignments ) |
Constructor.
| space | the space over which to iterate |
| variables | the variable order for the iteration |
| domains | the domains of the variables |
| assignments | An array that will be used as the output of nextSolution() |
References frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.domains, frodo2.solutionSpaces.AddableInteger.equals(), frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrSolLeft, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrVars, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.solution, space, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.steps, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.utilIndex, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.valIndexes, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.variables.

| U frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter< U extends Addable< U > >.getCurrentUtility | ( | ) |
|
protected |
References frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.domains, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrSolLeft, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrVars, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.solution, space, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.steps, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.utilIndex, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.valIndexes.
Referenced by nextUtility().
| U frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter< U extends Addable< U > >.nextUtility | ( | ) |
References iter(), frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrSolLeft, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.utility.

| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter< U extends Addable< U > >.setCurrentUtility | ( | final U | valuation | ) |
References space, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.utilIndex, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.utility.
| String frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter< U extends Addable< U > >.toString | ( | ) |
References frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrSolLeft, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrSols, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.nbrVars, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.solution, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.utilIndex, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.utility.
|
protected |
The JaCoPutilSpace we are iterating over.
Referenced by iter(), JaCoPutilSpaceIter(), JaCoPutilSpaceIter(), and setCurrentUtility().