Package org.btrplace.model.constraint
Class RunningChecker
java.lang.Object
org.btrplace.model.constraint.AllowAllConstraintChecker<C>
org.btrplace.model.constraint.DenyMyVMsActions<Running>
org.btrplace.model.constraint.RunningChecker
- All Implemented Interfaces:
SatConstraintChecker<Running>
public class RunningChecker extends DenyMyVMsActions<Running>
Checker for the
Running
constraint- Author:
- Fabien Hermenier
- See Also:
Running
-
Constructor Summary
Constructors Constructor Description RunningChecker(Running r)
Make a new checker. -
Method Summary
Modifier and Type Method Description boolean
consume(AllocateEvent e)
Notify for the beginning of an event.boolean
endsWith(Model mo)
Notify for the model that is reached once the reconfiguration has been applied.boolean
startRunningVMPlacement(RunningVMPlacement a)
Allow all theRunningVMPlacement
actions.Methods inherited from class org.btrplace.model.constraint.DenyMyVMsActions
consume, start, start, start, start, start
-
Constructor Details
-
RunningChecker
Make a new checker.- Parameters:
r
- the associated constraint
-
-
Method Details
-
startRunningVMPlacement
Description copied from class:AllowAllConstraintChecker
Allow all theRunningVMPlacement
actions.- Overrides:
startRunningVMPlacement
in classDenyMyVMsActions<Running>
- Parameters:
a
- the action to allow- Returns:
true
-
consume
Description copied from interface:SatConstraintChecker
Notify for the beginning of an event.- Specified by:
consume
in interfaceSatConstraintChecker<Running>
- Overrides:
consume
in classDenyMyVMsActions<Running>
- Parameters:
e
- the event that will be executed- Returns:
true
iff the action execution is valid wrt. the constraint
-
endsWith
Description copied from interface:SatConstraintChecker
Notify for the model that is reached once the reconfiguration has been applied.- Specified by:
endsWith
in interfaceSatConstraintChecker<Running>
- Overrides:
endsWith
in classAllowAllConstraintChecker<Running>
- Parameters:
mo
- the model- Returns:
true
iff the model is valid wrt. the constraint
-