Package rules.impl
Class NegativeCleanup
- java.lang.Object
-
- rules.AbstractRule
-
- rules.impl.NegativeCleanup
-
- All Implemented Interfaces:
IRulesDefinition
public class NegativeCleanup extends AbstractRule
-
-
Field Summary
-
Fields inherited from class rules.AbstractRule
appliedList, contextModelAbs, errorList, hierarchicalContextAbs, recordCompare
-
-
Constructor Summary
Constructors Constructor Description NegativeCleanup(ContextModelAbstraction contextModelAbs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyRule(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour seff)Abstract method, different implementation depending on rulesetprotected booleanisRemoveNegative()Should only be true for negativeCleanupbooleanisRuleApplicable(ContextSetRecord record1, ContextSetRecord record2)-
Methods inherited from class rules.AbstractRule
applyRuleToModel, createRecord, executeRule, getErrors, getNumberOfRecords
-
-
-
-
Constructor Detail
-
NegativeCleanup
public NegativeCleanup(ContextModelAbstraction contextModelAbs)
-
-
Method Detail
-
applyRule
public boolean applyRule(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour seff)
Description copied from class:AbstractRuleAbstract method, different implementation depending on ruleset- Specified by:
applyRulein classAbstractRule- Returns:
-
isRuleApplicable
public boolean isRuleApplicable(ContextSetRecord record1, ContextSetRecord record2)
-
isRemoveNegative
protected boolean isRemoveNegative()
Description copied from class:AbstractRuleShould only be true for negativeCleanup- Overrides:
isRemoveNegativein classAbstractRule- Returns:
- true if the rule also removes context sets from negative policies
-
-