edu.psu.geovista.app.spreadsheet.functions
Class FunctionSP

java.lang.Object
  extended byedu.psu.geovista.app.spreadsheet.functions.Function
      extended byedu.psu.geovista.app.spreadsheet.functions.FunctionSP
Direct Known Subclasses:
FunctionAbs, FunctionAcos, FunctionAsin, FunctionAtan, FunctionCos, FunctionE, FunctionInt, FunctionLog, FunctionPI, FunctionRound, FunctionSqrt, FunctionTan

public abstract class FunctionSP
extends Function


Field Summary
 
Fields inherited from class edu.psu.geovista.app.spreadsheet.functions.Function
owner
 
Constructor Summary
FunctionSP()
           
 
Method Summary
protected abstract  java.lang.Number doFun(Node node)
           
 java.lang.Number evaluate(Node node)
          This should be implemented in each function.
abstract  java.lang.String getDescription()
          Return the description of the function
abstract  java.lang.String getUsage()
          Return the usage of the function
 
Methods inherited from class edu.psu.geovista.app.spreadsheet.functions.Function
checkParamsExist, getFirst, getOwner, getRangeArea, getSingleParameter, getSupportFuntion, isRange, processColonNode, requireParams, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionSP

public FunctionSP()
Method Detail

evaluate

public java.lang.Number evaluate(Node node)
                          throws ParserException,
                                 NoReferenceException
Description copied from class: Function
This should be implemented in each function.

Specified by:
evaluate in class Function
Parameters:
node - the function node starting with the funciton name with a chain of parameters
Throws:
ParserException
NoReferenceException

doFun

protected abstract java.lang.Number doFun(Node node)
                                   throws ParserException,
                                          NoReferenceException
Throws:
ParserException
NoReferenceException

getUsage

public abstract java.lang.String getUsage()
Description copied from class: Function
Return the usage of the function

Specified by:
getUsage in class Function

getDescription

public abstract java.lang.String getDescription()
Description copied from class: Function
Return the description of the function

Specified by:
getDescription in class Function


Copyright © 1996-2003 GeoVista Center. All Rights Reserved.