org.shiftone.bigcalc.core.function
Class AbstractOneArgumentFunction

java.lang.Object
  extended byorg.shiftone.bigcalc.core.function.AbstractOneArgumentFunction
All Implemented Interfaces:
Function, Functor
Direct Known Subclasses:
AbsoluteValueFunction, Arctan, Cosecant, Cosine, Cotangent, NaturalExponent, Secant, Sine, SquareRoot, TangentFunction

public abstract class AbstractOneArgumentFunction
extends java.lang.Object
implements Function

Version:
$Revision: 1.11 $
Author:
$Author: jeffdrost $

Constructor Summary
AbstractOneArgumentFunction()
           
 
Method Summary
 java.lang.Object evaluate(Context context)
           
abstract  java.lang.Object evaluate(Context stdContext, java.lang.Object argument)
           
 void print(java.lang.StringBuffer sb, Context context)
           
 void setArguments(FunctorList arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOneArgumentFunction

public AbstractOneArgumentFunction()
Method Detail

evaluate

public abstract java.lang.Object evaluate(Context stdContext,
                                          java.lang.Object argument)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

setArguments

public void setArguments(FunctorList arguments)
                  throws java.lang.Exception
Specified by:
setArguments in interface Function
Throws:
java.lang.Exception

evaluate

public java.lang.Object evaluate(Context context)
                          throws java.lang.Exception
Specified by:
evaluate in interface Functor
Throws:
java.lang.Exception

print

public void print(java.lang.StringBuffer sb,
                  Context context)
           throws java.lang.Exception
Specified by:
print in interface Functor
Throws:
java.lang.Exception