opale.mathtools.parser
Class UnaryFunction

java.lang.Object
  |
  +--opale.mathtools.parser.TypeOp
        |
        +--opale.mathtools.parser.UnaryFunction
Direct Known Subclasses:
SUnaryFunction

public abstract class UnaryFunction
extends opale.mathtools.parser.TypeOp

This class makes it possible to add an user function that will be recognised by the parser. The function must be explicitly defined in a Java programme. To define a function with a string definition, use the class SUnaryFunction.


Constructor Summary
UnaryFunction()
           
 
Method Summary
abstract  double eval(double x)
           
abstract  java.lang.String keyword()
          Return the keyword that will be recognized in a string to identify this operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnaryFunction

public UnaryFunction()
Method Detail

eval

public abstract double eval(double x)

keyword

public abstract java.lang.String keyword()
Return the keyword that will be recognized in a string to identify this operation.