www.sdmetrics.com

com.sdmetrics.metrics
Class MetricProcedureAttributeValue

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

public class MetricProcedureAttributeValue
extends MetricProcedure

Calculates an "attributevalue" metric procedure.


Constructor Summary
MetricProcedureAttributeValue()
           
 
Method Summary
protected  java.lang.Object calculate(ModelElement element, Metric metric)
          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

MetricProcedureAttributeValue

public MetricProcedureAttributeValue()
Method Detail

calculate

protected java.lang.Object calculate(ModelElement element,
                                     Metric metric)
                              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.
metric - The metric to calculate.
Returns:
Value of the specified attribute for the specified model element. If the attribute is a cross-reference, the referenced ModelElement object is returned.
Throws:
SDMetricsException - if required attributes are missing or have the wrong type.

www.sdmetrics.com