com.abr.calculator
Class AvgExpression

java.lang.Object
  extended by com.abr.calculator.BaseExpression
      extended by com.abr.calculator.FunctionExpression
          extended by com.abr.calculator.AvgExpression
All Implemented Interfaces:
IExpression

public class AvgExpression
extends FunctionExpression

AvgExpression - AVG an expression


Field Summary
 
Fields inherited from class com.abr.calculator.BaseExpression
m_embeddedExpr, m_master, m_nExpressionNumber, m_nGlobalExpressionNumber, m_objVariableResolutionData, m_strExpression
 
Fields inherited from interface com.abr.calculator.IExpression
OPERATOR_ADD, OPERATOR_COLON, OPERATOR_COMMA, OPERATOR_DIV, OPERATOR_EXP, OPERATOR_MOD, OPERATOR_MULT, OPERATOR_NONE, OPERATOR_QUESTION, OPERATOR_SUB
 
Constructor Summary
AvgExpression(MasterExpression master, java.lang.String strExpression)
           
 
Method Summary
 double getValueInternal(int index, IDataSource dataSource, ExpressionError error)
          DERIVED CLASSES: *Must* override this method to return an actual value.
 
Methods inherited from class com.abr.calculator.FunctionExpression
getFunctionName, getLogicalValueCount, getValue, getValueCount, parse, parseInternal, setFunctionName, toString
 
Methods inherited from class com.abr.calculator.BaseExpression
getEmbeddedExpressions, getExpression, getExpressionID, getMaster, getName, getVariableResolutionData, getVariables, getVariables, resolveVariables, setEmbeddedExpression, setExpression, updateMaster
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvgExpression

public AvgExpression(MasterExpression master,
                     java.lang.String strExpression)
Method Detail

getValueInternal

public double getValueInternal(int index,
                               IDataSource dataSource,
                               ExpressionError error)
Description copied from class: FunctionExpression
DERIVED CLASSES: *Must* override this method to return an actual value. You can assume that you have a non-null embedded expression.

Specified by:
getValueInternal in class FunctionExpression
See Also:
IExpression.getValue