org.sbml.jsbml.util.compilers
public class FormulaCompilerLibSBML extends FormulaCompiler
String
s that represent the
content of ASTNode
s.
This class give an output that is closer to the output produced by libSBML parseFormula method.
DECIMAL_FORMAT, REAL_FORMAT, SCIENTIFIC_FORMAT, underscore
Constructor and Description |
---|
FormulaCompilerLibSBML() |
Modifier and Type | Method and Description |
---|---|
ASTNodeValue |
and(java.util.List<ASTNode> nodes) |
ASTNodeValue |
eq(ASTNode left,
ASTNode right)
Equal.
|
ASTNodeValue |
factorial(ASTNode node) |
ASTNodeValue |
geq(ASTNode left,
ASTNode right)
Greater equal.
|
ASTNodeValue |
gt(ASTNode left,
ASTNode right)
Greater than.
|
ASTNodeValue |
leq(ASTNode left,
ASTNode right)
Less equal.
|
ASTNodeValue |
lt(ASTNode left,
ASTNode right)
Less than.
|
ASTNodeValue |
neq(ASTNode left,
ASTNode right)
Not equal.
|
ASTNodeValue |
not(ASTNode node) |
ASTNodeValue |
or(java.util.List<ASTNode> nodes) |
ASTNodeValue |
xor(java.util.List<ASTNode> nodes)
Exclusive or.
|
abs, arccos, arccosh, arccot, arccoth, arccsc, arccsch, arcsec, arcsech, arcsin, arcsinh, arctan, arctanh, brackets, ceiling, checkBrackets, checkDenominatorBrackets, compile, compile, compile, compile, compile, compile, cos, cosh, cot, coth, csc, csch, delay, diff, exp, floor, frac, frac, frac, function, function, function, getConstantAvogadro, getConstantE, getConstantFalse, getConstantPi, getConstantTrue, getNegativeInfinity, getPositiveInfinity, getSpecies, getStoichiometry, lambda, lambdaBody, ln, log, log, logicalOperation, minus, piecewise, plus, pow, pow, relation, root, root, root, sec, sech, selector, selector, sin, sinh, sqrt, sqrt, sum, symbolTime, tan, tanh, times, times, uMinus, unknownValue, vector, vector
append, append, concat, concatStringBuilder, encodeForHTML, fill, fill, firstLetterLowerCase, firstLetterUpperCase, getWordForNumber, leadingZeros, newLine, parseSBMLBoolean, parseSBMLDouble, parseSBMLInt, parseSBMLShort, toHTML, toHTML, toString, toString, toXMLAnnotationString, toXMLMessageString, toXMLNotesString
public ASTNodeValue and(java.util.List<ASTNode> nodes) throws SBMLException
and
in interface ASTNodeCompiler
and
in class FormulaCompiler
SBMLException
public ASTNodeValue eq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
eq
in interface ASTNodeCompiler
eq
in class FormulaCompiler
SBMLException
public ASTNodeValue factorial(ASTNode node)
factorial
in interface ASTNodeCompiler
factorial
in class FormulaCompiler
public ASTNodeValue geq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
geq
in interface ASTNodeCompiler
geq
in class FormulaCompiler
SBMLException
public ASTNodeValue gt(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
gt
in interface ASTNodeCompiler
gt
in class FormulaCompiler
SBMLException
public ASTNodeValue leq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
leq
in interface ASTNodeCompiler
leq
in class FormulaCompiler
SBMLException
public ASTNodeValue lt(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
lt
in interface ASTNodeCompiler
lt
in class FormulaCompiler
SBMLException
public ASTNodeValue neq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
neq
in interface ASTNodeCompiler
neq
in class FormulaCompiler
SBMLException
public ASTNodeValue not(ASTNode node) throws SBMLException
not
in interface ASTNodeCompiler
not
in class FormulaCompiler
node
- This value must be interpretable as a Boolean
.SBMLException
public ASTNodeValue or(java.util.List<ASTNode> nodes) throws SBMLException
or
in interface ASTNodeCompiler
or
in class FormulaCompiler
nodes
- These values must be interpretable as a Boolean
.SBMLException
public ASTNodeValue xor(java.util.List<ASTNode> nodes) throws SBMLException
ASTNodeCompiler
xor
in interface ASTNodeCompiler
xor
in class FormulaCompiler
nodes
- It must be possible to evaluate the given values to
Boolean
.SBMLException