Package rules

Class AbstractRule

    • Method Detail

      • applyRule

        public abstract boolean applyRule​(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour seff)
        Abstract method, different implementation depending on ruleset
        Parameters:
        seff -
        Returns:
      • applyRuleToModel

        public void applyRuleToModel()
        For each data element (= SEFF), execute the rule. If applicable, rulesrecord is created
        Specified by:
        applyRuleToModel in interface IRulesDefinition
      • executeRule

        public boolean executeRule()
        Applying a rule is the same for each rule, all information is collected in RulesRecord
        Specified by:
        executeRule in interface IRulesDefinition
      • isRemoveNegative

        protected boolean isRemoveNegative()
        Should only be true for negativeCleanup
        Returns:
        true if the rule also removes context sets from negative policies
      • createRecord

        protected RulesRecord createRecord​(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour seff,
                                           org.palladiosimulator.pcm.confidentiality.context.set.ContextSet remove,
                                           org.palladiosimulator.pcm.confidentiality.context.set.ContextSet replacedBy,
                                           boolean created)
        Create a record for the current rules implementation
        Parameters:
        seff -
        remove -
        replacedBy -
        created -
        Returns: