org.escot
Interface FunctionEvaluator

All Superinterfaces:
EscotFeature
All Known Implementing Classes:
FunctionAdapter

public interface FunctionEvaluator
extends EscotFeature

A function


Field Summary
static String DOMAIN_MAXIMUM_CLOSED
          Indicates that valid input must be less than or equal to the minimum, as "Closed" refers to an interval that includes the endpoints, i.e.
static String DOMAIN_MAXIMUM_OPEN
          Indicates that valid input must be less than the minimum, as "Open" refers to an interval that does not include the endpoints, i.e.
static String DOMAIN_MINIMUM_CLOSED
          Indicates that valid input must be greater than or equal to the minimum, as "Closed" refers to an interval that includes the endpoints, i.e.
static String DOMAIN_MINIMUM_OPEN
          Indicates that valid input must be greater than the minimum, as "Open" refers to an interval that does not include the endpoints, i.e.
 
Fields inherited from interface org.escot.EscotFeature
COLOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, ICON16x16_ATTRIBUTE, TYPE_ATTRIBUTE
 
Method Summary
 void addChangeListener(ChangeListener l)
          adds a change listener to this function, to be notified when the function definition changes
 Number evaluateAt(Number input)
          Evaluates the function at the given input.
 void removeChangeListener(ChangeListener l)
          removes a change listener from this function
 String toString()
          converts the function to a string representation
 
Methods inherited from interface org.escot.EscotFeature
addPropertyChangeListener, duplicate, getAttribute, getName, putAttribute, removePropertyChangeListener
 

Field Detail

DOMAIN_MINIMUM_OPEN

public static final String DOMAIN_MINIMUM_OPEN
Indicates that valid input must be greater than the minimum, as "Open" refers to an interval that does not include the endpoints, i.e. (a,b). Only 1 of DOMAIN_MINIMUM_OPEN or DOMAIN_MINIMUM_CLOSED should be present

DOMAIN_MINIMUM_CLOSED

public static final String DOMAIN_MINIMUM_CLOSED
Indicates that valid input must be greater than or equal to the minimum, as "Closed" refers to an interval that includes the endpoints, i.e. [a,b]. Only 1 of DOMAIN_MINIMUM_OPEN or DOMAIN_MINIMUM_CLOSED should be present

DOMAIN_MAXIMUM_OPEN

public static final String DOMAIN_MAXIMUM_OPEN
Indicates that valid input must be less than the minimum, as "Open" refers to an interval that does not include the endpoints, i.e. (a,b). Only 1 of DOMAIN_MAXIMUM_OPEN or DOMAIN_MAXIMUM_CLOSED should be present

DOMAIN_MAXIMUM_CLOSED

public static final String DOMAIN_MAXIMUM_CLOSED
Indicates that valid input must be less than or equal to the minimum, as "Closed" refers to an interval that includes the endpoints, i.e. [a,b]. Only 1 of DOMAIN_MAXIMUM_OPEN or DOMAIN_MAXIMUM_CLOSED should be present
Method Detail

evaluateAt

public Number evaluateAt(Number input)
Evaluates the function at the given input.
Parameters:
input - the number to evaluate the function at.
Returns:
the value of the function at the given input.

addChangeListener

public void addChangeListener(ChangeListener l)
adds a change listener to this function, to be notified when the function definition changes
Parameters:
l - a ChangeListener that wants to be notified of changes to this function

removeChangeListener

public void removeChangeListener(ChangeListener l)
removes a change listener from this function
Parameters:
l - a ChangeListener that no longer wants to listen to change events from this function

toString

public String toString()
converts the function to a string representation
Overrides:
toString in class Object
Returns:
either a MathML string or a raw character string representation of the function