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 boolean
applyRule(org.palladiosimulator.pcm.confidentiality.context.specification.assembly.MethodSpecification seff)
Abstract method, different implementation depending on rulesetprotected boolean
isRemoveNegative()
Should only be true for negativeCleanupboolean
isRuleApplicable(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.confidentiality.context.specification.assembly.MethodSpecification seff)
Description copied from class:AbstractRule
Abstract method, different implementation depending on ruleset- Specified by:
applyRule
in classAbstractRule
- Returns:
-
isRuleApplicable
public boolean isRuleApplicable(ContextSetRecord record1, ContextSetRecord record2)
-
isRemoveNegative
protected boolean isRemoveNegative()
Description copied from class:AbstractRule
Should only be true for negativeCleanup- Overrides:
isRemoveNegative
in classAbstractRule
- Returns:
- true if the rule also removes context sets from negative policies
-
-