Class CNoDelay
java.lang.Object
org.btrplace.scheduler.choco.constraint.CNoDelay
- All Implemented Interfaces:
ChocoConstraint
,Injectable
,MisplacedVMsEstimator
public class CNoDelay extends Object implements ChocoConstraint
- Author:
- Vincent Kherbache
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Set<VM>
getMisPlacedVMs(Instance model)
Get the VMs that are supposed to be mis-placed.boolean
inject(Parameters ps, ReconfigurationProblem rp)
Inject the constraint into the problem.
-
Constructor Details
-
CNoDelay
Make a new constraint- Parameters:
nd
- the NoDelay constraint to rely on
-
-
Method Details
-
getMisPlacedVMs
Description copied from interface:MisplacedVMsEstimator
Get the VMs that are supposed to be mis-placed.- Specified by:
getMisPlacedVMs
in interfaceMisplacedVMsEstimator
- Parameters:
model
- the instance to inspect- Returns:
- a set of VMs identifier that may be empty (when no VMs are misplaced)
-
inject
Description copied from interface:Injectable
Inject the constraint into the problem.- Specified by:
inject
in interfaceInjectable
- Parameters:
ps
- the scheduler parametersrp
- the problem- Returns:
true
if the injection succeeded,false
if the problem is sure to not have a solution
-