Package org.btrplace.scheduler.choco
Interface ChocoScheduler
- All Superinterfaces:
Parameters
,Scheduler
- All Known Implementing Classes:
DefaultChocoScheduler
public interface ChocoScheduler extends Scheduler, Parameters
A scheduler based on the Choco constraint solver.
- Author:
- Fabien Hermenier
-
Method Summary
Modifier and Type Method Description InstanceSolver
getInstanceSolver()
Get the solver used to solve a problem.Parameters
getParameters()
Get the scheduler parameters.SolvingStatistics
getStatistics()
Get statistics about the last solved problem.void
setInstanceSolver(InstanceSolver p)
Set the solver to use to solve a problem.ChocoScheduler
setParameters(Parameters ps)
Set the scheduler parameters.void
stop()
Stop the solving process.Methods inherited from interface org.btrplace.scheduler.choco.Parameters
addChocoView, addSolutionListener, chocoSettings, chocoSettings, doOptimize, doOptimize, doRepair, doRepair, getChocoViews, getDurationEvaluators, getEnvironmentFactory, getMapper, getMaxEnd, getRandomSeed, getTimeLimit, getTransitionFactory, getVerbosity, removeChocoView, setDurationEvaluators, setEnvironmentFactory, setMapper, setMaxEnd, setRandomSeed, setTimeLimit, setTransitionFactory, setVerbosity, solutionListeners
-
Method Details
-
getStatistics
Get statistics about the last solved problem.- Returns:
- some statistics,
null
if no problem has been solved for the moment - Throws:
SchedulerException
- if an error occurred
-
getInstanceSolver
InstanceSolver getInstanceSolver()Get the solver used to solve a problem.- Returns:
- the current used solver
-
setInstanceSolver
Set the solver to use to solve a problem.- Parameters:
p
- the runner to use
-
setParameters
Set the scheduler parameters.- Parameters:
ps
- the parameters- Returns:
- this
-
getParameters
Parameters getParameters()Get the scheduler parameters.- Returns:
- the registered parameters
-
stop
void stop()Stop the solving process.
-