1 package edu.psu.geovista.app.spreadsheet.functions;
2
3 import edu.psu.geovista.app.spreadsheet.formula.Node;
4 import edu.psu.geovista.app.spreadsheet.exception.ParserException;
5 import edu.psu.geovista.app.spreadsheet.exception.NoReferenceException;
6 import edu.psu.geovista.app.spreadsheet.util.Debug;
7
8 /*
9 * Description: Take a single parameter
10 * Date: Mar 30, 2003
11 * Time: 4:00:10 PM
12 * @author Jin Chen
13 */
14
15 public abstract class FunctionSP extends Function{
16 public Number evaluate( Node node) throws ParserException,NoReferenceException {
17 Debug.showNode(node," FunctionSin() show node "+node);
18 //return new Float(Math.sin(getSingleParameter( node)));
19 return this.doFun(node);
20 }
21 protected abstract Number doFun(Node node) throws ParserException,NoReferenceException ;
22
23 public abstract String getUsage();
24 public abstract String getDescription();
25 }
This page was automatically generated by Maven