Package org.btrplace.model.constraint
Class GatherChecker
java.lang.Object
org.btrplace.model.constraint.AllowAllConstraintChecker<Gather>
org.btrplace.model.constraint.GatherChecker
- All Implemented Interfaces:
SatConstraintChecker<Gather>
public class GatherChecker extends AllowAllConstraintChecker<Gather>
Checker for the
Gather
constraint- Author:
- Fabien Hermenier
- See Also:
Gather
-
Constructor Summary
Constructors Constructor Description GatherChecker(Gather g)
Make a new checker. -
Method Summary
Modifier and Type Method Description 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.boolean
startsWith(Model mo)
Notify for the model at the source of the reconfiguration.
-
Constructor Details
-
GatherChecker
Make a new checker.- Parameters:
g
- the associated constraint
-
-
Method Details
-
startsWith
Description copied from interface:SatConstraintChecker
Notify for the model at the source of the reconfiguration.- Specified by:
startsWith
in interfaceSatConstraintChecker<Gather>
- Overrides:
startsWith
in classAllowAllConstraintChecker<Gather>
- Parameters:
mo
- the model- Returns:
true
iff the model is valid wrt. the constraint
-
startRunningVMPlacement
Description copied from class:AllowAllConstraintChecker
Allow all theRunningVMPlacement
actions.- Overrides:
startRunningVMPlacement
in classAllowAllConstraintChecker<Gather>
- Parameters:
a
- the action to allow- Returns:
true
-
endsWith
Description copied from interface:SatConstraintChecker
Notify for the model that is reached once the reconfiguration has been applied.- Specified by:
endsWith
in interfaceSatConstraintChecker<Gather>
- Overrides:
endsWith
in classAllowAllConstraintChecker<Gather>
- Parameters:
mo
- the model- Returns:
true
iff the model is valid wrt. the constraint
-