com.abr.calculator
Class MinExpression

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

public class MinExpression
extends FunctionExpressionWithArgs

MinExpression - MIN of an expression


Field Summary
 
Fields inherited from class com.abr.calculator.FunctionExpressionWithArgs
m_bArgsError, m_vArgs
 
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
MinExpression(MasterExpression master, java.lang.String strExpression)
           
 
Method Summary
 int getMaxArgCount()
          DERIVED CLASSES: The maximum number of arguments for a function.
 double getValueInternal(int index, java.util.Vector vArgs, IDataSource dataSource, ExpressionError error)
          DERIVED CLASSES: You must override this method to process the actual arguments to your function, and provide a result.
 
Methods inherited from class com.abr.calculator.FunctionExpressionWithArgs
getArgList, getArgList, getMinArgCount, getValueInternal
 
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

MinExpression

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

getMaxArgCount

public int getMaxArgCount()
Description copied from class: FunctionExpressionWithArgs
DERIVED CLASSES: The maximum number of arguments for a function. Defaults to one. Override if your function requires a different number of arguments (comma- or space-separated). Return -1 if your function accepts unlimited arguments.

Overrides:
getMaxArgCount in class FunctionExpressionWithArgs

getValueInternal

public double getValueInternal(int index,
                               java.util.Vector vArgs,
                               IDataSource dataSource,
                               ExpressionError error)
Description copied from class: FunctionExpressionWithArgs
DERIVED CLASSES: You must override this method to process the actual arguments to your function, and provide a result.

Specified by:
getValueInternal in class FunctionExpressionWithArgs
Parameters:
index - - Index number to use when getting data.
vArgs - - Vector of IExpression objects.
dataSource - - Can provide actual data values.
error - - Set this if you encounter an error.
Returns:
The actual function result.