public abstract static class AbstractFunction.B extends AbstractFunction
AbstractFunction.B, AbstractFunction.D, AbstractFunction.I
Constructor and Description |
---|
AbstractFunction.B(String name,
int numArgs) |
AbstractFunction.B(String name,
int numArgs,
int[] argTypes) |
Modifier and Type | Method and Description |
---|---|
double |
evalD(EvalEnv env,
Term[] args)
Evaluates this function to a
double value. |
int |
evalI(EvalEnv env,
Term[] args)
Evaluates this function to an
int value. |
getArgType, getName, getNumArgs, getRetType
public AbstractFunction.B(String name, int numArgs)
public AbstractFunction.B(String name, int numArgs, int[] argTypes)
public int evalI(EvalEnv env, Term[] args) throws EvalException
Function
int
value.env
- the application dependant environment.args
- the (un-evaluated) arguments passed to the functionint
valueEvalException
- if the evaluation failspublic double evalD(EvalEnv env, Term[] args) throws EvalException
Function
double
value.env
- the application dependant environment.args
- the (un-evaluated) arguments passed to the functiondouble
valueEvalException
- if the evaluation failsCopyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.