Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

exptree.operators
Interface operatorInterface  view operatorInterface download operatorInterface.java

All Known Implementing Classes:
absolute, addition, and, arccos, arcsin, arctan, atan2, beta, ceil, cosine, division, exponent, floor, ifs, image, invert, mandel, maximum, minimum, multiplication, mux, mux3, noise, not, or, remainder, rint, sine, subtraction, warpednoise, xor

public interface operatorInterface

Defines the interface which all operators must implement

Version:
1.1 08/19/2000

Method Summary
 double evaluate(exptree.expressionTree[] parameters)
          Returns the result of the operation on the given parameters as a double.
 java.lang.String getName()
          Returns the name of the operator.
 int getNumberOfParameters()
          Returns the number of parameters the operator expects.
 void init()
          Performs any initialization the operator may require.
 

Method Detail

evaluate

public double evaluate(exptree.expressionTree[] parameters)
Returns the result of the operation on the given parameters as a double.


getName

public java.lang.String getName()
Returns the name of the operator.


init

public void init()
Performs any initialization the operator may require.


getNumberOfParameters

public int getNumberOfParameters()
Returns the number of parameters the operator expects.