ASTNodeCompiler
public class ConfigurableLogicalFormulaCompiler extends FormulaCompilerLibSBML
String
s that represent the content of ASTNode
s and try to reproduce an output similar to old COBRA SBML files.
"and" and "or" are configurable. This is the only difference between this compiler and the FormulaCompilerLibSBML
.
DECIMAL_FORMAT, REAL_FORMAT, SCIENTIFIC_FORMAT, underscore
Constructor | Description |
---|---|
ConfigurableLogicalFormulaCompiler() |
Modifier and Type | Method | Description |
---|---|---|
ASTNodeValue |
and(java.util.List<ASTNode> nodes) |
|
java.lang.String |
getAndReplacement() |
Gets the String that will be used to replace ' and ' (the mathML
<and> element) in the boolean expressions.
|
java.lang.String |
getOrReplacement() |
Gets the String that will be used to replace ' or ' (the mathML
<or> element) in the boolean expressions.
|
ASTNodeValue |
or(java.util.List<ASTNode> nodes) |
|
void |
setAndReplacement(java.lang.String andReplacement) |
Sets the
String that will be used to replace ' and ' (the mathML
<and> element) in the boolean expressions. |
void |
setOrReplacement(java.lang.String orReplacement) |
Sets the
String that will be used to replace ' or ' (the mathML
<or> element) in the boolean expressions. |
abs, arccos, arccosh, arccot, arccoth, arccsc, arccsch, arcsec, arcsech, arcsin, arcsinh, arctan, arctanh, brackets, ceiling, compile, compile, compile, compile, compile, compile, cos, cosh, cot, coth, csc, csch, delay, diff, exp, floor, frac, frac, frac, function, function, functionCsymbol, getConstantAvogadro, getConstantE, getConstantFalse, getConstantPi, getConstantTrue, getNegativeInfinity, getPositiveInfinity, getRateOf, implies, lambda, ln, log, log, max, min, minus, not, piecewise, plus, pow, pow, quotient, rem, root, root, root, sec, sech, selector, sin, sinh, sqrt, sqrt, sum, symbolTime, tan, tanh, times, times, uMinus, unknownValue, vector
eq, factorial, geq, gt, leq, lt, neq, xor
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, append, concat, concatStringBuilder, encodeForHTML, fill, fill, firstLetterLowerCase, firstLetterUpperCase, getMessage, getWordForNumber, leadingZeros, newLine, parseSBMLBoolean, parseSBMLBooleanStrict, parseSBMLDouble, parseSBMLDoubleStrict, parseSBMLInt, parseSBMLShort, parseSBMLShortStrict, toHTML, toHTML, toString, toString, toXMLAnnotationString, toXMLMessageString, toXMLNotesString
public ASTNodeValue and(java.util.List<ASTNode> nodes) throws SBMLException
and
in interface ASTNodeCompiler
and
in class FormulaCompilerLibSBML
SBMLException
public ASTNodeValue or(java.util.List<ASTNode> nodes) throws SBMLException
or
in interface ASTNodeCompiler
or
in class FormulaCompilerLibSBML
nodes
- These values must be interpretable as a Boolean
.SBMLException
public java.lang.String getAndReplacement()
String
that will be used to replace ' and ' (the
mathML <and> element) in the boolean expressions.public void setAndReplacement(java.lang.String andReplacement)
String
that will be used to replace ' and ' (the mathML
<and> element) in the boolean expressions. The default value used
is ' & '. If null is given, no replacement will be performed.andReplacement
- public java.lang.String getOrReplacement()
String
that will be used to replace ' or ' (the
mathML <or> element) in the boolean expressions.public void setOrReplacement(java.lang.String orReplacement)
String
that will be used to replace ' or ' (the mathML
<or> element) in the boolean expressions. The default value is '
| '. If null is given, no replacement will be performed.orReplacement
-