public class ASTNodeInterpreter extends Object
ASTNodeInterpreter
that takes the time of
the calculation into account. It contains functions similar to the
ASTNodeCompiler
interface, which have the current time as additional
argument.Constructor | Description |
---|---|
ASTNodeInterpreter(SBMLValueHolder valueHolder) |
Modifier and Type | Method | Description |
---|---|---|
double |
abs(ASTNodeValue userObject,
double time,
double delay) |
|
boolean |
and(ASTNodeValue[] children,
int size,
double time) |
|
double |
arccos(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arccosh(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arccot(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arccoth(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arccsc(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arccsch(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arcsec(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arcsech(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arcsin(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arcsinh(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arctan(ASTNodeValue userObject,
double time,
double delay) |
|
double |
arctanh(ASTNodeValue userObject,
double time,
double delay) |
|
double |
ceiling(ASTNodeValue userObject,
double time,
double delay) |
|
double |
compile(double mantissa,
int exponent,
String units) |
|
double |
compile(double value,
String units) |
|
boolean |
compileBoolean(org.sbml.jsbml.CallableSBase nsb,
double time) |
|
double |
compileDouble(String name,
double time,
double delay) |
|
double |
compileDouble(org.sbml.jsbml.CallableSBase nsb,
double time,
double delay) |
|
String |
compileString(org.sbml.jsbml.ASTNode child) |
|
String |
compileString(ASTNodeValue child) |
|
double |
cos(ASTNodeValue userObject,
double time,
double delay) |
|
double |
cosh(ASTNodeValue userObject,
double time,
double delay) |
|
double |
cot(ASTNodeValue userObject,
double time,
double delay) |
|
double |
coth(ASTNodeValue userObject,
double time,
double delay) |
|
double |
csc(ASTNodeValue userObject,
double time,
double delay) |
|
double |
csch(ASTNodeValue userObject,
double time,
double delay) |
|
double |
delay(ASTNodeValue x,
ASTNodeValue delay,
String timeUnits,
double time) |
|
boolean |
eq(ASTNodeValue left,
ASTNodeValue right,
double time) |
|
double |
exp(ASTNodeValue userObject,
double time,
double delay) |
|
double |
factorial(ASTNodeValue userObject,
double time,
double delay) |
|
double |
floor(ASTNodeValue userObject,
double time,
double delay) |
|
double |
frac(int numerator,
int denominator) |
|
double |
frac(ASTNodeValue left,
ASTNodeValue right,
double time,
double delay) |
|
boolean |
functionBoolean(String name,
List<ASTNodeValue> children) |
|
boolean |
functionBoolean(ASTNodeValue rightChild,
List<String> variables,
ASTNodeValue[] children,
double[] values,
double time) |
|
double |
functionDouble(String functionDefinitionName,
List<ASTNodeValue> args,
double time) |
|
double |
functionDouble(ASTNodeValue rightChild,
List<String> variables,
ASTNodeValue[] children,
int nArguments,
double[] values,
double time) |
|
boolean |
geq(ASTNodeValue left,
ASTNodeValue right,
double time) |
|
boolean |
gt(ASTNodeValue left,
ASTNodeValue right,
double time) |
|
boolean |
lambdaBoolean(ASTNodeValue[] children,
double time) |
|
double |
lambdaDouble(ASTNodeValue[] children,
double time) |
|
boolean |
leq(ASTNodeValue left,
ASTNodeValue right,
double time) |
|
double |
ln(ASTNodeValue userObject,
double time,
double delay) |
|
double |
log(ASTNodeValue userObject,
double time,
double delay) |
|
double |
log(ASTNodeValue left,
ASTNodeValue right,
double time,
double delay) |
|
boolean |
lt(ASTNodeValue left,
ASTNodeValue right,
double time) |
|
double |
minus(ASTNodeValue[] children,
int size,
double time,
double delay) |
|
boolean |
neq(ASTNodeValue left,
ASTNodeValue right,
double time) |
|
boolean |
not(ASTNodeValue node,
double time) |
|
boolean |
or(ASTNodeValue[] children,
double time) |
|
double |
piecewise(ASTNodeValue[] children,
double time,
double delay) |
|
double |
plus(ASTNodeValue[] children,
int size,
double time,
double delay) |
|
double |
pow(ASTNodeValue left,
ASTNodeValue right,
double time,
double delay) |
|
double |
root(double rootExponent,
ASTNodeValue userObject,
double time,
double delay) |
|
double |
root(ASTNodeValue rootExponent,
ASTNodeValue radiant,
double time,
double delay) |
|
double |
sec(ASTNodeValue userObject,
double time,
double delay) |
|
double |
sech(ASTNodeValue userObject,
double time,
double delay) |
|
double |
sin(ASTNodeValue userObject,
double time,
double delay) |
|
double |
sinh(ASTNodeValue userObject,
double time,
double delay) |
|
double |
sqrt(ASTNodeValue userObject,
double time,
double delay) |
|
double |
symbolTime() |
|
double |
tan(ASTNodeValue userObject,
double time,
double delay) |
|
double |
tanh(ASTNodeValue userObject,
double time,
double delay) |
|
double |
times(ASTNodeValue[] children,
int size,
double time,
double delay) |
|
String |
toString(org.sbml.jsbml.ASTNode value) |
|
double |
uMinus(ASTNodeValue userObject,
double time,
double delay) |
|
boolean |
xor(ASTNodeValue[] children,
double time) |
public static final Logger logger
public ASTNodeInterpreter(SBMLValueHolder valueHolder)
valueHolder
- public final String toString(org.sbml.jsbml.ASTNode value)
value
- public double compileDouble(String name, double time, double delay)
name
- time
- delay
- public double compileDouble(org.sbml.jsbml.CallableSBase nsb, double time, double delay)
nsb
- time
- delay
- public boolean compileBoolean(org.sbml.jsbml.CallableSBase nsb, double time)
nsb
- time
- public double functionDouble(ASTNodeValue rightChild, List<String> variables, ASTNodeValue[] children, int nArguments, double[] values, double time)
rightChild
- variables
- children
- nArguments
- values
- time
- public String compileString(ASTNodeValue child)
child
- public String compileString(org.sbml.jsbml.ASTNode child)
child
- public double lambdaDouble(ASTNodeValue[] children, double time)
children
- time
- public boolean lambdaBoolean(ASTNodeValue[] children, double time)
children
- time
- public double piecewise(ASTNodeValue[] children, double time, double delay)
children
- time
- delay
- public double log(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double log(ASTNodeValue left, ASTNodeValue right, double time, double delay)
left
- right
- time
- delay
- public double functionDouble(String functionDefinitionName, List<ASTNodeValue> args, double time)
functionDefinitionName
- args
- time
- public double tanh(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double tan(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double sinh(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double sin(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double sech(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double sec(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double root(ASTNodeValue rootExponent, ASTNodeValue radiant, double time, double delay)
rootExponent
- radiant
- time
- delay
- public double root(double rootExponent, ASTNodeValue userObject, double time, double delay)
rootExponent
- userObject
- time
- delay
- public double ln(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double floor(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double factorial(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double exp(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double csch(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double csc(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double coth(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double cot(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double cosh(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double cos(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double ceiling(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arctanh(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public boolean functionBoolean(String name, List<ASTNodeValue> children)
name
- children
- public boolean functionBoolean(ASTNodeValue rightChild, List<String> variables, ASTNodeValue[] children, double[] values, double time)
rightChild
- variables
- children
- values
- time
- public boolean lt(ASTNodeValue left, ASTNodeValue right, double time)
left
- right
- time
- public boolean leq(ASTNodeValue left, ASTNodeValue right, double time)
left
- right
- time
- public boolean neq(ASTNodeValue left, ASTNodeValue right, double time)
left
- right
- time
- public boolean gt(ASTNodeValue left, ASTNodeValue right, double time)
left
- right
- time
- public boolean geq(ASTNodeValue left, ASTNodeValue right, double time)
left
- right
- time
- public boolean eq(ASTNodeValue left, ASTNodeValue right, double time)
left
- right
- time
- public boolean not(ASTNodeValue node, double time)
node
- time
- public boolean or(ASTNodeValue[] children, double time)
children
- time
- public boolean xor(ASTNodeValue[] children, double time)
children
- time
- public boolean and(ASTNodeValue[] children, int size, double time)
children
- time
- public double arctan(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arcsinh(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arcsin(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arcsech(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arcsec(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arccsch(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arccsc(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arccoth(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arccot(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arccosh(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double arccos(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double abs(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double compile(double mantissa, int exponent, String units)
mantissa
- exponent
- units
- public final double delay(ASTNodeValue x, ASTNodeValue delay, String timeUnits, double time)
x
- delay
- timeUnits
- time
- public double symbolTime()
public double frac(int numerator, int denominator)
numerator
- denominator
- public double frac(ASTNodeValue left, ASTNodeValue right, double time, double delay)
left
- right
- time
- delay
- public double times(ASTNodeValue[] children, int size, double time, double delay)
children
- size
- time
- delay
- public double minus(ASTNodeValue[] children, int size, double time, double delay)
children
- size
- time
- delay
- public double plus(ASTNodeValue[] children, int size, double time, double delay)
children
- size
- time
- delay
- public double pow(ASTNodeValue left, ASTNodeValue right, double time, double delay)
left
- right
- time
- delay
- public double compile(double value, String units)
value
- units
- public double sqrt(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- public double uMinus(ASTNodeValue userObject, double time, double delay)
userObject
- time
- delay
- Copyright © 2007–2018. All rights reserved.