www.sdmetrics.com

com.sdmetrics.metrics
Class MetricProcedureFilterValue

java.lang.Object
  extended by com.sdmetrics.metrics.AbstractProcedure
      extended by com.sdmetrics.metrics.MetricProcedure
          extended by com.sdmetrics.metrics.MetricProcedureFilterValue

public class MetricProcedureFilterValue
extends MetricProcedure

Calculates a "filtervalue" metric procedure.


Constructor Summary
MetricProcedureFilterValue()
           
 
Method Summary
 java.lang.Object calculate(ModelElement element, Metric m)
          Calculates the metric procedure.
 
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

MetricProcedureFilterValue

public MetricProcedureFilterValue()
Method Detail

calculate

public java.lang.Object calculate(ModelElement element,
                                  Metric m)
                           throws SDMetricsException
Description copied from class: MetricProcedure
Calculates the metric procedure.

Specified by:
calculate in class MetricProcedure
Parameters:
element - The model element for which to calculate the procedure.
m - The metric to calculate.
Returns:
Value of the metric. This should be an Integer, a Float, a String, or a model element.
Throws:
SDMetricsException - Problem during the calculation of the metric.

www.sdmetrics.com