www.sdmetrics.com

com.sdmetrics.metrics
Class SetOperation

java.lang.Object
  extended by com.sdmetrics.metrics.AbstractProcedure
      extended by com.sdmetrics.metrics.SetOperation

public abstract class SetOperation
extends AbstractProcedure

Base class for set operations in expressions. Set operations return sets or multisets of values or model elements.

Since:
2.3

Constructor Summary
SetOperation()
           
 
Method Summary
abstract  java.util.Collection<?> calculateValue(ModelElement element, ExpressionNode node, Variables vars)
          Calculates the value for the set operations.
 
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

SetOperation

public SetOperation()
Method Detail

calculateValue

public abstract java.util.Collection<?> calculateValue(ModelElement element,
                                                       ExpressionNode node,
                                                       Variables vars)
                                                throws SDMetricsException
Calculates the value for the set operations.

Parameters:
element - Model element for which to calculate the operation
node - The expression node with the operands for the set operation.
vars - The variables for the calculation.
Returns:
Result of the operation.
Throws:
SDMetricsException - Problems while calculating the operation value.

www.sdmetrics.com