|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A JaCoP extensional constraint encoded by a hypercube for faster lookups. More...

Public Member Functions | |
| ExtensionalSupportHypercube (IntVarCloneable[] vars, int[][] tuples) | |
| Constructor. | |
| HashSet< Var > | arguments () |
| void | consistency (Store store) |
| int | getConsistencyPruningEvent (Var arg0) |
| int | getDefaultConsistencyPruningEvent () |
| void | impose (Store store) |
| void | increaseWeight () |
| void | removeConstraint () |
| String | toString () |
| ExtensionalSupportHypercube | cloneInto (StoreCloneable targetStore) throws FailException |
Private Member Functions | |
| ExtensionalSupportHypercube (IntVarCloneable[] vars, ArrayList< HashMap< Integer, Integer > > indexes) | |
| Private constructor that does not initialize the hypercube. | |
| boolean | checkIndexesVsHypercube () |
| Method used as an assert. | |
Private Attributes | |
| IntVarCloneable[] | vars |
| The variables. | |
| final int | nbrVarsMin2 |
| this.vars.length - 2 | |
| Object | hypercube |
| The multi-dimensional array indicating the valuation of each possible tuple. | |
| ArrayList< HashMap< Integer, Integer > > | indexes |
| For each variable (except the valuation variable), for each assignment in its domain, the index of this assignment in the domain. | |
Static Private Attributes | |
| static int | lastID = -1 |
| The ID assigned to the last instantiated object of this class. | |
A JaCoP extensional constraint encoded by a hypercube for faster lookups.
|
private |
Private constructor that does not initialize the hypercube.
| vars | the list of variables, the last being the utility variable |
| indexes | ror each variable (except the utility variable), for each value in its domain, the index of this value in the domain |
References indexes, lastID, and vars.
Referenced by cloneInto().
| frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.ExtensionalSupportHypercube | ( | IntVarCloneable[] | vars, |
| int | tuples[][] ) |
Constructor.
| vars | the list of variables, the last being the valuation variable |
| tuples | the list of allowed tuples |
References checkIndexesVsHypercube(), nbrVarsMin2, and vars.

| HashSet< Var > frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.arguments | ( | ) |
|
private |
Method used as an assert.
Referenced by cloneInto(), and ExtensionalSupportHypercube().
| ExtensionalSupportHypercube frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.cloneInto | ( | StoreCloneable | targetStore | ) | throws FailException |
Implements org.jacop.constraints.ConstraintCloneableInterface< C extends DecomposedConstraint<? extends Constraint > >.
References checkIndexesVsHypercube(), ExtensionalSupportHypercube(), and vars.

| void frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.consistency | ( | Store | store | ) |
| int frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.getConsistencyPruningEvent | ( | Var | arg0 | ) |
Referenced by impose().
| int frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.getDefaultConsistencyPruningEvent | ( | ) |
| void frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.impose | ( | Store | store | ) |
References getConsistencyPruningEvent().

| void frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.increaseWeight | ( | ) |
| void frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.removeConstraint | ( | ) |
| String frodo2.solutionSpaces.JaCoP.ExtensionalSupportHypercube.toString | ( | ) |
|
private |
The multi-dimensional array indicating the valuation of each possible tuple.
|
private |
For each variable (except the valuation variable), for each assignment in its domain, the index of this assignment in the domain.
Referenced by ExtensionalSupportHypercube().
|
staticprivate |
The ID assigned to the last instantiated object of this class.
Referenced by ExtensionalSupportHypercube().
|
private |
this.vars.length - 2
Referenced by ExtensionalSupportHypercube().
|
private |
The variables.
Referenced by cloneInto(), ExtensionalSupportHypercube(), and ExtensionalSupportHypercube().