Class CMinMTTR
java.lang.Object
org.btrplace.scheduler.choco.constraint.mttr.CMinMTTR
- All Implemented Interfaces:
ChocoConstraint
,CObjective
,Injectable
,MisplacedVMsEstimator
public class CMinMTTR extends Object implements CObjective
An objective that minimizes the time to repair a non-viable model.
- Author:
- Fabien Hermenier
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Set<VM>
getMisPlacedVMs(Instance i)
Get the VMs that are supposed to be mis-placed.boolean
inject(Parameters ps, ReconfigurationProblem p)
Inject the constraint into the problem.void
postCostConstraints()
Post the constraints related to the objective.String
toString()
-
Constructor Details
-
Method Details
-
inject
Description copied from interface:Injectable
Inject the constraint into the problem.- Specified by:
inject
in interfaceInjectable
- Parameters:
ps
- the scheduler parametersp
- the problem- Returns:
true
if the injection succeeded,false
if the problem is sure to not have a solution- Throws:
SchedulerException
- if an error occurred while injecting.
-
getMisPlacedVMs
Description copied from interface:MisplacedVMsEstimator
Get the VMs that are supposed to be mis-placed.- Specified by:
getMisPlacedVMs
in interfaceMisplacedVMsEstimator
- Parameters:
i
- the instance to inspect- Returns:
- a set of VMs identifier that may be empty (when no VMs are misplaced)
-
postCostConstraints
public void postCostConstraints()Post the constraints related to the objective.- Specified by:
postCostConstraints
in interfaceCObjective
-
toString
-