ASTNodeCompiler
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 | 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. eqBegin.
|
static java.lang.String |
implies |
|
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 |
|
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 | Description |
---|---|
LaTeXCompiler() |
Creates a new
LaTeXCompiler instance. |
LaTeXCompiler(boolean namesInEquations) |
Creates a new
LaTeXCompiler instance. |
Modifier and Type | Method | 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) |
|
java.lang.StringBuilder |
colorbox(java.lang.String color,
java.lang.Object what) |
|
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 |
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 |
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(int numerator,
int denominator) |
A fraction of two int values.
|
java.lang.StringBuilder |
frac(java.lang.Object numerator,
java.lang.Object denominator) |
|
ASTNodeValue |
frac(ASTNode numerator,
ASTNode denominator) |
Fraction of two
ASTNode s |
ASTNodeValue |
function(java.lang.String functionDefinitionName,
java.util.List<ASTNode> args) |
|
ASTNodeValue |
function(FunctionDefinition fun,
java.util.List<ASTNode> args) |
|
ASTNodeValue |
functionCsymbol(ASTNode csymbol) |
Process an ASTNode that contain an extended csymbol function.
|
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() |
|
static java.lang.String |
getNumbering(long number) |
|
ASTNodeValue |
getPositiveInfinity() |
|
ASTNodeValue |
getRateOf(ASTNode nameAST) |
Returns the instantaneous rate of change, with respect to time, of an entity in the model.
|
ASTNodeValue |
gt(ASTNode left,
ASTNode right) |
Greater than.
|
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) |
|
ASTNodeValue |
implies(java.util.List<ASTNode> values) |
Returns the logical implies between two
ASTNode . |
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.
|
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.
|
ASTNodeValue |
max(java.util.List<ASTNode> values) |
Returns the maximum of the values.
|
java.lang.StringBuilder |
mbox(java.lang.String s) |
|
ASTNodeValue |
min(java.util.List<ASTNode> values) |
Returns the minimum of the values.
|
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) |
|
ASTNodeValue |
quotient(java.util.List<ASTNode> values) |
Returns the quotient of the division of the values.
|
ASTNodeValue |
rem(java.util.List<ASTNode> values) |
Returns the remainder of the division of the values.
|
ASTNodeValue |
root(double rootExponent,
ASTNode radiant) |
|
ASTNodeValue |
root(ASTNode rootExponent,
ASTNode value) |
|
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.
|
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 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 static final java.lang.String implies
public final java.lang.String CONSTANT_E
public final java.lang.String CONSTANT_FALSE
public final java.lang.String CONSTANT_TRUE
public LaTeXCompiler()
LaTeXCompiler
instance.public LaTeXCompiler(boolean namesInEquations)
LaTeXCompiler
instance.namesInEquations
- public static java.lang.String getNumbering(long number)
number
- 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
- 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
public ASTNodeValue functionCsymbol(ASTNode csymbol) throws SBMLException
ASTNodeCompiler
functionCsymbol
in interface ASTNodeCompiler
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()
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)
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
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
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
public ASTNodeValue max(java.util.List<ASTNode> values)
ASTNodeCompiler
max
in interface ASTNodeCompiler
public ASTNodeValue min(java.util.List<ASTNode> values)
ASTNodeCompiler
min
in interface ASTNodeCompiler
public ASTNodeValue quotient(java.util.List<ASTNode> values)
ASTNodeCompiler
quotient
in interface ASTNodeCompiler
public ASTNodeValue rem(java.util.List<ASTNode> values)
ASTNodeCompiler
rem
in interface ASTNodeCompiler
public ASTNodeValue implies(java.util.List<ASTNode> values)
ASTNodeCompiler
implies
in interface ASTNodeCompiler
ASTNode
.public ASTNodeValue getRateOf(ASTNode nameAST)
ASTNodeCompiler
It is a function that takes a single argument, an identifier of
type SId . The allowable identifiers for use with rateOf in SBML Level 3 Version 2 Core are restricted
to those of Compartment
, LocalParameter
, Parameter
, Species
, and SpeciesReference
objects in the
enclosing model; in addition, SBML Level 3 packages may define entities with mathematical meaning
whose rateOf 's can be referenced. Note that rateOf is not allowed for Reaction
objects, because their
identifiers already represent the rate of change of the reaction, and calculating second derivatives is
beyond the scope of this construct. Likewise, there is no sensible meaning to be given to the rateOf of
a FunctionDefinition, Event, Priority, Delay, or other SBML entities.
getRateOf
in interface ASTNodeCompiler
nameAST
- an ASTNode representing an identifier