org.rubato.logeo.functions
Class RealFunction

java.lang.Object
  extended by org.rubato.logeo.functions.AbstractFunction
      extended by org.rubato.logeo.functions.RealFunction
All Implemented Interfaces:
Function

public abstract class RealFunction
extends AbstractFunction

This class can be used to implement function on reals.

Author:
Gérard Milmeister

Constructor Summary
RealFunction()
           
 
Method Summary
 Denotator evaluate(Denotator... denotators)
          Evaluates the function with a list of arguments.
abstract  double evaluate(double... doubles)
           
 Denotator evaluate(SimpleDenotator... denotators)
           
abstract  int getArity()
          Returns the arity of the function.
 Form getInputForm(int i)
          Returns the ith argument form.
 Form getOutputForm()
          Returns the result form.
 
Methods inherited from class org.rubato.logeo.functions.AbstractFunction
compose, getName, hasSig, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealFunction

public RealFunction()
Method Detail

evaluate

public abstract double evaluate(double... doubles)

evaluate

public Denotator evaluate(Denotator... denotators)
                   throws RubatoException
Description copied from class: AbstractFunction
Evaluates the function with a list of arguments.

Specified by:
evaluate in interface Function
Specified by:
evaluate in class AbstractFunction
Throws:
RubatoException

evaluate

public Denotator evaluate(SimpleDenotator... denotators)

getArity

public abstract int getArity()
Description copied from class: AbstractFunction
Returns the arity of the function. Must be implemented in a subclass.

Specified by:
getArity in interface Function
Specified by:
getArity in class AbstractFunction

getInputForm

public Form getInputForm(int i)
Description copied from class: AbstractFunction
Returns the ith argument form. Must be implemented in a subclass.

Specified by:
getInputForm in interface Function
Specified by:
getInputForm in class AbstractFunction
Returns:
null if the input form is not specified

getOutputForm

public Form getOutputForm()
Description copied from class: AbstractFunction
Returns the result form. Must be implemented in a subclass.

Specified by:
getOutputForm in interface Function
Specified by:
getOutputForm in class AbstractFunction
Returns:
null if the output form is not specified