www.sdmetrics.com

com.sdmetrics.metrics
Class RuleProcedureCycle

java.lang.Object
  extended by com.sdmetrics.metrics.AbstractProcedure
      extended by com.sdmetrics.metrics.RuleProcedure
          extended by com.sdmetrics.metrics.RuleProcedureCycle

public class RuleProcedureCycle
extends RuleProcedure

Checks a "cycle" rule.

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 Summary
RuleProcedureCycle()
           
 
Method Summary
 void checkRule(ModelElement element, Rule rule)
          Checks the rule for a model element.
 
Methods inherited from class com.sdmetrics.metrics.RuleProcedure
getMinExpressionValue, getRuleEngine, getRuleValue, getValuesCache, reportViolation
 
Methods inherited from class com.sdmetrics.metrics.AbstractProcedure
evalBooleanExpression, evalElementSetExpression, evalExpression, evalSetExpression, getFilterAttributeProcessor, getMetaModel, getMetricsEngine, getModel, getRelationOrSet, isCompatible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleProcedureCycle

public RuleProcedureCycle()
Method Detail

checkRule

public void checkRule(ModelElement element,
                      Rule rule)
               throws SDMetricsException
Description copied from class: RuleProcedure
Checks the rule for a model element.

Specified by:
checkRule in class RuleProcedure
Parameters:
element - The element to check.
rule - The rule to check.
Throws:
SDMetricsException - Problem while checking the rule

www.sdmetrics.com