com.bc.jexp.impl
Class AbstractFunction.D

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

public abstract static class AbstractFunction.D
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.D(String name, int numArgs)
           
AbstractFunction.D(String name, int numArgs, int[] argTypes)
           
 
Method Summary
 boolean evalB(EvalEnv env, Term[] args)
          Evaluates this function to a double value.
 int evalI(EvalEnv env, Term[] args)
          Evaluates this function to an int 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
evalD
 

Constructor Detail

AbstractFunction.D

public AbstractFunction.D(String name,
                          int numArgs)

AbstractFunction.D

public AbstractFunction.D(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

evalI

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

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


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