www.sdmetrics.com

com.sdmetrics.metrics
Class BooleanOperation

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

public abstract class BooleanOperation
extends AbstractProcedure

Base class for Boolean operations in expressions. Boolean operations return values true or false.

Since:
2.3

Constructor Summary
BooleanOperation()
           
 
Method Summary
abstract  boolean calculateValue(ModelElement element, ExpressionNode node, Variables vars)
          Calculates the value for the Boolean operation.
 
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

BooleanOperation

public BooleanOperation()
Method Detail

calculateValue

public abstract boolean calculateValue(ModelElement element,
                                       ExpressionNode node,
                                       Variables vars)
                                throws SDMetricsException
Calculates the value for the Boolean operation.

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

www.sdmetrics.com