Class FrozenConstraintsFilter
java.lang.Object
net.ssehub.easy.varModel.model.rewrite.modifier.AbstractFrozenChecker<Constraint>
net.ssehub.easy.varModel.model.rewrite.modifier.FrozenConstraintsFilter
- All Implemented Interfaces:
IModelElementFilter<Constraint>
A
IModelElementFilter to filter constraints, containing only frozen variables and constants.
Assignment constraints won't be filtered (to keepm the frozen configuration).- Author:
- El-Sharkawy
-
Constructor Summary
ConstructorsConstructorDescriptionFrozenConstraintsFilter(Configuration config) Default Constructor if aConfigurationis available containing already derived and propagated variables. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ContainableModelElement> Specification for which kind of classes this may be applied to.handleModelElement(ContainableModelElement element, RewriteContext context) Specification how to handleContainableModelElements.Methods inherited from class net.ssehub.easy.varModel.model.rewrite.modifier.AbstractFrozenChecker
allInstancesAreFrozen, constraintIsFrozen, getConfiguration, getVariable
-
Constructor Details
-
FrozenConstraintsFilter
Default Constructor if aConfigurationis available containing already derived and propagated variables.- Parameters:
config- A already initializedConfiguration.
-
-
Method Details
-
getModifyingModelClass
Description copied from interface:IModelElementFilterSpecification for which kind of classes this may be applied to.- Returns:
- The
ContainableModelElements which shall be modified by this class.
-
handleModelElement
public ContainableModelElement handleModelElement(ContainableModelElement element, RewriteContext context) Description copied from interface:IModelElementFilterSpecification how to handleContainableModelElements.- Parameters:
element- AContainableModelElementwhich may be modified by this class.context- Knowledge of the current translation, comes from theProjectRewriteVisitor.- Returns:
- The modified element. Maybe the same instance as passed as parameter (if nothing should be changed) or
nullif the element should be deleted.
-