Class ClaferAsserter
java.lang.Object
org.clafer.compiler.ClaferAsserter
- All Implemented Interfaces:
ClaferSearch, InstanceIterator
- Author:
- jimmy
-
Constructor Summary
ConstructorsConstructorDescriptionClaferAsserter(org.chocosolver.solver.Solver solver, ClaferSolutionMap solutionMap, Map<Assertion, Either<Boolean, org.chocosolver.solver.variables.BoolVar>> assertions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfind()Find the next instance.org.chocosolver.solver.SolverReturns the internal Choco solver.instance()Return the instance from the lastInstanceIterator.find()operation, if successful.intReturn the number of instances found so far.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClaferSearch
limitTimeMethods inherited from interface InstanceIterator
allInstances
-
Constructor Details
-
ClaferAsserter
public ClaferAsserter(org.chocosolver.solver.Solver solver, ClaferSolutionMap solutionMap, Map<Assertion, Either<Boolean, org.chocosolver.solver.variables.BoolVar>> assertions) -
ClaferAsserter
public ClaferAsserter()
-
-
Method Details
-
find
Description copied from interface:ClaferSearchFind the next instance.- Specified by:
findin interfaceClaferSearch- Specified by:
findin interfaceInstanceIterator- Returns:
trueif and only if another solution is found,falseotherwise
-
failedAssertions
-
instance
Description copied from interface:InstanceIteratorReturn the instance from the lastInstanceIterator.find()operation, if successful.- Specified by:
instancein interfaceInstanceIterator- Returns:
- the instance
-
instanceCount
Description copied from interface:InstanceIteratorReturn the number of instances found so far.- Specified by:
instanceCountin interfaceInstanceIterator- Returns:
- the number of instances found so far
-
getInternalSolver
Description copied from interface:ClaferSearchReturns the internal Choco solver. For debugging purposes only.- Specified by:
getInternalSolverin interfaceClaferSearch- Returns:
- the internal Choco solver
-