org.sbml.jsbml.ext.arrays.compiler
public class VectorCompiler extends java.lang.Object implements ASTNodeCompiler
Modifier and Type | Field and Description |
---|---|
private ASTNodeValue |
dummy |
private java.util.Map<java.lang.String,ASTNode> |
idToVector |
private boolean |
isSetIdToVector |
private Model |
model |
private ASTNode |
node |
private boolean |
useId |
Constructor and Description |
---|
VectorCompiler(Model model) |
VectorCompiler(Model model,
boolean useId) |
VectorCompiler(Model model,
boolean useId,
java.util.Map<java.lang.String,ASTNode> idToVector) |
Modifier and Type | Method and Description |
---|---|
ASTNodeValue |
abs(ASTNode value)
The absolute value represented by the given
ASTNode . |
private void |
absRecursive(ASTNode value)
This function calculates the abs value of a vector element-wise.
|
ASTNodeValue |
and(java.util.List<ASTNode> values) |
private void |
andRecursive(java.util.List<ASTNode> values,
ASTNode node) |
ASTNodeValue |
arccos(ASTNode value) |
ASTNodeValue |
arccosh(ASTNode value) |
private void |
arccoshRecursive(ASTNode value) |
private void |
arccosRecursive(ASTNode value)
This function calculates the arcccos value of a vector element-wise.
|
ASTNodeValue |
arccot(ASTNode value) |
ASTNodeValue |
arccoth(ASTNode value) |
private void |
arccothRecursive(ASTNode value) |
private void |
arccotRecursive(ASTNode value) |
ASTNodeValue |
arccsc(ASTNode value) |
ASTNodeValue |
arccsch(ASTNode value) |
private void |
arccschRecursive(ASTNode value) |
private void |
arccscRecursive(ASTNode value) |
ASTNodeValue |
arcsec(ASTNode value) |
ASTNodeValue |
arcsech(ASTNode value) |
private void |
arcsechRecursive(ASTNode value) |
private void |
arcsecRecursive(ASTNode value) |
ASTNodeValue |
arcsin(ASTNode value) |
ASTNodeValue |
arcsinh(ASTNode value) |
private void |
arcsinhRecursive(ASTNode value) |
private void |
arcsinRecursive(ASTNode value) |
ASTNodeValue |
arctan(ASTNode value) |
ASTNodeValue |
arctanh(ASTNode value) |
private void |
arctanhRecursive(ASTNode value) |
private void |
arctanRecursive(ASTNode value) |
ASTNodeValue |
ceiling(ASTNode value) |
private void |
ceilingRecursive(ASTNode value) |
void |
clearIdToVector() |
ASTNodeValue |
compile(CallableSBase variable) |
ASTNodeValue |
compile(Compartment c) |
ASTNodeValue |
compile(double mantissa,
int exponent,
java.lang.String units)
Creates an
ASTNodeValue that represents a real number in
scientific notation, i.e., mantissa * 10^exponent, and the given units. |
ASTNodeValue |
compile(double real,
java.lang.String units) |
ASTNodeValue |
compile(int integer,
java.lang.String units) |
ASTNodeValue |
compile(java.lang.String name)
A compiler will also have to deal with a name.
|
private ASTNode |
constructVector(ArraysSBasePlugin arraysPlugin,
ASTNode node) |
private ASTNode |
constructVector(ArraysSBasePlugin arraysPlugin,
NamedSBase sbase) |
private ASTNode |
constructVector(ArraysSBasePlugin arraysPlugin,
Quantity quantity) |
private ASTNode |
constructVector(ArraysSBasePlugin arraysPlugin,
SpeciesReference sbase) |
ASTNodeValue |
cos(ASTNode value) |
ASTNodeValue |
cosh(ASTNode value) |
private void |
coshRecursive(ASTNode value) |
private void |
cosRecursive(ASTNode value) |
ASTNodeValue |
cot(ASTNode value) |
ASTNodeValue |
coth(ASTNode value) |
private void |
cothRecursive(ASTNode value) |
private void |
cotRecursive(ASTNode value) |
ASTNodeValue |
csc(ASTNode value) |
ASTNodeValue |
csch(ASTNode value) |
private void |
cschRecursive(ASTNode value) |
private void |
cscRecursive(ASTNode value) |
ASTNodeValue |
delay(java.lang.String delayName,
ASTNode x,
ASTNode delay,
java.lang.String timeUnits)
Evaluates delay functions.
|
ASTNodeValue |
eq(ASTNode left,
ASTNode right)
Equal.
|
private void |
eqRecursive(ASTNode right,
ASTNode left,
ASTNode node) |
ASTNodeValue |
exp(ASTNode value) |
private void |
expRecursive(ASTNode value) |
ASTNodeValue |
factorial(ASTNode value) |
private void |
factorialRecursive(ASTNode value) |
ASTNodeValue |
floor(ASTNode value) |
private void |
floorRecursive(ASTNode value) |
ASTNodeValue |
frac(ASTNode numerator,
ASTNode denominator)
Fraction of two
ASTNode s |
ASTNodeValue |
frac(int numerator,
int denominator)
A fraction of two int values.
|
private void |
fracRecursive(ASTNode left,
ASTNode right,
ASTNode node) |
ASTNodeValue |
function(FunctionDefinition functionDefinition,
java.util.List<ASTNode> args) |
ASTNodeValue |
function(java.lang.String functionDefinitionName,
java.util.List<ASTNode> args) |
ASTNodeValue |
geq(ASTNode left,
ASTNode right)
Greater equal.
|
ASTNodeValue |
getConstantAvogadro(java.lang.String name)
Creates an
ASTNodeValue that represent's Avogadro's number. |
ASTNodeValue |
getConstantE() |
ASTNodeValue |
getConstantFalse() |
ASTNodeValue |
getConstantPi() |
ASTNodeValue |
getConstantTrue() |
ASTNodeValue |
getNegativeInfinity() |
ASTNode |
getNode() |
ASTNodeValue |
getPositiveInfinity() |
private boolean |
getScalarsAndVectors(java.util.List<ASTNode> values,
java.util.List<ASTNode> vectors,
java.util.List<ASTNode> scalars,
java.util.List<ASTNode> ids) |
ASTNodeValue |
gt(ASTNode left,
ASTNode right)
Greater than.
|
private void |
gtRecursive(ASTNode left,
ASTNode right,
ASTNode node) |
boolean |
isSetIdToVector() |
ASTNodeValue |
lambda(java.util.List<ASTNode> values)
The body of a
FunctionDefinition . |
ASTNodeValue |
leq(ASTNode left,
ASTNode right)
Less equal.
|
ASTNodeValue |
ln(ASTNode value)
Natural logarithm.
|
private void |
lnRecursive(ASTNode value) |
ASTNodeValue |
log(ASTNode value)
Logarithm of the given value to base 10.
|
ASTNodeValue |
log(ASTNode base,
ASTNode value)
Logarithm of the given value to the given base.
|
private void |
logRecursive(ASTNode value) |
ASTNodeValue |
lt(ASTNode left,
ASTNode right)
Less than.
|
private void |
ltRecursive(ASTNode left,
ASTNode right,
ASTNode node) |
ASTNodeValue |
minus(java.util.List<ASTNode> values)
Subtraction.
|
ASTNodeValue |
neq(ASTNode left,
ASTNode right)
Not equal.
|
private void |
neqRecursive(ASTNode right,
ASTNode left,
ASTNode node) |
ASTNodeValue |
not(ASTNode value) |
private void |
notRecursive(ASTNode value) |
ASTNodeValue |
or(java.util.List<ASTNode> values) |
private void |
orRecursive(java.util.List<ASTNode> values,
ASTNode node) |
ASTNodeValue |
piecewise(java.util.List<ASTNode> values) |
private void |
piecewiseRecursive(java.util.List<ASTNode> values,
ASTNode vector) |
ASTNodeValue |
plus(java.util.List<ASTNode> values) |
private void |
plusRecursive(java.util.List<ASTNode> values,
ASTNode node) |
ASTNodeValue |
pow(ASTNode base,
ASTNode exponent) |
private void |
powRecursive(ASTNode left,
ASTNode right,
ASTNode node) |
private void |
recursiveReplaceDimensionId(ASTNode math,
java.lang.String bvar,
ASTNode value) |
private ASTNode |
replaceMath(ASTNode math,
java.lang.String bvar,
ASTNode value) |
ASTNodeValue |
root(ASTNode rootExponent,
ASTNode radiant) |
ASTNodeValue |
root(double rootExponent,
ASTNode radiant) |
private void |
scalarVectorAnd(ASTNode vector,
ASTNode scalar) |
private void |
scalarVectorEq(ASTNode vector,
ASTNode scalar) |
private void |
scalarVectorFrac(ASTNode scalar,
ASTNode vector) |
private void |
scalarVectorGt(ASTNode scalarLHS,
ASTNode vectorRHS) |
private void |
scalarVectorLt(ASTNode scalarLHS,
ASTNode vectorRHS) |
private void |
scalarVectorNeq(ASTNode vector,
ASTNode scalar) |
private void |
scalarVectorOr(ASTNode vector,
ASTNode scalar) |
private void |
scalarVectorPlus(ASTNode vector,
ASTNode scalar) |
private void |
scalarVectorPow(ASTNode scalarLHS,
ASTNode vectorRHS) |
private void |
scalarVectorTimes(ASTNode vector,
ASTNode scalar) |
private void |
scalarVectorXor(ASTNode vector,
ASTNode scalar) |
ASTNodeValue |
sec(ASTNode value) |
ASTNodeValue |
sech(ASTNode value) |
private void |
sechRecursive(ASTNode value) |
private void |
secRecursive(ASTNode value) |
ASTNodeValue |
selector(java.util.List<ASTNode> nodes) |
void |
setIdToVector(java.util.Map<java.lang.String,ASTNode> idToVector) |
void |
setNode(ASTNode node) |
ASTNodeValue |
sin(ASTNode value) |
ASTNodeValue |
sinh(ASTNode value) |
private void |
sinhRecursive(ASTNode value) |
private void |
sinRecursive(ASTNode value) |
ASTNodeValue |
sqrt(ASTNode radiant)
Square root.
|
private void |
sqrtRecursive(ASTNode value) |
ASTNodeValue |
symbolTime(java.lang.String time)
The simulation time.
|
ASTNodeValue |
tan(ASTNode value) |
ASTNodeValue |
tanh(ASTNode value) |
private void |
tanhRecursive(ASTNode value) |
private void |
tanRecursive(ASTNode value) |
ASTNodeValue |
times(java.util.List<ASTNode> values)
Product of all given
ASTNode s. |
private void |
timesRecursive(java.util.List<ASTNode> values,
ASTNode node) |
private void |
transformNamedSBase(SBase sbase) |
private void |
transformSBase(SBase sbase) |
ASTNodeValue |
uMinus(ASTNode value)
Unary minus, i.e., negation of the given
ASTNode . |
private void |
uMinusRecursive(ASTNode value) |
ASTNodeValue |
unknownValue()
Dealing with a malformed
ASTNode . |
private void |
updateASTNodeName(ASTNode node,
int value) |
private void |
updateASTNodeName(ASTNode node,
java.lang.String value) |
ASTNodeValue |
vector(java.util.List<ASTNode> nodes)
Dealing with a vector.
|
private void |
vectorScalarFrac(ASTNode vector,
ASTNode scalar) |
private void |
vectorScalarGt(ASTNode vectorLHS,
ASTNode scalarRHS) |
private void |
vectorScalarLt(ASTNode vectorLHS,
ASTNode scalarRHS) |
private void |
vectorScalarPow(ASTNode vectorLHS,
ASTNode scalarRHS) |
ASTNodeValue |
xor(java.util.List<ASTNode> values)
Exclusive or.
|
private void |
xorRecursive(java.util.List<ASTNode> values,
ASTNode node) |
private final ASTNodeValue dummy
private final Model model
private ASTNode node
private java.util.Map<java.lang.String,ASTNode> idToVector
private boolean isSetIdToVector
private final boolean useId
public VectorCompiler(Model model)
public VectorCompiler(Model model, boolean useId)
public ASTNode getNode()
public void setNode(ASTNode node)
public void setIdToVector(java.util.Map<java.lang.String,ASTNode> idToVector)
public void clearIdToVector()
public boolean isSetIdToVector()
public ASTNodeValue abs(ASTNode value) throws SBMLException
ASTNodeCompiler
ASTNode
.abs
in interface ASTNodeCompiler
value
- Must be interpretable as a Number
.SBMLException
private void absRecursive(ASTNode value) throws SBMLException
value
- SBMLException
public ASTNodeValue and(java.util.List<ASTNode> values) throws SBMLException
and
in interface ASTNodeCompiler
SBMLException
private void andRecursive(java.util.List<ASTNode> values, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
private void scalarVectorAnd(ASTNode vector, ASTNode scalar)
values
- node
- public ASTNodeValue arccos(ASTNode value) throws SBMLException
arccos
in interface ASTNodeCompiler
SBMLException
private void arccosRecursive(ASTNode value)
value
- SBMLException
public ASTNodeValue arccosh(ASTNode value) throws SBMLException
arccosh
in interface ASTNodeCompiler
SBMLException
private void arccoshRecursive(ASTNode value) throws SBMLException
SBMLException
public ASTNodeValue arccot(ASTNode value) throws SBMLException
arccot
in interface ASTNodeCompiler
SBMLException
private void arccotRecursive(ASTNode value)
public ASTNodeValue arccoth(ASTNode value) throws SBMLException
arccoth
in interface ASTNodeCompiler
SBMLException
private void arccothRecursive(ASTNode value)
public ASTNodeValue arccsc(ASTNode value) throws SBMLException
arccsc
in interface ASTNodeCompiler
SBMLException
private void arccscRecursive(ASTNode value)
public ASTNodeValue arccsch(ASTNode value) throws SBMLException
arccsch
in interface ASTNodeCompiler
SBMLException
private void arccschRecursive(ASTNode value)
public ASTNodeValue arcsec(ASTNode value) throws SBMLException
arcsec
in interface ASTNodeCompiler
SBMLException
private void arcsecRecursive(ASTNode value)
public ASTNodeValue arcsech(ASTNode value) throws SBMLException
arcsech
in interface ASTNodeCompiler
SBMLException
private void arcsechRecursive(ASTNode value)
public ASTNodeValue arcsin(ASTNode value) throws SBMLException
arcsin
in interface ASTNodeCompiler
SBMLException
private void arcsinRecursive(ASTNode value)
public ASTNodeValue arcsinh(ASTNode value) throws SBMLException
arcsinh
in interface ASTNodeCompiler
SBMLException
private void arcsinhRecursive(ASTNode value)
public ASTNodeValue arctan(ASTNode value) throws SBMLException
arctan
in interface ASTNodeCompiler
SBMLException
private void arctanRecursive(ASTNode value)
public ASTNodeValue arctanh(ASTNode value) throws SBMLException
arctanh
in interface ASTNodeCompiler
SBMLException
private void arctanhRecursive(ASTNode value)
public ASTNodeValue ceiling(ASTNode value) throws SBMLException
ceiling
in interface ASTNodeCompiler
SBMLException
private void ceilingRecursive(ASTNode value)
public ASTNodeValue compile(Compartment c)
compile
in interface ASTNodeCompiler
public ASTNodeValue compile(double mantissa, int exponent, java.lang.String units)
ASTNodeCompiler
ASTNodeValue
that represents a real number in
scientific notation, i.e., mantissa * 10^exponent, and the given units.compile
in interface ASTNodeCompiler
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 ASTNodeValue compile(double real, java.lang.String units)
compile
in interface ASTNodeCompiler
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 ASTNodeValue compile(int integer, java.lang.String units)
compile
in interface ASTNodeCompiler
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 ASTNodeValue compile(CallableSBase variable) throws SBMLException
compile
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue compile(java.lang.String name)
ASTNodeCompiler
Species
in the
system. In case of numerical computation, the ASTNodeCompiler
must create an ASTNodeValue
representing the current value of
this Species
.compile
in interface ASTNodeCompiler
private void transformNamedSBase(SBase sbase)
private ASTNode constructVector(ArraysSBasePlugin arraysPlugin, NamedSBase sbase)
private ASTNode constructVector(ArraysSBasePlugin arraysPlugin, Quantity quantity)
private ASTNode constructVector(ArraysSBasePlugin arraysPlugin, ASTNode node)
public ASTNodeValue cos(ASTNode value) throws SBMLException
cos
in interface ASTNodeCompiler
SBMLException
private void cosRecursive(ASTNode value)
public ASTNodeValue cosh(ASTNode value) throws SBMLException
cosh
in interface ASTNodeCompiler
SBMLException
private void coshRecursive(ASTNode value)
public ASTNodeValue cot(ASTNode value) throws SBMLException
cot
in interface ASTNodeCompiler
SBMLException
private void cotRecursive(ASTNode value)
public ASTNodeValue coth(ASTNode value) throws SBMLException
coth
in interface ASTNodeCompiler
SBMLException
private void cothRecursive(ASTNode value)
public ASTNodeValue csc(ASTNode value) throws SBMLException
csc
in interface ASTNodeCompiler
SBMLException
private void cscRecursive(ASTNode value)
public ASTNodeValue csch(ASTNode value) throws SBMLException
csch
in interface ASTNodeCompiler
SBMLException
private void cschRecursive(ASTNode value)
public ASTNodeValue delay(java.lang.String delayName, ASTNode x, ASTNode delay, java.lang.String timeUnits) throws SBMLException
ASTNodeCompiler
delay
in interface ASTNodeCompiler
delayName
- the name of this delay function.delay
- an expression of a positive duration time (the amoutn of
delay)timeUnits
- the units for the delay.SBMLException
public ASTNodeValue eq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
eq
in interface ASTNodeCompiler
SBMLException
private void eqRecursive(ASTNode right, ASTNode left, ASTNode node) throws java.lang.IndexOutOfBoundsException, SBMLException
values
- node
- java.lang.IndexOutOfBoundsException
SBMLException
private void scalarVectorEq(ASTNode vector, ASTNode scalar)
values
- node
- public ASTNodeValue exp(ASTNode value) throws SBMLException
exp
in interface ASTNodeCompiler
SBMLException
private void expRecursive(ASTNode value)
public ASTNodeValue factorial(ASTNode value) throws SBMLException
factorial
in interface ASTNodeCompiler
SBMLException
private void factorialRecursive(ASTNode value)
public ASTNodeValue floor(ASTNode value) throws SBMLException
floor
in interface ASTNodeCompiler
SBMLException
private void floorRecursive(ASTNode value)
public ASTNodeValue frac(ASTNode numerator, ASTNode denominator) throws SBMLException
ASTNodeCompiler
ASTNode
sfrac
in interface ASTNodeCompiler
SBMLException
private void fracRecursive(ASTNode left, ASTNode right, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
public ASTNodeValue frac(int numerator, int denominator) throws SBMLException
ASTNodeCompiler
frac
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue function(FunctionDefinition functionDefinition, java.util.List<ASTNode> args) throws SBMLException
function
in interface ASTNodeCompiler
args
- Values to be inserted into the parameter list of the
function.SBMLException
public ASTNodeValue function(java.lang.String functionDefinitionName, java.util.List<ASTNode> args) throws SBMLException
function
in interface ASTNodeCompiler
args
- Values to be inserted into the parameter list of the
function.SBMLException
public ASTNodeValue geq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
geq
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue getConstantAvogadro(java.lang.String name)
ASTNodeCompiler
ASTNodeValue
that represent's Avogadro's number.
Optionally, the compiler may associate the given name with this number.getConstantAvogadro
in interface ASTNodeCompiler
name
- An optional name for Avogadro's number.public ASTNodeValue getConstantE()
getConstantE
in interface ASTNodeCompiler
public ASTNodeValue getConstantFalse()
getConstantFalse
in interface ASTNodeCompiler
public ASTNodeValue getConstantPi()
getConstantPi
in interface ASTNodeCompiler
public ASTNodeValue getConstantTrue()
getConstantTrue
in interface ASTNodeCompiler
public ASTNodeValue getNegativeInfinity() throws SBMLException
getNegativeInfinity
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue getPositiveInfinity()
getPositiveInfinity
in interface ASTNodeCompiler
private boolean getScalarsAndVectors(java.util.List<ASTNode> values, java.util.List<ASTNode> vectors, java.util.List<ASTNode> scalars, java.util.List<ASTNode> ids)
public ASTNodeValue gt(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
gt
in interface ASTNodeCompiler
SBMLException
private void gtRecursive(ASTNode left, ASTNode right, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
private void vectorScalarGt(ASTNode vectorLHS, ASTNode scalarRHS)
values
- node
- private void scalarVectorGt(ASTNode scalarLHS, ASTNode vectorRHS)
values
- node
- public ASTNodeValue lambda(java.util.List<ASTNode> values) throws SBMLException
ASTNodeCompiler
FunctionDefinition
.lambda
in interface ASTNodeCompiler
values
- Place holders for arguments.SBMLException
public ASTNodeValue leq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
leq
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue ln(ASTNode value) throws SBMLException
ASTNodeCompiler
ln
in interface ASTNodeCompiler
SBMLException
private void lnRecursive(ASTNode value)
public ASTNodeValue log(ASTNode value) throws SBMLException
ASTNodeCompiler
log
in interface ASTNodeCompiler
SBMLException
private void logRecursive(ASTNode value)
public ASTNodeValue log(ASTNode base, ASTNode value) throws SBMLException
ASTNodeCompiler
log
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue lt(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
lt
in interface ASTNodeCompiler
SBMLException
private void ltRecursive(ASTNode left, ASTNode right, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
private void vectorScalarLt(ASTNode vectorLHS, ASTNode scalarRHS)
values
- node
- private void scalarVectorLt(ASTNode scalarLHS, ASTNode vectorRHS)
values
- node
- public ASTNodeValue minus(java.util.List<ASTNode> values) throws SBMLException
ASTNodeCompiler
minus
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue neq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
neq
in interface ASTNodeCompiler
SBMLException
private void neqRecursive(ASTNode right, ASTNode left, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
private void scalarVectorNeq(ASTNode vector, ASTNode scalar)
values
- node
- public ASTNodeValue not(ASTNode value) throws SBMLException
not
in interface ASTNodeCompiler
value
- This value must be interpretable as a Boolean
.SBMLException
private void notRecursive(ASTNode value)
public ASTNodeValue or(java.util.List<ASTNode> values) throws SBMLException
or
in interface ASTNodeCompiler
values
- These values must be interpretable as a Boolean
.SBMLException
private void orRecursive(java.util.List<ASTNode> values, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
private void scalarVectorOr(ASTNode vector, ASTNode scalar)
values
- node
- public ASTNodeValue piecewise(java.util.List<ASTNode> values) throws SBMLException
piecewise
in interface ASTNodeCompiler
SBMLException
private void piecewiseRecursive(java.util.List<ASTNode> values, ASTNode vector) throws SBMLException
SBMLException
public ASTNodeValue plus(java.util.List<ASTNode> values) throws SBMLException
plus
in interface ASTNodeCompiler
SBMLException
private void plusRecursive(java.util.List<ASTNode> values, ASTNode node) throws java.lang.IndexOutOfBoundsException, SBMLException
values
- node
- java.lang.IndexOutOfBoundsException
SBMLException
private void scalarVectorPlus(ASTNode vector, ASTNode scalar)
values
- node
- public ASTNodeValue pow(ASTNode base, ASTNode exponent) throws SBMLException
pow
in interface ASTNodeCompiler
SBMLException
private void powRecursive(ASTNode left, ASTNode right, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
private void vectorScalarPow(ASTNode vectorLHS, ASTNode scalarRHS)
values
- node
- private void scalarVectorPow(ASTNode scalarLHS, ASTNode vectorRHS)
values
- node
- private void recursiveReplaceDimensionId(ASTNode math, java.lang.String bvar, ASTNode value)
public ASTNodeValue root(ASTNode rootExponent, ASTNode radiant) throws SBMLException
root
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue root(double rootExponent, ASTNode radiant) throws SBMLException
root
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue sec(ASTNode value) throws SBMLException
sec
in interface ASTNodeCompiler
SBMLException
private void secRecursive(ASTNode value)
public ASTNodeValue sech(ASTNode value) throws SBMLException
sech
in interface ASTNodeCompiler
SBMLException
private void sechRecursive(ASTNode value)
public ASTNodeValue selector(java.util.List<ASTNode> nodes) throws SBMLException
selector
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue sin(ASTNode value) throws SBMLException
sin
in interface ASTNodeCompiler
SBMLException
private void sinRecursive(ASTNode value)
public ASTNodeValue sinh(ASTNode value) throws SBMLException
sinh
in interface ASTNodeCompiler
SBMLException
private void sinhRecursive(ASTNode value)
public ASTNodeValue sqrt(ASTNode radiant) throws SBMLException
ASTNodeCompiler
sqrt
in interface ASTNodeCompiler
radiant
- This value must be interpretable as a Number
.SBMLException
private void sqrtRecursive(ASTNode value)
public ASTNodeValue symbolTime(java.lang.String time)
ASTNodeCompiler
symbolTime
in interface ASTNodeCompiler
time
- The name of the time symbol.ASTNodeValue
that represents the current time.public ASTNodeValue tan(ASTNode value) throws SBMLException
tan
in interface ASTNodeCompiler
SBMLException
private void tanRecursive(ASTNode value)
public ASTNodeValue tanh(ASTNode value) throws SBMLException
tanh
in interface ASTNodeCompiler
SBMLException
private void tanhRecursive(ASTNode value)
public ASTNodeValue times(java.util.List<ASTNode> values) throws SBMLException
ASTNodeCompiler
ASTNode
s.times
in interface ASTNodeCompiler
values
- These values must be interpretable to Number
.SBMLException
private void timesRecursive(java.util.List<ASTNode> values, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException
private void scalarVectorTimes(ASTNode vector, ASTNode scalar)
values
- node
- private void transformSBase(SBase sbase)
private ASTNode constructVector(ArraysSBasePlugin arraysPlugin, SpeciesReference sbase)
private void updateASTNodeName(ASTNode node, int value)
private void updateASTNodeName(ASTNode node, java.lang.String value)
public ASTNodeValue uMinus(ASTNode value) throws SBMLException
ASTNodeCompiler
ASTNode
.uMinus
in interface ASTNodeCompiler
SBMLException
private void uMinusRecursive(ASTNode value)
public ASTNodeValue unknownValue() throws SBMLException
ASTNodeCompiler
ASTNode
.unknownValue
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue vector(java.util.List<ASTNode> nodes) throws SBMLException
ASTNodeCompiler
vector
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue xor(java.util.List<ASTNode> values) throws SBMLException
ASTNodeCompiler
xor
in interface ASTNodeCompiler
values
- It must be possible to evaluate the given values to
Boolean
.SBMLException
private void xorRecursive(java.util.List<ASTNode> values, ASTNode node) throws java.lang.IndexOutOfBoundsException
values
- node
- java.lang.IndexOutOfBoundsException