public static enum ASTNode.Type extends java.lang.Enum<ASTNode.Type>
Enum Constant | Description |
---|---|
CONSTANT_E |
If the
ASTNode represents Euler's constant, it should have
this ASTNode.Type . |
CONSTANT_FALSE |
|
CONSTANT_PI |
If the
ASTNode represents the constant π, it should have
this ASTNode.Type . |
CONSTANT_TRUE |
|
CONSTRUCTOR_OTHERWISE |
|
CONSTRUCTOR_PIECE |
|
DIVIDE |
|
FUNCTION |
The type of an
ASTNode containing a reference to a user-defined
FunctionDefinition . |
FUNCTION_ABS |
|
FUNCTION_ARCCOS |
|
FUNCTION_ARCCOSH |
|
FUNCTION_ARCCOT |
|
FUNCTION_ARCCOTH |
|
FUNCTION_ARCCSC |
|
FUNCTION_ARCCSCH |
|
FUNCTION_ARCSEC |
|
FUNCTION_ARCSECH |
|
FUNCTION_ARCSIN |
|
FUNCTION_ARCSINH |
|
FUNCTION_ARCTAN |
|
FUNCTION_ARCTANH |
|
FUNCTION_CEILING |
|
FUNCTION_COS |
|
FUNCTION_COSH |
|
FUNCTION_COT |
|
FUNCTION_COTH |
|
FUNCTION_CSC |
|
FUNCTION_CSCH |
|
FUNCTION_CSYMBOL |
Generic csymbol to facilitate the addition of csymbol by other libraries or packages.
|
FUNCTION_DELAY |
|
FUNCTION_EXP |
|
FUNCTION_FACTORIAL |
|
FUNCTION_FLOOR |
|
FUNCTION_LN |
|
FUNCTION_LOG |
|
FUNCTION_MAX |
|
FUNCTION_MIN |
|
FUNCTION_PIECEWISE |
|
FUNCTION_POWER |
An
ASTNode of this ASTNode.Type represents a function call of
the 'pow' function. |
FUNCTION_QUOTIENT |
The quotient element is the operator used for division modulo a particular base.
|
FUNCTION_RATE_OF |
|
FUNCTION_REM |
The rem element is the operator that returns the "remainder" of a division modulo
a particular base.
|
FUNCTION_ROOT |
|
FUNCTION_SEC |
|
FUNCTION_SECH |
|
FUNCTION_SELECTOR |
|
FUNCTION_SIN |
|
FUNCTION_SINH |
|
FUNCTION_TAN |
|
FUNCTION_TANH |
|
INTEGER |
|
LAMBDA |
This type describes function definitions: The first n children of a
node of this type are the arguments, and the last child is the
function body.
|
LOGICAL_AND |
|
LOGICAL_IMPLIES |
In classical logic, the compound 'p implies q' (p→q) is logically equivalent to the negative
compound: not both p and not q.
|
LOGICAL_NOT |
|
LOGICAL_OR |
|
LOGICAL_XOR |
|
MINUS |
|
NAME |
|
NAME_AVOGADRO |
A type to express Avogadro's number.
|
NAME_TIME |
|
PLUS |
|
POWER |
This
ASTNode.Type represents an operation with two children: a base
and an exponent. |
PRODUCT |
|
QUALIFIER_BVAR |
|
QUALIFIER_DEGREE |
|
QUALIFIER_LOGBASE |
|
RATIONAL |
An
ASTNode of this ASTNode.Type contains two integer values:
a numerator and a denominator. |
REAL |
ASTNode.Type of an ASTNode that represents a single real
value, i.e., a double number. |
REAL_E |
ASTNode.Type of an ASTNode with a real value that is split in
a double mantissa and an integer exponent. |
RELATIONAL_EQ |
An
ASTNode of this ASTNode.Type represents the relation
symbol '=' to compare the values of all of its successors in the tree
for equality. |
RELATIONAL_GEQ |
Greater or equal
|
RELATIONAL_GT |
Greater than
|
RELATIONAL_LEQ |
Less or equal
|
RELATIONAL_LT |
Less than
|
RELATIONAL_NEQ |
Not equal
|
SEMANTICS |
MathML markup can be combined with other markup languages, and these
mixing constructions are realized by the semantic annotation elements.
|
SUM |
|
TIMES |
|
UNKNOWN |
|
VECTOR |
Modifier and Type | Method | Description |
---|---|---|
static ASTNode.Type |
getTypeFor(java.lang.String type) |
Returns the
ASTNode.Type corresponding to the given String . |
boolean |
isDefinedIn(int level,
int version) |
Checks whether this type is valid for the given SBML
Level/Version combination.
|
static ASTNode.Type |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ASTNode.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ASTNode.Type CONSTANT_E
ASTNode
represents Euler's constant, it should have
this ASTNode.Type
.public static final ASTNode.Type CONSTANT_FALSE
public static final ASTNode.Type CONSTANT_PI
ASTNode
represents the constant π, it should have
this ASTNode.Type
.public static final ASTNode.Type CONSTRUCTOR_PIECE
public static final ASTNode.Type CONSTRUCTOR_OTHERWISE
public static final ASTNode.Type CONSTANT_TRUE
public static final ASTNode.Type DIVIDE
public static final ASTNode.Type FUNCTION
ASTNode
containing a reference to a user-defined
FunctionDefinition
.public static final ASTNode.Type FUNCTION_ABS
public static final ASTNode.Type FUNCTION_ARCCOS
public static final ASTNode.Type FUNCTION_ARCCOSH
public static final ASTNode.Type FUNCTION_ARCCOT
public static final ASTNode.Type FUNCTION_ARCCOTH
public static final ASTNode.Type FUNCTION_ARCCSC
public static final ASTNode.Type FUNCTION_ARCCSCH
public static final ASTNode.Type FUNCTION_ARCSEC
public static final ASTNode.Type FUNCTION_ARCSECH
public static final ASTNode.Type FUNCTION_ARCSIN
public static final ASTNode.Type FUNCTION_ARCSINH
public static final ASTNode.Type FUNCTION_ARCTAN
public static final ASTNode.Type FUNCTION_ARCTANH
public static final ASTNode.Type FUNCTION_CEILING
public static final ASTNode.Type FUNCTION_COS
public static final ASTNode.Type FUNCTION_COSH
public static final ASTNode.Type FUNCTION_COT
public static final ASTNode.Type FUNCTION_COTH
public static final ASTNode.Type FUNCTION_CSC
public static final ASTNode.Type FUNCTION_CSCH
public static final ASTNode.Type FUNCTION_DELAY
public static final ASTNode.Type FUNCTION_EXP
public static final ASTNode.Type FUNCTION_FACTORIAL
public static final ASTNode.Type FUNCTION_FLOOR
public static final ASTNode.Type FUNCTION_LN
public static final ASTNode.Type FUNCTION_LOG
public static final ASTNode.Type FUNCTION_MAX
public static final ASTNode.Type FUNCTION_MIN
public static final ASTNode.Type FUNCTION_PIECEWISE
public static final ASTNode.Type FUNCTION_POWER
ASTNode
of this ASTNode.Type
represents a function call of
the 'pow' function. This function takes two arguments, the base and
the exponent. Alternatively, also POWER
can be used,
which represents the simple text symbol '^' to achieve the same
effect.public static final ASTNode.Type FUNCTION_QUOTIENT
public static final ASTNode.Type FUNCTION_RATE_OF
public static final ASTNode.Type FUNCTION_REM
public static final ASTNode.Type FUNCTION_ROOT
public static final ASTNode.Type FUNCTION_SEC
public static final ASTNode.Type FUNCTION_SECH
public static final ASTNode.Type FUNCTION_SELECTOR
public static final ASTNode.Type FUNCTION_SIN
public static final ASTNode.Type FUNCTION_SINH
public static final ASTNode.Type FUNCTION_TAN
public static final ASTNode.Type FUNCTION_TANH
public static final ASTNode.Type INTEGER
public static final ASTNode.Type LAMBDA
public static final ASTNode.Type LOGICAL_AND
public static final ASTNode.Type LOGICAL_IMPLIES
Truth table:
p q p→q T T T T F F F T T F F T
public static final ASTNode.Type LOGICAL_NOT
public static final ASTNode.Type LOGICAL_OR
public static final ASTNode.Type LOGICAL_XOR
public static final ASTNode.Type MINUS
public static final ASTNode.Type NAME
public static final ASTNode.Type NAME_AVOGADRO
public static final ASTNode.Type NAME_TIME
public static final ASTNode.Type PLUS
public static final ASTNode.Type POWER
ASTNode.Type
represents an operation with two children: a base
and an exponent. In textual form, this type is represented by the
symbol '^'.public static final ASTNode.Type PRODUCT
public static final ASTNode.Type QUALIFIER_BVAR
public static final ASTNode.Type QUALIFIER_DEGREE
public static final ASTNode.Type QUALIFIER_LOGBASE
public static final ASTNode.Type RATIONAL
ASTNode
of this ASTNode.Type
contains two integer values:
a numerator and a denominator.public static final ASTNode.Type REAL
ASTNode.Type
of an ASTNode
that represents a single real
value, i.e., a double number.public static final ASTNode.Type REAL_E
ASTNode.Type
of an ASTNode
with a real value that is split in
a double mantissa and an integer exponent.public static final ASTNode.Type RELATIONAL_EQ
ASTNode
of this ASTNode.Type
represents the relation
symbol '=' to compare the values of all of its successors in the tree
for equality.public static final ASTNode.Type RELATIONAL_GEQ
public static final ASTNode.Type RELATIONAL_GT
public static final ASTNode.Type RELATIONAL_LEQ
public static final ASTNode.Type RELATIONAL_LT
public static final ASTNode.Type RELATIONAL_NEQ
public static final ASTNode.Type SUM
public static final ASTNode.Type TIMES
public static final ASTNode.Type SEMANTICS
public static final ASTNode.Type UNKNOWN
public static final ASTNode.Type VECTOR
public static final ASTNode.Type FUNCTION_CSYMBOL
public static ASTNode.Type[] values()
for (ASTNode.Type c : ASTNode.Type.values()) System.out.println(c);
public static ASTNode.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ASTNode.Type getTypeFor(java.lang.String type)
ASTNode.Type
corresponding to the given String
.type
- e.g., sin, asin, exp, and so on. See the specification of
the MathML subset used in SBML.String
or
UNKNOWN
if no matching can be found.public boolean isDefinedIn(int level, int version)
level
- version
-