public class FormulaCompiler extends StringTools implements ASTNode2Compiler
String
s that represent the
content of ASTNode2
s. These can be used to save equations in SBML with
older than Level 2.Modifier and Type | Field and Description |
---|---|
private boolean |
prefixNotationInLogicalOperations
Decides whether prefix or infix notation should be used for the logical
operations "and", "or", and "xor".
|
DECIMAL_FORMAT, REAL_FORMAT, SCIENTIFIC_FORMAT, underscore
Constructor and Description |
---|
FormulaCompiler() |
Modifier and Type | Method and Description |
---|---|
<T> ASTNode2Value<java.lang.String> |
abs(ASTNode2 node)
The absolute value represented by the given
ASTNode2 . |
<T> ASTNode2Value<java.lang.String> |
and(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
arccos(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arccosh(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arccot(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arccoth(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arccsc(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arccsch(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arcsec(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arcsech(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arcsin(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arcsinh(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arctan(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
arctanh(ASTNode2 node) |
private static <T> java.lang.StringBuffer |
arith(char operator,
T... elements)
Basic method which links several elements with a mathematical operator.
|
static java.lang.StringBuffer |
brackets(java.lang.Object sb) |
<T> ASTNode2Value<java.lang.String> |
ceiling(ASTNode2 node) |
protected <T> ASTNode2Value<java.lang.String> |
checkBrackets(ASTNode2 node)
Creates brackets if needed.
|
protected <T> ASTNode2Value<java.lang.String> |
checkDenominatorBrackets(ASTNode2 nodes)
Creates brackets if needed.
|
<T> ASTNode2Value<java.lang.String> |
compile(CallableSBase variable) |
<T> ASTNode2Value<java.lang.String> |
compile(Compartment c) |
<T> ASTNode2Value<java.lang.String> |
compile(double mantissa,
int exponent,
java.lang.String units)
Creates an
ASTNode2Value that represents a real number in
scientific notation, i.e., mantissa * 10^exponent, and the given units. |
<T> ASTNode2Value<java.lang.String> |
compile(double real,
java.lang.String units) |
<T> ASTNode2Value<java.lang.Integer> |
compile(int integer,
java.lang.String units) |
<T> ASTNode2Value<java.lang.String> |
compile(java.lang.String name)
A compiler will also have to deal with a name.
|
private static boolean |
containsArith(java.lang.Object something)
Tests whether the String representation of the given object contains any
arithmetic symbols and if the given object is already sorrounded by
brackets.
|
<T> ASTNode2Value<java.lang.String> |
cos(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
cosh(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
cot(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
coth(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
csc(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
csch(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
delay(java.lang.String delayName,
ASTNode2 x,
ASTNode2 y)
Evaluates delay functions.
|
static java.lang.StringBuffer |
diff(java.lang.Object... subtrahents)
Returns the difference of the given elements as StringBuffer.
|
<T> ASTNode2Value<java.lang.String> |
eq(ASTNode2 left,
ASTNode2 right)
Equal.
|
<T> ASTNode2Value<java.lang.String> |
exp(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
factorial(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
floor(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
frac(ASTNode2 numerator,
ASTNode2 denominator)
Fraction of two
ASTNode2 s |
<T> ASTNode2Value<java.lang.String> |
frac(int numerator,
int denominator)
A fraction of two int values.
|
static java.lang.StringBuffer |
frac(java.lang.Object numerator,
java.lang.Object denominator)
Returns a fraction with the given elements as numerator and denominator.
|
<T> ASTNode2Value<java.lang.String> |
function(FunctionDefinition func,
java.util.List<ASTNode2> nodes) |
protected <T> ASTNode2Value<java.lang.String> |
function(java.lang.String name,
ASTNode2... nodes) |
<T> ASTNode2Value<java.lang.String> |
function(java.lang.String name,
java.util.List<ASTNode2> l) |
<T> ASTNode2Value<java.lang.String> |
function(T name,
java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
geq(ASTNode2 left,
ASTNode2 right)
Greater equal.
|
<T> ASTNode2Value<java.lang.String> |
getConstantAvogadro(java.lang.String name)
Creates an
ASTNode2Value that represent's Avogadro's number. |
<T> ASTNode2Value<java.lang.String> |
getConstantE() |
<T> ASTNode2Value<java.lang.String> |
getConstantFalse() |
<T> ASTNode2Value<java.lang.String> |
getConstantPi() |
<T> ASTNode2Value<java.lang.String> |
getConstantTrue() |
<T> ASTNode2Value<java.lang.String> |
getNegativeInfinity() |
<T> ASTNode2Value<java.lang.String> |
getPositiveInfinity() |
protected static java.lang.StringBuffer |
getSpecies(SpeciesReference ref)
Returns the id of a PluginSpeciesReference object's belonging species as
an object of type StringBuffer.
|
<T> ASTNode2Value<java.lang.String> |
gt(ASTNode2 left,
ASTNode2 right)
Greater than.
|
boolean |
isPrefixNotationInLogicalOperations() |
<T> ASTNode2Value<java.lang.String> |
lambda(java.util.List<ASTNode2> nodes)
The body of a
FunctionDefinition . |
protected java.lang.String |
lambdaBody(java.util.List<ASTNode2> nodes)
Creates the body of a lambda function, i.e., the argument list and the
actual mathematical operation, all comma separated and surrounded in
brackets.
|
<T> ASTNode2Value<java.lang.String> |
leq(ASTNode2 left,
ASTNode2 right)
Less equal.
|
<T> ASTNode2Value<java.lang.String> |
ln(ASTNode2 node)
Natural logarithm.
|
<T> ASTNode2Value<java.lang.String> |
log(ASTNode2 node)
Logarithm of the given value to base 10.
|
<T> ASTNode2Value<java.lang.String> |
log(ASTNode2 left,
ASTNode2 right)
Logarithm of the given value to the given base.
|
protected <T> ASTNode2Value<java.lang.String> |
logicalOperation(java.lang.String operator,
java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
lt(ASTNode2 left,
ASTNode2 right)
Less than.
|
<T> ASTNode2Value<java.lang.String> |
minus(java.util.List<ASTNode2> nodes)
Subtraction.
|
<T> ASTNode2Value<java.lang.String> |
neq(ASTNode2 left,
ASTNode2 right)
Not equal.
|
<T> ASTNode2Value<java.lang.String> |
not(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
or(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
piecewise(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
plus(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
pow(ASTNode2 left,
ASTNode2 right) |
static java.lang.StringBuffer |
pow(java.lang.Object basis,
java.lang.Object exponent)
Returns the basis to the power of the exponent as StringBuffer.
|
protected <T> ASTNode2Value<java.lang.String> |
relation(ASTNode2 left,
java.lang.String symbol,
ASTNode2 right) |
<T> ASTNode2Value<java.lang.String> |
root(ASTNode2 rootExponent,
ASTNode2 radicand) |
<T> ASTNode2Value<java.lang.String> |
root(double rootExponent,
ASTNode2 radicand) |
static java.lang.StringBuffer |
root(java.lang.Object exponent,
java.lang.Object basis)
Returns the exponent-th root of the basis as StringBuffer.
|
<T> ASTNode2Value<java.lang.String> |
sec(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
sech(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
selector(java.util.List<ASTNode2> nodes) |
protected static java.lang.StringBuffer |
selector(java.lang.Object... elements)
Returns the given selector as StringBuffer.
|
void |
setPrefixNotationInLogicalOperations(boolean prefixNotationInLogicalOperations) |
<T> ASTNode2Value<java.lang.String> |
sin(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
sinh(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
sqrt(ASTNode2 node)
Square root.
|
static java.lang.StringBuffer |
sqrt(java.lang.Object basis) |
static java.lang.StringBuffer |
sum(java.lang.Object... summands)
Returns the sum of the given elements as StringBuffer.
|
<T> ASTNode2Value<java.lang.String> |
symbolTime(java.lang.String time)
The simulation time.
|
<T> ASTNode2Value<java.lang.String> |
tan(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
tanh(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
times(java.util.List<ASTNode2> nodes)
Product of all given
ASTNode2 s. |
static <T> java.lang.StringBuffer |
times(T... factors)
Returns the product of the given elements as StringBuffer.
|
<T> ASTNode2Value<java.lang.String> |
uMinus(ASTNode2 node)
Unary minus, i.e., negation of the given
ASTNode2 . |
<T> ASTNode2Value<java.lang.String> |
unknownValue()
Dealing with a malformed
ASTNode2 . |
<T> ASTNode2Value<java.lang.String> |
vector(java.util.List<ASTNode2> nodes)
Dealing with a vector.
|
protected static <T> java.lang.StringBuffer |
vector(T... elements)
Returns the given vector as StringBuffer.
|
<T> ASTNode2Value<java.lang.String> |
xor(java.util.List<ASTNode2> nodes)
Exclusive or.
|
append, append, concat, concatStringBuilder, encodeForHTML, fill, fill, firstLetterLowerCase, firstLetterUpperCase, getWordForNumber, leadingZeros, newLine, parseSBMLBoolean, parseSBMLDouble, parseSBMLInt, parseSBMLShort, toHTML, toHTML, toString, toString, toXMLAnnotationString, toXMLMessageString, toXMLNotesString
private boolean prefixNotationInLogicalOperations
public boolean isPrefixNotationInLogicalOperations()
public void setPrefixNotationInLogicalOperations(boolean prefixNotationInLogicalOperations)
prefixNotationInLogicalOperations
- the prefixNotationInLogicalOperations to setprivate static final <T> java.lang.StringBuffer arith(char operator, T... elements)
operator
- elements
- public static final java.lang.StringBuffer brackets(java.lang.Object sb)
sb
- private static boolean containsArith(java.lang.Object something)
something
- true
if either brackets are set around the given object or the
object does not contain any symbols such as +, -, *, /.public static final java.lang.StringBuffer diff(java.lang.Object... subtrahents)
subtrahents
- public static final java.lang.StringBuffer frac(java.lang.Object numerator, java.lang.Object denominator)
numerator
- denominator
- protected static final java.lang.StringBuffer getSpecies(SpeciesReference ref)
ref
- public static final java.lang.StringBuffer pow(java.lang.Object basis, java.lang.Object exponent)
basis
- exponent
- public static final java.lang.StringBuffer root(java.lang.Object exponent, java.lang.Object basis) throws java.lang.NumberFormatException
exponent
- basis
- java.lang.NumberFormatException
java.util.IllegalFormatException
- If the given exponent represents a zero.protected static final java.lang.StringBuffer selector(java.lang.Object... elements)
elements
- public static final java.lang.StringBuffer sqrt(java.lang.Object basis)
basis
- public static final java.lang.StringBuffer sum(java.lang.Object... summands)
summands
- public static final <T> java.lang.StringBuffer times(T... factors)
factors
- protected static final <T> java.lang.StringBuffer vector(T... elements)
elements
- public <T> ASTNode2Value<java.lang.String> abs(ASTNode2 node) throws SBMLException
ASTNode2Compiler
ASTNode2
.abs
in interface ASTNode2Compiler
node
- Must be interpretable as a Number
.SBMLException
public <T> ASTNode2Value<java.lang.String> and(java.util.List<ASTNode2> nodes) throws SBMLException
and
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccos(ASTNode2 node) throws SBMLException
arccos
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccosh(ASTNode2 node) throws SBMLException
arccosh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccot(ASTNode2 node) throws SBMLException
arccot
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccoth(ASTNode2 node) throws SBMLException
arccoth
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccsc(ASTNode2 node) throws SBMLException
arccsc
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccsch(ASTNode2 node) throws SBMLException
arccsch
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsec(ASTNode2 node) throws SBMLException
arcsec
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsech(ASTNode2 node) throws SBMLException
arcsech
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsin(ASTNode2 node) throws SBMLException
arcsin
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsinh(ASTNode2 node) throws SBMLException
arcsinh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arctan(ASTNode2 node) throws SBMLException
arctan
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arctanh(ASTNode2 node) throws SBMLException
arctanh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> ceiling(ASTNode2 node) throws SBMLException
ceiling
in interface ASTNode2Compiler
SBMLException
protected <T> ASTNode2Value<java.lang.String> checkBrackets(ASTNode2 node) throws SBMLException
node
- SBMLException
protected <T> ASTNode2Value<java.lang.String> checkDenominatorBrackets(ASTNode2 nodes) throws SBMLException
nodes
- SBMLException
public <T> ASTNode2Value<java.lang.String> compile(CallableSBase variable)
compile
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> compile(Compartment c)
compile
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> compile(double mantissa, int exponent, java.lang.String units)
ASTNode2Compiler
ASTNode2Value
that represents a real number in
scientific notation, i.e., mantissa * 10^exponent, and the given units.compile
in interface ASTNode2Compiler
mantissa
- The number to be multiplied with ten to the power of the given
exponent.exponent
- The exponent for the multiplier ten.units
- The identifier of the units object associated with the number
represented by this element. Can be null if no units have been
defined.public <T> ASTNode2Value<java.lang.String> compile(double real, java.lang.String units)
compile
in interface ASTNode2Compiler
units
- A String representing the Unit
of the given number.
This can be the identifier of a UnitDefinition
in the
model or a literal in Unit.Kind
. Can be null if no units
have been defined.public <T> ASTNode2Value<java.lang.Integer> compile(int integer, java.lang.String units)
compile
in interface ASTNode2Compiler
units
- A String representing the Unit
of the given number.
This can be the identifier of a UnitDefinition
in the
model or a literal in Unit.Kind
. Can be null if no units
have been defined.public <T> ASTNode2Value<java.lang.String> compile(java.lang.String name)
ASTNode2Compiler
Species
in the
system. In case of numerical computation, the ASTNodeCompiler
must create an ASTNode2Value
representing the current value of
this Species
.compile
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> cos(ASTNode2 node) throws SBMLException
cos
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> cosh(ASTNode2 node) throws SBMLException
cosh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> cot(ASTNode2 node) throws SBMLException
cot
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> coth(ASTNode2 node) throws SBMLException
coth
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> csc(ASTNode2 node) throws SBMLException
csc
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> csch(ASTNode2 node) throws SBMLException
csch
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> delay(java.lang.String delayName, ASTNode2 x, ASTNode2 y) throws SBMLException
ASTNode2Compiler
delay
in interface ASTNode2Compiler
delayName
- the name of this delay function.y
- an expression of a positive duration time (the amoutn of
delay)SBMLException
public <T> ASTNode2Value<java.lang.String> eq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
eq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> exp(ASTNode2 node) throws SBMLException
exp
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> factorial(ASTNode2 node)
factorial
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> floor(ASTNode2 node) throws SBMLException
floor
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> frac(ASTNode2 numerator, ASTNode2 denominator) throws SBMLException
ASTNode2Compiler
ASTNode2
sfrac
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> frac(int numerator, int denominator)
ASTNode2Compiler
frac
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> function(FunctionDefinition func, java.util.List<ASTNode2> nodes) throws SBMLException
function
in interface ASTNode2Compiler
nodes
- Values to be inserted into the parameter list of the
function.SBMLException
protected <T> ASTNode2Value<java.lang.String> function(java.lang.String name, ASTNode2... nodes) throws SBMLException
name
- nodes
- SBMLException
public <T> ASTNode2Value<java.lang.String> function(java.lang.String name, java.util.List<ASTNode2> l) throws SBMLException
function
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> function(T name, java.util.List<ASTNode2> nodes) throws SBMLException
function
in interface ASTNode2Compiler
name
- nodes
- SBMLException
public <T> ASTNode2Value<java.lang.String> geq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
geq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> getConstantAvogadro(java.lang.String name)
ASTNode2Compiler
ASTNode2Value
that represent's Avogadro's number.
Optionally, the compiler may associate the given name with this number.getConstantAvogadro
in interface ASTNode2Compiler
name
- An optional name for Avogadro's number.public <T> ASTNode2Value<java.lang.String> getConstantE()
getConstantE
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getConstantFalse()
getConstantFalse
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getConstantPi()
getConstantPi
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getConstantTrue()
getConstantTrue
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getNegativeInfinity()
getNegativeInfinity
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getPositiveInfinity()
getPositiveInfinity
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> gt(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
gt
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> lambda(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
FunctionDefinition
.lambda
in interface ASTNode2Compiler
nodes
- Place holders for arguments.SBMLException
protected java.lang.String lambdaBody(java.util.List<ASTNode2> nodes) throws SBMLException
nodes
- SBMLException
public <T> ASTNode2Value<java.lang.String> leq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
leq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> ln(ASTNode2 node) throws SBMLException
ASTNode2Compiler
ln
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> log(ASTNode2 node) throws SBMLException
ASTNode2Compiler
log
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> log(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
log
in interface ASTNode2Compiler
SBMLException
protected <T> ASTNode2Value<java.lang.String> logicalOperation(java.lang.String operator, java.util.List<ASTNode2> nodes) throws SBMLException
operator
- nodes
- SBMLException
public <T> ASTNode2Value<java.lang.String> lt(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
lt
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> minus(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
minus
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> neq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
neq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> not(ASTNode2 node) throws SBMLException
not
in interface ASTNode2Compiler
node
- This value must be interpretable as a Boolean
.SBMLException
public <T> ASTNode2Value<java.lang.String> or(java.util.List<ASTNode2> nodes) throws SBMLException
or
in interface ASTNode2Compiler
nodes
- These values must be interpretable as a Boolean
.SBMLException
public <T> ASTNode2Value<java.lang.String> piecewise(java.util.List<ASTNode2> nodes) throws SBMLException
piecewise
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> plus(java.util.List<ASTNode2> nodes) throws SBMLException
plus
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> pow(ASTNode2 left, ASTNode2 right) throws SBMLException
pow
in interface ASTNode2Compiler
SBMLException
protected <T> ASTNode2Value<java.lang.String> relation(ASTNode2 left, java.lang.String symbol, ASTNode2 right) throws SBMLException
left
- symbol
- right
- SBMLException
public <T> ASTNode2Value<java.lang.String> root(ASTNode2 rootExponent, ASTNode2 radicand) throws SBMLException
root
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> root(double rootExponent, ASTNode2 radicand) throws SBMLException
root
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sec(ASTNode2 node) throws SBMLException
sec
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sech(ASTNode2 node) throws SBMLException
sech
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> selector(java.util.List<ASTNode2> nodes) throws SBMLException
selector
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sin(ASTNode2 node) throws SBMLException
sin
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sinh(ASTNode2 node) throws SBMLException
sinh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sqrt(ASTNode2 node) throws SBMLException
ASTNode2Compiler
sqrt
in interface ASTNode2Compiler
node
- This value must be interpretable as a Number
.SBMLException
public <T> ASTNode2Value<java.lang.String> symbolTime(java.lang.String time)
ASTNode2Compiler
symbolTime
in interface ASTNode2Compiler
time
- The name of the time symbol.ASTNode2Value
that represents the current time.public <T> ASTNode2Value<java.lang.String> tan(ASTNode2 node) throws SBMLException
tan
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> tanh(ASTNode2 node) throws SBMLException
tanh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> times(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
ASTNode2
s.times
in interface ASTNode2Compiler
nodes
- These values must be interpretable to Number
.SBMLException
public <T> ASTNode2Value<java.lang.String> uMinus(ASTNode2 node) throws SBMLException
ASTNode2Compiler
ASTNode2
.uMinus
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> unknownValue() throws SBMLException
ASTNode2Compiler
ASTNode2
.unknownValue
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> vector(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
vector
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> xor(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
xor
in interface ASTNode2Compiler
nodes
- It must be possible to evaluate the given values to
Boolean
.SBMLException