java.lang.Object
java.lang.Thread
main.Head
fr.univartois.cril.aceurancetourix.AceHead
- All Implemented Interfaces:
Runnable
public class AceHead
extends main.Head
The AceHead is a specialization of ACE's
Head that allows to interact with the
solver, and especially to add constraints into it using an API rather than an input
XCSP3 file.-
Nested Class Summary
Nested classes/interfaces inherited from class main.Head
main.Head.AvailableClasses, main.Head.StructureSharingNested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class main.Head
availableClasses, control, instanceIndex, instanceStopwatch, observersConstruction, output, problem, random, solver, stopwatch, structureSharingFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionproblem.ProblembuildProblem(int i) protected voidsolver.AceBuildersolver.SolvervoidInterrupts the solver.fr.univartois.cril.juniverse.core.UniverseSolverResultCheck the satisfiability of the set of constraints contained inside the solver.fr.univartois.cril.juniverse.core.UniverseSolverResultisSatisfiable(List<solver.Assumption> assumpts) Check the satisfiability of the set of constraints contained inside the solver using the specified assumption.booleanMethods inherited from class main.Head
buildSolver, main, mustPreserveUnaryConstraints, run, saveMultithreadResultsFiles, solveInstanceMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
AceHead
public AceHead()Creates a new AceHead.
-
-
Method Details
-
getBuilder
public solver.AceBuilder getBuilder()- Overrides:
getBuilderin classmain.Head
-
isTimeExpiredForCurrentInstance
public boolean isTimeExpiredForCurrentInstance()- Overrides:
isTimeExpiredForCurrentInstancein classmain.Head
-
interruptSearch
public void interruptSearch()Interrupts the solver. -
isSatisfiable
public fr.univartois.cril.juniverse.core.UniverseSolverResult isSatisfiable()Check the satisfiability of the set of constraints contained inside the solver.- Returns:
- A UniverseSolverResult indicating the satisfiability of the problem.
-
isSatisfiable
public fr.univartois.cril.juniverse.core.UniverseSolverResult isSatisfiable(List<solver.Assumption> assumpts) Check the satisfiability of the set of constraints contained inside the solver using the specified assumption.- Parameters:
assumpts- The assumptions to consider when solving.- Returns:
- The outcome of the search conducted by the solver.
-
buildProblemAndSolver
protected void buildProblemAndSolver() -
getSolver
public solver.Solver getSolver() -
buildProblem
public problem.Problem buildProblem(int i) - Overrides:
buildProblemin classmain.Head
-