ASTNode2Compiler
public class FindUnitsCompiler extends java.lang.Object implements ASTNode2Compiler
ASTNodeCompiler
is basically empty, only methods related to
'cn' elements are implementedConstructor | Description |
---|---|
FindUnitsCompiler() |
Modifier and Type | Method | Description |
---|---|---|
<T> ASTNode2Value<java.lang.String> |
abs(ASTNode2 value) |
The absolute value represented by the given
ASTNode2 . |
<T> ASTNode2Value<java.lang.String> |
and(java.util.List<ASTNode2> values) |
|
<T> ASTNode2Value<java.lang.String> |
arccos(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arccosh(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arccot(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arccoth(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arccsc(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arccsch(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arcsec(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arcsech(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arcsin(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arcsinh(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arctan(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
arctanh(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
ceiling(ASTNode2 value) |
|
<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.String> |
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.
|
<T> ASTNode2Value<java.lang.String> |
compile(CallableSBase variable) |
|
<T> ASTNode2Value<java.lang.String> |
compile(Compartment c) |
|
<T> ASTNode2Value<java.lang.String> |
cos(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
cosh(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
cot(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
coth(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
csc(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
csch(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
delay(java.lang.String delayName,
ASTNode2 x,
ASTNode2 delay) |
Evaluates delay functions.
|
<T> ASTNode2Value<java.lang.String> |
eq(ASTNode2 left,
ASTNode2 right) |
Equal.
|
<T> ASTNode2Value<java.lang.String> |
exp(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
factorial(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
floor(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
frac(int numerator,
int denominator) |
A fraction of two int values.
|
<T> ASTNode2Value<java.lang.String> |
frac(ASTNode2 numerator,
ASTNode2 denominator) |
Fraction of two
ASTNode2 s |
<T> ASTNode2Value<java.lang.String> |
function(java.lang.String functionDefinitionName,
java.util.List<ASTNode2> args) |
|
<T> ASTNode2Value<java.lang.String> |
function(FunctionDefinition functionDefinition,
java.util.List<ASTNode2> args) |
|
<T> ASTNode2Value<?> |
function(T functionDefinitionName,
java.util.List<ASTNode2> args) |
|
<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() |
|
<T> ASTNode2Value<java.lang.String> |
gt(ASTNode2 left,
ASTNode2 right) |
Greater than.
|
boolean |
isUnitsDefined() |
|
<T> ASTNode2Value<java.lang.String> |
lambda(java.util.List<ASTNode2> values) |
The body of a
FunctionDefinition . |
<T> ASTNode2Value<java.lang.String> |
leq(ASTNode2 left,
ASTNode2 right) |
Less equal.
|
<T> ASTNode2Value<java.lang.String> |
ln(ASTNode2 value) |
Natural logarithm.
|
<T> ASTNode2Value<java.lang.String> |
log(ASTNode2 value) |
Logarithm of the given value to base 10.
|
<T> ASTNode2Value<java.lang.String> |
log(ASTNode2 base,
ASTNode2 value) |
Logarithm of the given value to the given base.
|
<T> ASTNode2Value<java.lang.String> |
lt(ASTNode2 left,
ASTNode2 right) |
Less than.
|
<T> ASTNode2Value<java.lang.String> |
minus(java.util.List<ASTNode2> values) |
Subtraction.
|
<T> ASTNode2Value<java.lang.String> |
neq(ASTNode2 left,
ASTNode2 right) |
Not equal.
|
<T> ASTNode2Value<java.lang.String> |
not(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
or(java.util.List<ASTNode2> values) |
|
<T> ASTNode2Value<java.lang.String> |
piecewise(java.util.List<ASTNode2> values) |
|
<T> ASTNode2Value<java.lang.String> |
plus(java.util.List<ASTNode2> values) |
|
<T> ASTNode2Value<java.lang.String> |
pow(ASTNode2 base,
ASTNode2 exponent) |
|
void |
reset() |
|
<T> ASTNode2Value<java.lang.String> |
root(double rootExponent,
ASTNode2 radiant) |
|
<T> ASTNode2Value<java.lang.String> |
root(ASTNode2 rootExponent,
ASTNode2 radiant) |
|
<T> ASTNode2Value<java.lang.String> |
sec(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
sech(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
selector(java.util.List<ASTNode2> value) |
|
<T> ASTNode2Value<java.lang.String> |
sin(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
sinh(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
sqrt(ASTNode2 radiant) |
Square root.
|
<T> ASTNode2Value<java.lang.String> |
symbolTime(java.lang.String time) |
The simulation time.
|
<T> ASTNode2Value<java.lang.String> |
tan(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
tanh(ASTNode2 value) |
|
<T> ASTNode2Value<java.lang.String> |
times(java.util.List<ASTNode2> values) |
Product of all given
ASTNode2 s. |
<T> ASTNode2Value<java.lang.String> |
uMinus(ASTNode2 value) |
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.
|
<T> ASTNode2Value<java.lang.String> |
xor(java.util.List<ASTNode2> values) |
Exclusive or.
|
public boolean isUnitsDefined()
public void reset()
public <T> ASTNode2Value<java.lang.String> abs(ASTNode2 value) throws SBMLException
ASTNode2Compiler
ASTNode2
.abs
in interface ASTNode2Compiler
value
- Must be interpretable as a Number
.SBMLException
public <T> ASTNode2Value<java.lang.String> and(java.util.List<ASTNode2> values) throws SBMLException
and
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccos(ASTNode2 value) throws SBMLException
arccos
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccosh(ASTNode2 value) throws SBMLException
arccosh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccot(ASTNode2 value) throws SBMLException
arccot
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccoth(ASTNode2 value) throws SBMLException
arccoth
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccsc(ASTNode2 value) throws SBMLException
arccsc
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccsch(ASTNode2 value) throws SBMLException
arccsch
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsec(ASTNode2 value) throws SBMLException
arcsec
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsech(ASTNode2 value) throws SBMLException
arcsech
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsin(ASTNode2 value) throws SBMLException
arcsin
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsinh(ASTNode2 value) throws SBMLException
arcsinh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arctan(ASTNode2 value) throws SBMLException
arctan
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arctanh(ASTNode2 value) throws SBMLException
arctanh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> ceiling(ASTNode2 value) throws SBMLException
ceiling
in interface ASTNode2Compiler
SBMLException
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.String> 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(CallableSBase variable) throws SBMLException
compile
in interface ASTNode2Compiler
SBMLException
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 value) throws SBMLException
cos
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> cosh(ASTNode2 value) throws SBMLException
cosh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> cot(ASTNode2 value) throws SBMLException
cot
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> coth(ASTNode2 value) throws SBMLException
coth
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> csc(ASTNode2 value) throws SBMLException
csc
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> csch(ASTNode2 value) throws SBMLException
csch
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> delay(java.lang.String delayName, ASTNode2 x, ASTNode2 delay) throws SBMLException
ASTNode2Compiler
delay
in interface ASTNode2Compiler
delayName
- the name of this delay function.delay
- 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 value) throws SBMLException
exp
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> factorial(ASTNode2 value) throws SBMLException
factorial
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> floor(ASTNode2 value) 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) throws SBMLException
ASTNode2Compiler
frac
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> function(FunctionDefinition functionDefinition, java.util.List<ASTNode2> args) throws SBMLException
function
in interface ASTNode2Compiler
args
- Values to be inserted into the parameter list of the
function.SBMLException
public <T> ASTNode2Value<java.lang.String> function(java.lang.String functionDefinitionName, java.util.List<ASTNode2> args) throws SBMLException
function
in interface ASTNode2Compiler
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() throws SBMLException
getNegativeInfinity
in interface ASTNode2Compiler
SBMLException
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> values) throws SBMLException
ASTNode2Compiler
FunctionDefinition
.lambda
in interface ASTNode2Compiler
values
- Place holders for arguments.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 value) throws SBMLException
ASTNode2Compiler
ln
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> log(ASTNode2 value) throws SBMLException
ASTNode2Compiler
log
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> log(ASTNode2 base, ASTNode2 value) throws SBMLException
ASTNode2Compiler
log
in interface ASTNode2Compiler
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> values) 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 value) throws SBMLException
not
in interface ASTNode2Compiler
value
- This value must be interpretable as a Boolean
.SBMLException
public <T> ASTNode2Value<java.lang.String> or(java.util.List<ASTNode2> values) throws SBMLException
or
in interface ASTNode2Compiler
values
- These values must be interpretable as a Boolean
.SBMLException
public <T> ASTNode2Value<java.lang.String> piecewise(java.util.List<ASTNode2> values) throws SBMLException
piecewise
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> plus(java.util.List<ASTNode2> values) throws SBMLException
plus
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> pow(ASTNode2 base, ASTNode2 exponent) throws SBMLException
pow
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> root(ASTNode2 rootExponent, ASTNode2 radiant) throws SBMLException
root
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> root(double rootExponent, ASTNode2 radiant) throws SBMLException
root
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sec(ASTNode2 value) throws SBMLException
sec
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sech(ASTNode2 value) throws SBMLException
sech
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sin(ASTNode2 value) throws SBMLException
sin
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sinh(ASTNode2 value) throws SBMLException
sinh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sqrt(ASTNode2 radiant) throws SBMLException
ASTNode2Compiler
sqrt
in interface ASTNode2Compiler
radiant
- 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 value) throws SBMLException
tan
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> tanh(ASTNode2 value) throws SBMLException
tanh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> times(java.util.List<ASTNode2> values) throws SBMLException
ASTNode2Compiler
ASTNode2
s.times
in interface ASTNode2Compiler
values
- These values must be interpretable to Number
.SBMLException
public <T> ASTNode2Value<java.lang.String> uMinus(ASTNode2 value) 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> xor(java.util.List<ASTNode2> values) throws SBMLException
ASTNode2Compiler
xor
in interface ASTNode2Compiler
values
- It must be possible to evaluate the given values to
Boolean
.SBMLException
public <T> ASTNode2Value<java.lang.String> selector(java.util.List<ASTNode2> value) throws SBMLException
selector
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<?> function(T functionDefinitionName, java.util.List<ASTNode2> args) throws SBMLException
function
in interface ASTNode2Compiler
args
- Values to be inserted into the parameter list of the
function.SBMLException