org.apache.poi.hssf.record.formula.functions
Class FinanceFunction

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.functions.NumericFunction
      extended by org.apache.poi.hssf.record.formula.functions.NumericFunction.MultiArg
          extended by org.apache.poi.hssf.record.formula.functions.FinanceFunction
All Implemented Interfaces:
Function

public abstract class FinanceFunction
extends NumericFunction.MultiArg

Author:
Amol S. Deshmukh < amolweb at ya hoo dot com > Super class for all Evals for financial function evaluation.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.poi.hssf.record.formula.functions.NumericFunction
NumericFunction.MultiArg, NumericFunction.OneArg, NumericFunction.TwoArg
 
Field Summary
static Function FV
           
static Function NPER
           
static Function PMT
           
static Function PV
           
 
Fields inherited from class org.apache.poi.hssf.record.formula.functions.NumericFunction
ABS, ACOS, ACOSH, ASIN, ASINH, ATAN, ATAN2, ATANH, CEILING, COMBIN, COS, COSH, DEGREES, DOLLAR, EXP, FACT, FLOOR, INT, LN, LOG, LOG10, MOD, POWER, RADIANS, ROUND, ROUNDDOWN, ROUNDUP, SIGN, SIN, SINH, SQRT, TAN, TANH
 
Constructor Summary
protected FinanceFunction()
           
 
Method Summary
protected  double evaluate(double[] ds)
           
protected abstract  double evaluate(double rate, double arg1, double arg2, double arg3, boolean type)
           
 
Methods inherited from class org.apache.poi.hssf.record.formula.functions.NumericFunction.MultiArg
eval
 
Methods inherited from class org.apache.poi.hssf.record.formula.functions.NumericFunction
evaluate, singleOperandEvaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FV

public static final Function FV

NPER

public static final Function NPER

PMT

public static final Function PMT

PV

public static final Function PV
Constructor Detail

FinanceFunction

protected FinanceFunction()
Method Detail

evaluate

protected double evaluate(double[] ds)
                   throws EvaluationException
Specified by:
evaluate in class NumericFunction.MultiArg
Throws:
EvaluationException

evaluate

protected abstract double evaluate(double rate,
                                   double arg1,
                                   double arg2,
                                   double arg3,
                                   boolean type)
                            throws EvaluationException
Throws:
EvaluationException


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.