public class LaTeXCompiler extends StringTools implements ASTNode2Compiler
ASTNode2Value
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() |
LaTeXCompiler(boolean namesInEquations) |
Modifier and Type | Method and Description |
---|---|
<T> ASTNode2Value<java.lang.String> |
abs(ASTNode2 value)
The absolute value represented by the given
ASTNode2 . |
<T> ASTNode2Value<java.lang.String> |
and(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
arccos(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arccosh(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arccot(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arccoth(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arccsc(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arccsch(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arcsec(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arcsech(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arcsin(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arcsinh(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arctan(ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
arctanh(ASTNode2 value) |
java.lang.StringBuilder |
brackets(java.lang.Object formula)
Encloses the given formula in brackets.
|
<T> ASTNode2Value<java.lang.String> |
ceiling(ASTNode2 value) |
private java.lang.String |
checkBrackets(ASTNode2 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) |
<T> ASTNode2Value<java.lang.String> |
compile(CallableSBase variable) |
<T> ASTNode2Value<java.lang.String> |
compile(Compartment c)
This method returns the correct LaTeX expression for a function which
returns the size of a compartment.
|
<T> ASTNode2Value<java.lang.String> |
compile(double mantissa,
int exponent,
java.lang.String units)
Creates an
ASTNode2Value that represents a real number in
scientific notation, i.e., mantissa * 10^exponent, and the given units. |
<T> ASTNode2Value<java.lang.String> |
compile(double real,
java.lang.String units) |
<T> ASTNode2Value<java.lang.Integer> |
compile(int integer,
java.lang.String units) |
<T> ASTNode2Value<java.lang.String> |
compile(java.lang.String name)
A compiler will also have to deal with a name.
|
<T> ASTNode2Value<java.lang.String> |
cos(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
cosh(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
cot(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
coth(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
csc(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
csch(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
delay(java.lang.String delayName,
ASTNode2 x,
ASTNode2 delay)
Evaluates delay functions.
|
java.lang.StringBuffer |
descriptionItem(java.lang.String item,
java.lang.Object description)
This method simplifies the process of creating descriptions.
|
<T> ASTNode2Value<java.lang.String> |
eq(ASTNode2 left,
ASTNode2 right)
Equal.
|
<T> ASTNode2Value<java.lang.String> |
exp(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
factorial(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
floor(ASTNode2 value) |
java.lang.StringBuffer |
format(double value)
This method returns a
StringBuffer representing a properly
LaTeX formatted number. |
<T> ASTNode2Value<java.lang.String> |
frac(ASTNode2 numerator,
ASTNode2 denominator)
Fraction of two
ASTNode2 s |
<T> ASTNode2Value<java.lang.String> |
frac(int numerator,
int denominator)
A fraction of two int values.
|
java.lang.StringBuilder |
frac(java.lang.Object numerator,
java.lang.Object denominator) |
<T> ASTNode2Value<java.lang.String> |
function(FunctionDefinition fun,
java.util.List<ASTNode2> args) |
private java.lang.StringBuilder |
function(java.lang.String func,
ASTNode2 value)
Decides whether to produce brackets.
|
<T> ASTNode2Value<java.lang.String> |
function(java.lang.String functionDefinitionName,
java.util.List<ASTNode2> args) |
private java.lang.StringBuilder |
function(java.lang.String func,
java.lang.Object value)
Without brackets.
|
<T> ASTNode2Value<java.lang.String> |
function(T functionDefinitionName,
java.util.List<ASTNode2> args) |
<T> ASTNode2Value<java.lang.String> |
geq(ASTNode2 left,
ASTNode2 right)
Greater equal.
|
<T> ASTNode2Value<java.lang.String> |
getConstantAvogadro(java.lang.String name)
Creates an
ASTNode2Value that represent's Avogadro's number. |
<T> ASTNode2Value<java.lang.String> |
getConstantE() |
<T> ASTNode2Value<java.lang.String> |
getConstantFalse() |
<T> ASTNode2Value<java.lang.String> |
getConstantPi() |
<T> ASTNode2Value<java.lang.String> |
getConstantTrue() |
private java.lang.StringBuilder |
getNameOrID(NamedSBase sbase)
If the field printNameIfAvailable is false this method returns a the id
of the given SBase.
|
<T> ASTNode2Value<java.lang.String> |
getNegativeInfinity() |
static java.lang.String |
getNumbering(long number) |
<T> ASTNode2Value<java.lang.String> |
getPositiveInfinity() |
<T> ASTNode2Value<java.lang.String> |
gt(ASTNode2 left,
ASTNode2 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) |
<T> ASTNode2Value<java.lang.String> |
lambda(java.util.List<ASTNode2> nodes)
The body of a
FunctionDefinition . |
<T> ASTNode2Value<java.lang.String> |
leq(ASTNode2 left,
ASTNode2 right)
Less equal.
|
<T> ASTNode2Value<java.lang.String> |
ln(ASTNode2 node)
Natural logarithm.
|
<T> ASTNode2Value<java.lang.String> |
log(ASTNode2 node)
Logarithm of the given value to base 10.
|
<T> ASTNode2Value<java.lang.String> |
log(ASTNode2 base,
ASTNode2 value)
Logarithm of the given value to the given base.
|
private <T> ASTNode2Value<java.lang.String> |
logicalOperation(java.lang.String symbol,
java.util.List<ASTNode2> 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.
|
<T> ASTNode2Value<java.lang.String> |
lt(ASTNode2 left,
ASTNode2 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) |
<T> ASTNode2Value<java.lang.String> |
minus(java.util.List<ASTNode2> nodes)
Subtraction.
|
<T> ASTNode2Value<java.lang.String> |
neq(ASTNode2 left,
ASTNode2 right)
Not equal.
|
<T> ASTNode2Value<java.lang.String> |
not(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
or(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
piecewise(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
plus(java.util.List<ASTNode2> nodes) |
<T> ASTNode2Value<java.lang.String> |
pow(ASTNode2 base,
ASTNode2 exponent) |
private java.lang.StringBuilder |
relation(ASTNode2 left,
java.lang.String relationSymbol,
ASTNode2 right)
Creates a relation between two
ASTNode2 s. |
<T> ASTNode2Value<java.lang.String> |
root(ASTNode2 rootExponent,
ASTNode2 value) |
<T> ASTNode2Value<java.lang.String> |
root(double rootExponent,
ASTNode2 radiant) |
<T> ASTNode2Value<java.lang.String> |
sec(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
sech(ASTNode2 node) |
java.lang.StringBuffer |
section(java.lang.String title,
boolean numbering) |
<T> ASTNode2Value<java.lang.String> |
selector(java.util.List<ASTNode2> nodes) |
void |
setPrintNameIfAvailable(boolean printNameIfAvailable) |
<T> ASTNode2Value<java.lang.String> |
sin(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
sinh(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
sqrt(ASTNode2 value)
Square root.
|
java.lang.StringBuffer |
subsection(java.lang.String title,
boolean numbering) |
java.lang.StringBuffer |
subsubsection(java.lang.String title,
boolean numbering) |
<T> ASTNode2Value<java.lang.String> |
symbolTime(java.lang.String time)
The simulation time.
|
<T> ASTNode2Value<java.lang.String> |
tan(ASTNode2 node) |
<T> ASTNode2Value<java.lang.String> |
tanh(ASTNode2 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) |
<T> ASTNode2Value<java.lang.String> |
times(java.util.List<ASTNode2> values)
Product of all given
ASTNode2 s. |
<T> ASTNode2Value<java.lang.String> |
uMinus(ASTNode2 value)
Unary minus, i.e., negation of the given
ASTNode2 . |
<T> ASTNode2Value<java.lang.String> |
unknownValue()
Dealing with a malformed
ASTNode2 . |
java.lang.StringBuffer |
usepackage(java.lang.String latexPackage,
java.lang.String... options)
Creates a usepackage command for the given package with the optional
options.
|
<T> ASTNode2Value<java.lang.String> |
vector(java.util.List<ASTNode2> nodes)
Dealing with a vector.
|
<T> ASTNode2Value<java.lang.String> |
xor(java.util.List<ASTNode2> 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()
public LaTeXCompiler(boolean namesInEquations)
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 <T> ASTNode2Value<java.lang.String> abs(ASTNode2 value) throws SBMLException
ASTNode2Compiler
ASTNode2
.abs
in interface ASTNode2Compiler
value
- Must be interpretable as a Number
.SBMLException
public <T> ASTNode2Value<java.lang.String> and(java.util.List<ASTNode2> nodes) throws SBMLException
and
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccos(ASTNode2 value) throws SBMLException
arccos
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccosh(ASTNode2 value) throws SBMLException
arccosh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccot(ASTNode2 value) throws SBMLException
arccot
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccoth(ASTNode2 value) throws SBMLException
arccoth
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccsc(ASTNode2 value) throws SBMLException
arccsc
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arccsch(ASTNode2 value) throws SBMLException
arccsch
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsec(ASTNode2 value) throws SBMLException
arcsec
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsech(ASTNode2 value) throws SBMLException
arcsech
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsin(ASTNode2 value) throws SBMLException
arcsin
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arcsinh(ASTNode2 value) throws SBMLException
arcsinh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arctan(ASTNode2 value) throws SBMLException
arctan
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> arctanh(ASTNode2 value) throws SBMLException
arctanh
in interface ASTNode2Compiler
SBMLException
public java.lang.StringBuilder brackets(java.lang.Object formula)
formula
- public <T> ASTNode2Value<java.lang.String> ceiling(ASTNode2 value) throws SBMLException
ceiling
in interface ASTNode2Compiler
SBMLException
private java.lang.String checkBrackets(ASTNode2 node) throws SBMLException
node
- SBMLException
public java.lang.StringBuilder colorbox(java.lang.String color, java.lang.Object what)
color
- what
- public <T> ASTNode2Value<java.lang.String> compile(CallableSBase variable)
compile
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> compile(Compartment c)
compile
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> compile(double mantissa, int exponent, java.lang.String units)
ASTNode2Compiler
ASTNode2Value
that represents a real number in
scientific notation, i.e., mantissa * 10^exponent, and the given units.compile
in interface ASTNode2Compiler
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 <T> ASTNode2Value<java.lang.String> compile(double real, java.lang.String units)
compile
in interface ASTNode2Compiler
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 <T> ASTNode2Value<java.lang.Integer> compile(int integer, java.lang.String units)
compile
in interface ASTNode2Compiler
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 <T> ASTNode2Value<java.lang.String> compile(java.lang.String name)
ASTNode2Compiler
Species
in the
system. In case of numerical computation, the ASTNodeCompiler
must create an ASTNode2Value
representing the current value of
this Species
.compile
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> cos(ASTNode2 node) throws SBMLException
cos
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> cosh(ASTNode2 node) throws SBMLException
cosh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> cot(ASTNode2 node) throws SBMLException
cot
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> coth(ASTNode2 node) throws SBMLException
coth
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> csc(ASTNode2 node) throws SBMLException
csc
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> csch(ASTNode2 node) throws SBMLException
csch
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> delay(java.lang.String delayName, ASTNode2 x, ASTNode2 delay) throws SBMLException
ASTNode2Compiler
delay
in interface ASTNode2Compiler
delayName
- the name of this delay function.delay
- an expression of a positive duration time (the amoutn of
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 <T> ASTNode2Value<java.lang.String> eq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
eq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> exp(ASTNode2 node) throws SBMLException
exp
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> factorial(ASTNode2 node) throws SBMLException
factorial
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> floor(ASTNode2 value) throws SBMLException
floor
in interface ASTNode2Compiler
SBMLException
public java.lang.StringBuffer format(double value)
StringBuffer
representing a properly
LaTeX formatted number.value
- public <T> ASTNode2Value<java.lang.String> frac(ASTNode2 numerator, ASTNode2 denominator) throws SBMLException
ASTNode2Compiler
ASTNode2
sfrac
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> frac(int numerator, int denominator)
ASTNode2Compiler
frac
in interface ASTNode2Compiler
public java.lang.StringBuilder frac(java.lang.Object numerator, java.lang.Object denominator)
numerator
- denominator
- public <T> ASTNode2Value<java.lang.String> function(FunctionDefinition fun, java.util.List<ASTNode2> args) throws SBMLException
function
in interface ASTNode2Compiler
args
- Values to be inserted into the parameter list of the
function.SBMLException
private java.lang.StringBuilder function(java.lang.String func, ASTNode2 value) throws SBMLException
func
- value
- SBMLException
public <T> ASTNode2Value<java.lang.String> function(java.lang.String functionDefinitionName, java.util.List<ASTNode2> args) throws SBMLException
function
in interface ASTNode2Compiler
SBMLException
private java.lang.StringBuilder function(java.lang.String func, java.lang.Object value)
func
- value
- public <T> ASTNode2Value<java.lang.String> function(T functionDefinitionName, java.util.List<ASTNode2> args) throws SBMLException
function
in interface ASTNode2Compiler
args
- Values to be inserted into the parameter list of the
function.SBMLException
public <T> ASTNode2Value<java.lang.String> geq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
geq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> getConstantAvogadro(java.lang.String name)
ASTNode2Compiler
ASTNode2Value
that represent's Avogadro's number.
Optionally, the compiler may associate the given name with this number.getConstantAvogadro
in interface ASTNode2Compiler
name
- An optional name for Avogadro's number.public <T> ASTNode2Value<java.lang.String> getConstantE()
getConstantE
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getConstantFalse()
getConstantFalse
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getConstantPi()
getConstantPi
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getConstantTrue()
getConstantTrue
in interface ASTNode2Compiler
private java.lang.StringBuilder getNameOrID(NamedSBase sbase)
sbase
- the SBase, whose name or id is to be returned.public <T> ASTNode2Value<java.lang.String> getNegativeInfinity()
getNegativeInfinity
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> getPositiveInfinity()
getPositiveInfinity
in interface ASTNode2Compiler
public <T> ASTNode2Value<java.lang.String> gt(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
gt
in interface ASTNode2Compiler
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 <T> ASTNode2Value<java.lang.String> lambda(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
FunctionDefinition
.lambda
in interface ASTNode2Compiler
nodes
- Place holders for arguments.SBMLException
public <T> ASTNode2Value<java.lang.String> leq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
leq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> ln(ASTNode2 node) throws SBMLException
ASTNode2Compiler
ln
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> log(ASTNode2 node) throws SBMLException
ASTNode2Compiler
log
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> log(ASTNode2 base, ASTNode2 value) throws SBMLException
ASTNode2Compiler
log
in interface ASTNode2Compiler
SBMLException
private <T> ASTNode2Value<java.lang.String> logicalOperation(java.lang.String symbol, java.util.List<ASTNode2> 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 <T> ASTNode2Value<java.lang.String> lt(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
lt
in interface ASTNode2Compiler
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 <T> ASTNode2Value<java.lang.String> minus(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
minus
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> neq(ASTNode2 left, ASTNode2 right) throws SBMLException
ASTNode2Compiler
neq
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> not(ASTNode2 node) throws SBMLException
not
in interface ASTNode2Compiler
node
- This value must be interpretable as a Boolean
.SBMLException
public <T> ASTNode2Value<java.lang.String> or(java.util.List<ASTNode2> nodes) throws SBMLException
or
in interface ASTNode2Compiler
nodes
- These values must be interpretable as a Boolean
.SBMLException
public <T> ASTNode2Value<java.lang.String> piecewise(java.util.List<ASTNode2> nodes) throws SBMLException
piecewise
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> plus(java.util.List<ASTNode2> nodes) throws SBMLException
plus
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> pow(ASTNode2 base, ASTNode2 exponent) throws SBMLException
pow
in interface ASTNode2Compiler
SBMLException
private java.lang.StringBuilder relation(ASTNode2 left, java.lang.String relationSymbol, ASTNode2 right) throws SBMLException
ASTNode2
s.left
- relationSymbol
- right
- SBMLException
public <T> ASTNode2Value<java.lang.String> root(ASTNode2 rootExponent, ASTNode2 value) throws SBMLException
root
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> root(double rootExponent, ASTNode2 radiant) throws SBMLException
root
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sec(ASTNode2 node) throws SBMLException
sec
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sech(ASTNode2 node) throws SBMLException
sech
in interface ASTNode2Compiler
SBMLException
public java.lang.StringBuffer section(java.lang.String title, boolean numbering)
title
- numbering
- public <T> ASTNode2Value<java.lang.String> selector(java.util.List<ASTNode2> nodes) throws SBMLException
selector
in interface ASTNode2Compiler
SBMLException
public void setPrintNameIfAvailable(boolean printNameIfAvailable)
printNameIfAvailable
- public <T> ASTNode2Value<java.lang.String> sin(ASTNode2 node) throws SBMLException
sin
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sinh(ASTNode2 node) throws SBMLException
sinh
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> sqrt(ASTNode2 value) throws SBMLException
ASTNode2Compiler
sqrt
in interface ASTNode2Compiler
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 <T> ASTNode2Value<java.lang.String> symbolTime(java.lang.String time)
ASTNode2Compiler
symbolTime
in interface ASTNode2Compiler
time
- The name of the time symbol.ASTNode2Value
that represents the current time.public <T> ASTNode2Value<java.lang.String> tan(ASTNode2 node) throws SBMLException
tan
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> tanh(ASTNode2 node) throws SBMLException
tanh
in interface ASTNode2Compiler
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 <T> ASTNode2Value<java.lang.String> times(java.util.List<ASTNode2> values) throws SBMLException
ASTNode2Compiler
ASTNode2
s.times
in interface ASTNode2Compiler
values
- These values must be interpretable to Number
.SBMLException
public <T> ASTNode2Value<java.lang.String> uMinus(ASTNode2 value) throws SBMLException
ASTNode2Compiler
ASTNode2
.uMinus
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> unknownValue()
ASTNode2Compiler
ASTNode2
.unknownValue
in interface ASTNode2Compiler
public java.lang.StringBuffer usepackage(java.lang.String latexPackage, java.lang.String... options)
latexPackage
- the name of the latex packageoptions
- options without commaspublic <T> ASTNode2Value<java.lang.String> vector(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
vector
in interface ASTNode2Compiler
SBMLException
public <T> ASTNode2Value<java.lang.String> xor(java.util.List<ASTNode2> nodes) throws SBMLException
ASTNode2Compiler
xor
in interface ASTNode2Compiler
nodes
- It must be possible to evaluate the given values to
Boolean
.SBMLException