com.bc.jexp.impl
Class AbstractFunction.I

java.lang.Object
  extended by com.bc.jexp.impl.AbstractFunction
      extended by com.bc.jexp.impl.AbstractFunction.I
All Implemented Interfaces:
Function
Enclosing class:
AbstractFunction

public abstract static class AbstractFunction.I
extends AbstractFunction


Nested Class Summary
 
Nested classes/interfaces inherited from class com.bc.jexp.impl.AbstractFunction
AbstractFunction.B, AbstractFunction.D, AbstractFunction.I
 
Constructor Summary
AbstractFunction.I(String name, int numArgs)
           
AbstractFunction.I(String name, int numArgs, int[] argTypes)
           
 
Method Summary
 boolean evalB(EvalEnv env, Term[] args)
          Evaluates this function to a double value.
 double evalD(EvalEnv env, Term[] args)
          Evaluates this function to a double value.
 
Methods inherited from class com.bc.jexp.impl.AbstractFunction
getArgType, getName, getNumArgs, getRetType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bc.jexp.Function
evalI
 

Constructor Detail

AbstractFunction.I

public AbstractFunction.I(String name,
                          int numArgs)

AbstractFunction.I

public AbstractFunction.I(String name,
                          int numArgs,
                          int[] argTypes)
Method Detail

evalB

public boolean evalB(EvalEnv env,
                     Term[] args)
              throws EvalException
Description copied from interface: Function
Evaluates this function to a double value.

Parameters:
env - the application dependant environment.
args - the (un-evaluated) arguments passed to the function
Returns:
a double value
Throws:
EvalException - if the evaluation fails

evalD

public double evalD(EvalEnv env,
                    Term[] args)
             throws EvalException
Description copied from interface: Function
Evaluates this function to a double value.

Parameters:
env - the application dependant environment.
args - the (un-evaluated) arguments passed to the function
Returns:
a double value
Throws:
EvalException - if the evaluation fails


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.