public class RuleProcedureCycle extends RuleProcedure
Implementation note on cache usage: this procedure uses the cache of the rule engine to store the strongly connected components of the graph considered by the rule. The optimal time to clear the cache is when you are done checking this rule for all model elements.
Constructor and Description |
---|
RuleProcedureCycle() |
Modifier and Type | Method and Description |
---|---|
void |
checkRule(ModelElement element,
Rule rule)
Checks the rule for a model element.
|
getMinExpressionValue, getRuleEngine, getRuleValue, getValuesCache, reportViolation
evalBooleanExpression, evalElementSetExpression, evalExpression, evalSetExpression, getFilterAttributeProcessor, getMetaModel, getMetricsEngine, getModel, getRelationOrSet, isCompatible
public void checkRule(ModelElement element, Rule rule) throws SDMetricsException
RuleProcedure
checkRule
in class RuleProcedure
element
- The element to check.rule
- The rule to check.SDMetricsException
- Problem while checking the rule