www.sdmetrics.com

com.sdmetrics.metrics
Class SetProcedureCompare

java.lang.Object
  extended by com.sdmetrics.metrics.AbstractProcedure
      extended by com.sdmetrics.metrics.SetProcedure
          extended by com.sdmetrics.metrics.SetProcedureCompare

public class SetProcedureCompare
extends SetProcedure

Calculates the deprecated "compare" set procedure.

Element comparisons are now just a special case of projections, using the principal element in the condition expression.


Constructor Summary
SetProcedureCompare()
           
 
Method Summary
 java.util.Collection<?> calculate(ModelElement e, Set m)
          Calculates the set 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

SetProcedureCompare

public SetProcedureCompare()
Method Detail

calculate

public java.util.Collection<?> calculate(ModelElement e,
                                         Set m)
                                  throws SDMetricsException
Description copied from class: SetProcedure
Calculates the set procedure.

Specified by:
calculate in class SetProcedure
Parameters:
e - The model element for which to calculate the procedure.
m - Definition of the set to calculate.
Returns:
The value of the resulting set.
Throws:
SDMetricsException - Problem during the calculation of the set.

www.sdmetrics.com