org.sbml.jsbml.util.compilers
public class LaTeXCompiler extends StringTools implements ASTNodeCompiler
ASTNodeValue
objects into a LaTeX String
to be
included into scientific writings or to be displayed in a GUI.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
bottomrule
Requires LaTeX package booktabs.
|
java.lang.String |
CONSTANT_E |
java.lang.String |
CONSTANT_FALSE |
static java.lang.String |
CONSTANT_PI
The constant pi
|
java.lang.String |
CONSTANT_TRUE |
static java.lang.String |
descriptionBegin
Surrounded by new line symbols.
|
static java.lang.String |
descriptionEnd
Surrounded by new line symbols.
|
static java.lang.String |
eqBegin
Surrounded by new line symbols.
|
static java.lang.String |
eqEnd
End equation; cf.
|
static java.lang.String |
leftBrace
Left parenthesis.
|
static java.lang.String |
leftQuotationMark
An opening quotation mark.
|
static java.lang.String |
lineBreak
This is a LaTeX line break.
|
static java.lang.String |
midrule
Produces a fancy line in tables.
|
static java.lang.String |
NEGATIVE_ININITY |
static java.lang.String |
or |
static java.lang.String |
POSITIVE_INFINITY |
private boolean |
printNameIfAvailable
Important for LaTeX export to decide whether the name or the id of a
NamedSBase should be printed.
|
static java.lang.String |
rightBrace |
static java.lang.String |
rightQuotationMark
An closing quotation mark.
|
static java.lang.String |
toprule
Needed for the beginning of a table.
|
static java.lang.String |
wedge |
static java.lang.String |
xor |
DECIMAL_FORMAT, REAL_FORMAT, SCIENTIFIC_FORMAT, underscore
Constructor and Description |
---|
LaTeXCompiler()
Creates a new
LaTeXCompiler instance. |
LaTeXCompiler(boolean namesInEquations)
Creates a new
LaTeXCompiler instance. |
Modifier and Type | Method and Description |
---|---|
ASTNodeValue |
abs(ASTNode value)
The absolute value represented by the given
ASTNode . |
ASTNodeValue |
and(java.util.List<ASTNode> nodes) |
ASTNodeValue |
arccos(ASTNode value) |
ASTNodeValue |
arccosh(ASTNode value) |
ASTNodeValue |
arccot(ASTNode value) |
ASTNodeValue |
arccoth(ASTNode value) |
ASTNodeValue |
arccsc(ASTNode value) |
ASTNodeValue |
arccsch(ASTNode value) |
ASTNodeValue |
arcsec(ASTNode value) |
ASTNodeValue |
arcsech(ASTNode value) |
ASTNodeValue |
arcsin(ASTNode value) |
ASTNodeValue |
arcsinh(ASTNode value) |
ASTNodeValue |
arctan(ASTNode value) |
ASTNodeValue |
arctanh(ASTNode value) |
java.lang.StringBuilder |
brackets(java.lang.Object formula)
Encloses the given formula in brackets.
|
ASTNodeValue |
ceiling(ASTNode value) |
private java.lang.String |
checkBrackets(ASTNode node)
Creates brackets if needed.
|
java.lang.StringBuilder |
colorbox(java.lang.String color,
java.lang.Object what) |
private static java.lang.StringBuilder |
command(java.lang.String command,
java.lang.Object what) |
private static java.lang.StringBuilder |
command(java.lang.String command,
java.lang.Object first,
java.lang.Object second) |
ASTNodeValue |
compile(CallableSBase variable) |
ASTNodeValue |
compile(Compartment c)
This method returns the correct LaTeX expression for a function which
returns the size of a compartment.
|
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.
|
ASTNodeValue |
cos(ASTNode node) |
ASTNodeValue |
cosh(ASTNode node) |
ASTNodeValue |
cot(ASTNode node) |
ASTNodeValue |
coth(ASTNode node) |
ASTNodeValue |
csc(ASTNode node) |
ASTNodeValue |
csch(ASTNode node) |
ASTNodeValue |
delay(java.lang.String delayName,
ASTNode x,
ASTNode delay,
java.lang.String timeUnits)
Evaluates delay functions.
|
java.lang.StringBuffer |
descriptionItem(java.lang.String item,
java.lang.Object description)
This method simplifies the process of creating descriptions.
|
ASTNodeValue |
eq(ASTNode left,
ASTNode right)
Equal.
|
ASTNodeValue |
exp(ASTNode node) |
ASTNodeValue |
factorial(ASTNode node) |
ASTNodeValue |
floor(ASTNode value) |
java.lang.StringBuffer |
format(double value)
This method returns a
StringBuffer representing a properly
LaTeX formatted number. |
ASTNodeValue |
frac(ASTNode numerator,
ASTNode denominator)
Fraction of two
ASTNode s |
ASTNodeValue |
frac(int numerator,
int denominator)
A fraction of two int values.
|
java.lang.StringBuilder |
frac(java.lang.Object numerator,
java.lang.Object denominator) |
ASTNodeValue |
function(FunctionDefinition fun,
java.util.List<ASTNode> args) |
private java.lang.StringBuilder |
function(java.lang.String func,
ASTNode value)
Decides whether to produce brackets.
|
ASTNodeValue |
function(java.lang.String functionDefinitionName,
java.util.List<ASTNode> args) |
private java.lang.StringBuilder |
function(java.lang.String func,
java.lang.Object value)
Without brackets.
|
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() |
private java.lang.StringBuilder |
getNameOrID(NamedSBase sbase)
If the field printNameIfAvailable is false this method returns a the id
of the given SBase.
|
ASTNodeValue |
getNegativeInfinity() |
static java.lang.String |
getNumbering(long number) |
ASTNodeValue |
getPositiveInfinity() |
ASTNodeValue |
gt(ASTNode left,
ASTNode right)
Greater than.
|
private static java.lang.StringBuffer |
heading(java.lang.String kind,
java.lang.String title,
boolean numbering)
Creates head lines.
|
java.lang.StringBuilder |
href(java.lang.String target,
java.lang.Object text)
Creates a hyper link to the given target and the text to be visible in
the document.
|
java.lang.StringBuilder |
hyperref(java.lang.String target,
java.lang.Object text) |
boolean |
isPrintNameIfAvailable() |
java.lang.StringBuilder |
label(java.lang.String id) |
ASTNodeValue |
lambda(java.util.List<ASTNode> nodes)
The body of a
FunctionDefinition . |
ASTNodeValue |
leq(ASTNode left,
ASTNode right)
Less equal.
|
ASTNodeValue |
ln(ASTNode node)
Natural logarithm.
|
ASTNodeValue |
log(ASTNode node)
Logarithm of the given value to base 10.
|
ASTNodeValue |
log(ASTNode base,
ASTNode value)
Logarithm of the given value to the given base.
|
private ASTNodeValue |
logicalOperation(java.lang.String symbol,
java.util.List<ASTNode> values) |
java.lang.StringBuffer |
longtableHead(java.lang.String columnDef,
java.lang.String caption,
java.lang.String headLine)
Creates a head for a longtable in LaTeX.
|
ASTNodeValue |
lt(ASTNode left,
ASTNode right)
Less than.
|
static java.lang.String |
maskSpecialChars(java.lang.String string)
Masks all special characters used by LaTeX with a backslash including
hyphen symbols.
|
static java.lang.String |
maskSpecialChars(java.lang.String string,
boolean hyphen) |
java.lang.StringBuffer |
math(java.lang.Object formula)
Encloses the given formula in dollar symbols (inline math mode).
|
java.lang.StringBuilder |
mathrm(char symbol) |
java.lang.StringBuilder |
mathrm(java.lang.String text) |
java.lang.StringBuilder |
mathtext(java.lang.String text) |
java.lang.StringBuilder |
mathtt(java.lang.String id)
Returns the LaTeX code to set the given String in type writer font within
a math environment.
|
java.lang.StringBuilder |
mbox(java.lang.String s) |
ASTNodeValue |
minus(java.util.List<ASTNode> nodes)
Subtraction.
|
ASTNodeValue |
neq(ASTNode left,
ASTNode right)
Not equal.
|
ASTNodeValue |
not(ASTNode node) |
ASTNodeValue |
or(java.util.List<ASTNode> nodes) |
ASTNodeValue |
piecewise(java.util.List<ASTNode> nodes) |
ASTNodeValue |
plus(java.util.List<ASTNode> nodes) |
ASTNodeValue |
pow(ASTNode base,
ASTNode exponent) |
private java.lang.StringBuilder |
relation(ASTNode left,
java.lang.String relationSymbol,
ASTNode right)
Creates a relation between two
ASTNode s. |
ASTNodeValue |
root(ASTNode rootExponent,
ASTNode value) |
ASTNodeValue |
root(double rootExponent,
ASTNode radiant) |
ASTNodeValue |
sec(ASTNode node) |
ASTNodeValue |
sech(ASTNode node) |
java.lang.StringBuffer |
section(java.lang.String title,
boolean numbering) |
ASTNodeValue |
selector(java.util.List<ASTNode> nodes) |
void |
setPrintNameIfAvailable(boolean printNameIfAvailable) |
ASTNodeValue |
sin(ASTNode node) |
ASTNodeValue |
sinh(ASTNode node) |
ASTNodeValue |
sqrt(ASTNode value)
Square root.
|
java.lang.StringBuffer |
subsection(java.lang.String title,
boolean numbering) |
java.lang.StringBuffer |
subsubsection(java.lang.String title,
boolean numbering) |
ASTNodeValue |
symbolTime(java.lang.String time)
The simulation time.
|
ASTNodeValue |
tan(ASTNode node) |
ASTNodeValue |
tanh(ASTNode node) |
java.lang.StringBuilder |
textcolor(java.lang.String color,
java.lang.Object text) |
java.lang.StringBuilder |
texttt(java.lang.String id)
Returns the LaTeX code to set the given String in type writer font.
|
java.lang.String |
timeDerivative(java.lang.String variable) |
ASTNodeValue |
times(java.util.List<ASTNode> values)
Product of all given
ASTNode s. |
ASTNodeValue |
uMinus(ASTNode value)
Unary minus, i.e., negation of the given
ASTNode . |
ASTNodeValue |
unknownValue()
Dealing with a malformed
ASTNode . |
java.lang.StringBuffer |
usepackage(java.lang.String latexPackage,
java.lang.String... options)
Creates a usepackage command for the given package with the optional
options.
|
ASTNodeValue |
vector(java.util.List<ASTNode> nodes)
Dealing with a vector.
|
ASTNodeValue |
xor(java.util.List<ASTNode> 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
public static final java.lang.String bottomrule
end{longtable}
command and a new line.public static final java.lang.String CONSTANT_PI
public static final java.lang.String descriptionBegin
public static final java.lang.String descriptionEnd
public static final java.lang.String eqBegin
public static final java.lang.String eqEnd
public static final java.lang.String leftBrace
public static final java.lang.String leftQuotationMark
public static final java.lang.String lineBreak
public static final java.lang.String midrule
public static final java.lang.String NEGATIVE_ININITY
public static final java.lang.String or
public static final java.lang.String POSITIVE_INFINITY
public static final java.lang.String rightBrace
public static final java.lang.String rightQuotationMark
public static final java.lang.String toprule
public static final java.lang.String wedge
public static final java.lang.String xor
public final java.lang.String CONSTANT_E
public final java.lang.String CONSTANT_FALSE
public final java.lang.String CONSTANT_TRUE
private boolean printNameIfAvailable
public LaTeXCompiler()
LaTeXCompiler
instance.public LaTeXCompiler(boolean namesInEquations)
LaTeXCompiler
instance.namesInEquations
- private static java.lang.StringBuilder command(java.lang.String command, java.lang.Object what)
command
- what
- private static java.lang.StringBuilder command(java.lang.String command, java.lang.Object first, java.lang.Object second)
command
- first
- second
- public static java.lang.String getNumbering(long number)
number
- private static java.lang.StringBuffer heading(java.lang.String kind, java.lang.String title, boolean numbering)
kind
- E.g., section, subsection, subsubsection, paragraph etc.title
- The title of the heading.numbering
- If true a number will be placed in front of the title.public static java.lang.String maskSpecialChars(java.lang.String string)
string
- public static java.lang.String maskSpecialChars(java.lang.String string, boolean hyphen)
string
- hyphen
- if true a hyphen symbol is introduced at each position where a
special character has to be masked anyway.public ASTNodeValue abs(ASTNode value) throws SBMLException
ASTNodeCompiler
ASTNode
.abs
in interface ASTNodeCompiler
value
- Must be interpretable as a Number
.SBMLException
public ASTNodeValue and(java.util.List<ASTNode> nodes) throws SBMLException
and
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arccos(ASTNode value) throws SBMLException
arccos
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arccosh(ASTNode value) throws SBMLException
arccosh
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arccot(ASTNode value) throws SBMLException
arccot
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arccoth(ASTNode value) throws SBMLException
arccoth
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arccsc(ASTNode value) throws SBMLException
arccsc
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arccsch(ASTNode value) throws SBMLException
arccsch
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arcsec(ASTNode value) throws SBMLException
arcsec
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arcsech(ASTNode value) throws SBMLException
arcsech
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arcsin(ASTNode value) throws SBMLException
arcsin
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arcsinh(ASTNode value) throws SBMLException
arcsinh
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arctan(ASTNode value) throws SBMLException
arctan
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue arctanh(ASTNode value) throws SBMLException
arctanh
in interface ASTNodeCompiler
SBMLException
public java.lang.StringBuilder brackets(java.lang.Object formula)
formula
- private java.lang.String checkBrackets(ASTNode node) throws SBMLException
nodes
- SBMLException
public ASTNodeValue ceiling(ASTNode value) throws SBMLException
ceiling
in interface ASTNodeCompiler
SBMLException
public java.lang.StringBuilder colorbox(java.lang.String color, java.lang.Object what)
color
- what
- 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)
compile
in interface ASTNodeCompiler
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
public ASTNodeValue cos(ASTNode node) throws SBMLException
cos
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue cosh(ASTNode node) throws SBMLException
cosh
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue cot(ASTNode node) throws SBMLException
cot
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue coth(ASTNode node) throws SBMLException
coth
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue csc(ASTNode node) throws SBMLException
csc
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue csch(ASTNode node) throws SBMLException
csch
in interface ASTNodeCompiler
SBMLException
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 java.lang.StringBuffer descriptionItem(java.lang.String item, java.lang.Object description)
item
- e.g., "my item"description
- e.g., "my description"public ASTNodeValue eq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
eq
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue exp(ASTNode node) throws SBMLException
exp
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue factorial(ASTNode node) throws SBMLException
factorial
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue floor(ASTNode value) throws SBMLException
floor
in interface ASTNodeCompiler
SBMLException
public java.lang.StringBuffer format(double value)
StringBuffer
representing a properly
LaTeX formatted number.value
- public ASTNodeValue frac(ASTNode numerator, ASTNode denominator) throws SBMLException
ASTNodeCompiler
ASTNode
sfrac
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue frac(int numerator, int denominator)
ASTNodeCompiler
frac
in interface ASTNodeCompiler
public java.lang.StringBuilder frac(java.lang.Object numerator, java.lang.Object denominator)
numerator
- denominator
- public ASTNodeValue function(FunctionDefinition fun, 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
private java.lang.StringBuilder function(java.lang.String func, ASTNode value) throws SBMLException
func
- value
- SBMLException
private java.lang.StringBuilder function(java.lang.String func, java.lang.Object value)
func
- value
- 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
private java.lang.StringBuilder getNameOrID(NamedSBase sbase)
sbase
- the SBase, whose name or id is to be returned.mathMode
- if true this method returns the name typesetted in mathmode,
i.e., mathrm for names and mathtt for ids, otherwise texttt
will be used for ids and normalfont (nothing) will be used for
names.public ASTNodeValue getNegativeInfinity()
getNegativeInfinity
in interface ASTNodeCompiler
public ASTNodeValue getPositiveInfinity()
getPositiveInfinity
in interface ASTNodeCompiler
public ASTNodeValue gt(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
gt
in interface ASTNodeCompiler
SBMLException
public java.lang.StringBuilder href(java.lang.String target, java.lang.Object text)
target
- The target to which this link points to.text
- The text to be written in the link.public java.lang.StringBuilder hyperref(java.lang.String target, java.lang.Object text)
target
- text
- public boolean isPrintNameIfAvailable()
public java.lang.StringBuilder label(java.lang.String id)
public ASTNodeValue lambda(java.util.List<ASTNode> nodes) throws SBMLException
ASTNodeCompiler
FunctionDefinition
.lambda
in interface ASTNodeCompiler
nodes
- Place holders for arguments.SBMLException
public ASTNodeValue leq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
leq
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue ln(ASTNode node) throws SBMLException
ASTNodeCompiler
ln
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue log(ASTNode node) throws SBMLException
ASTNodeCompiler
log
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue log(ASTNode base, ASTNode value) throws SBMLException
ASTNodeCompiler
log
in interface ASTNodeCompiler
SBMLException
private ASTNodeValue logicalOperation(java.lang.String symbol, java.util.List<ASTNode> values) throws SBMLException
symbol
- values
- SBMLException
public java.lang.StringBuffer longtableHead(java.lang.String columnDef, java.lang.String caption, java.lang.String headLine)
columnDef
- without leading and ending brackets, e.g., "lrrc",caption
- caption of this table without leading and ending bracketsheadLine
- table head without leading and ending brackets and without
double backslashes at the endpublic ASTNodeValue lt(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
lt
in interface ASTNodeCompiler
SBMLException
public java.lang.StringBuffer math(java.lang.Object formula)
formula
- public java.lang.StringBuilder mathrm(char symbol)
symbol
- public java.lang.StringBuilder mathrm(java.lang.String text)
text
- public java.lang.StringBuilder mathtext(java.lang.String text)
text
- public java.lang.StringBuilder mathtt(java.lang.String id)
id
- public java.lang.StringBuilder mbox(java.lang.String s)
s
- public ASTNodeValue minus(java.util.List<ASTNode> nodes) throws SBMLException
ASTNodeCompiler
minus
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue neq(ASTNode left, ASTNode right) throws SBMLException
ASTNodeCompiler
neq
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue not(ASTNode node) throws SBMLException
not
in interface ASTNodeCompiler
node
- This value must be interpretable as a Boolean
.SBMLException
public ASTNodeValue or(java.util.List<ASTNode> nodes) throws SBMLException
or
in interface ASTNodeCompiler
nodes
- These values must be interpretable as a Boolean
.SBMLException
public ASTNodeValue piecewise(java.util.List<ASTNode> nodes) throws SBMLException
piecewise
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue plus(java.util.List<ASTNode> nodes) throws SBMLException
plus
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue pow(ASTNode base, ASTNode exponent) throws SBMLException
pow
in interface ASTNodeCompiler
SBMLException
private java.lang.StringBuilder relation(ASTNode left, java.lang.String relationSymbol, ASTNode right) throws SBMLException
ASTNode
s.left
- relationSymbol
- right
- SBMLException
public ASTNodeValue root(ASTNode rootExponent, ASTNode value) 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 node) throws SBMLException
sec
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue sech(ASTNode node) throws SBMLException
sech
in interface ASTNodeCompiler
SBMLException
public java.lang.StringBuffer section(java.lang.String title, boolean numbering)
title
- numbering
- public void setPrintNameIfAvailable(boolean printNameIfAvailable)
printNameIfAvailable
- public ASTNodeValue sin(ASTNode node) throws SBMLException
sin
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue sinh(ASTNode node) throws SBMLException
sinh
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue sqrt(ASTNode value) throws SBMLException
ASTNodeCompiler
sqrt
in interface ASTNodeCompiler
value
- This value must be interpretable as a Number
.SBMLException
public java.lang.StringBuffer subsection(java.lang.String title, boolean numbering)
title
- numbering
- public java.lang.StringBuffer subsubsection(java.lang.String title, boolean numbering)
title
- numbering
- 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 node) throws SBMLException
tan
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue tanh(ASTNode node) throws SBMLException
tanh
in interface ASTNodeCompiler
SBMLException
public java.lang.StringBuilder textcolor(java.lang.String color, java.lang.Object text)
color
- text
- public java.lang.StringBuilder texttt(java.lang.String id)
id
- public java.lang.String timeDerivative(java.lang.String variable)
variable
- 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
public ASTNodeValue uMinus(ASTNode value) throws SBMLException
ASTNodeCompiler
ASTNode
.uMinus
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue unknownValue()
ASTNodeCompiler
ASTNode
.unknownValue
in interface ASTNodeCompiler
public java.lang.StringBuffer usepackage(java.lang.String latexPackage, java.lang.String... options)
latexPackage
- the name of the latex packageoptions
- options without commaspublic ASTNodeValue xor(java.util.List<ASTNode> nodes) throws SBMLException
ASTNodeCompiler
xor
in interface ASTNodeCompiler
nodes
- It must be possible to evaluate the given values to
Boolean
.SBMLException
public ASTNodeValue selector(java.util.List<ASTNode> nodes) throws SBMLException
selector
in interface ASTNodeCompiler
SBMLException
public ASTNodeValue vector(java.util.List<ASTNode> nodes) throws SBMLException
ASTNodeCompiler
vector
in interface ASTNodeCompiler
SBMLException