org.sbml.jsbml.math
public class ASTLambdaFunctionNode extends ASTFunction
UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
ASTLambdaFunctionNode()
Creates a new
ASTLambdaFunctionNode . |
ASTLambdaFunctionNode(ASTLambdaFunctionNode node)
Copy constructor; Creates a deep copy of the given
ASTLambdaFunctionNode . |
Modifier and Type | Method and Description |
---|---|
ASTLambdaFunctionNode |
clone()
Clone ASTNode2
|
ASTNode2Value<?> |
compile(ASTNode2Compiler compiler)
Compiles this
ASTNode2 and returns the result. |
int |
getBvarCount()
Get the number of bvar elements in this
ASTLambdaFunctionNode |
boolean |
isAllowableType(ASTNode.Type type)
Returns
true iff type is allowed in this ASTNode2 |
void |
replaceArgument(String bvar,
ASTNode2 arg)
Replaces occurrences of a name within this
ASTLambdaFunctionNode with the
name/value/formula represented by the second argument ASTNode2 , e.g., if
the formula in this ASTLambdaFunctionNode is x + y; bvar is x and arg is an
ASTLambdaFunctionNode representing the real value 3 ReplaceArgument substitutes
3 for x within this ASTLambdaFunctionNode . |
String |
toFormula()
Converts this
ASTNode2 to a text string using a specific syntax
for mathematical formulas. |
String |
toLaTeX()
Converts this node recursively into a LaTeX formatted String.
|
String |
toMathML()
Converts this node recursively into a MathML string that corresponds to
the subset of MathML defined in the SBML specification.
|
String |
toString() |
addChild, equals, findReferencedCallableSBases, getAllowsChildren, getChildAt, getChildCount, getChildren, getListOfNodes, getListOfNodes, getName, hashCode, hasUnits, insertChild, isSetName, prependChild, removeChild, replaceChild, setName, setParentSBMLObject, swapChildren
getId, getMathMLClass, getParentSBMLObject, getStyle, getType, isSetId, isSetMathMLClass, isSetParentSBMLObject, isSetStyle, isSetType, isStrict, setId, setMathMLClass, setParent, setStrictness, setStyle, setType, setType, unsetParentSBMLObject
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public ASTLambdaFunctionNode()
ASTLambdaFunctionNode
.public ASTLambdaFunctionNode(ASTLambdaFunctionNode node)
ASTLambdaFunctionNode
.node
- the ASTLambdaFunctionNode
to be copied.public ASTLambdaFunctionNode clone()
ASTNode2
clone
in interface ASTNode2
clone
in class ASTFunction
public ASTNode2Value<?> compile(ASTNode2Compiler compiler)
ASTNode2
ASTNode2
and returns the result.compile
in interface ASTNode2
compile
in class ASTFunction
compiler
- An instance of an ASTNode2Compiler
that provides
methods to translate this ASTNode2
into something
different.ASTNode2Value
. The content of the
wrapper depends on the ASTNode2Compiler
used to create it.
However, this ASTNode2
will ensure that level and version
are set appropriately according to this node's parent SBML
object.public int getBvarCount()
ASTLambdaFunctionNode
public boolean isAllowableType(ASTNode.Type type)
ASTNode2
true
iff type is allowed in this ASTNode2
isAllowableType
in interface ASTNode2
isAllowableType
in class ASTFunction
public void replaceArgument(String bvar, ASTNode2 arg)
ASTLambdaFunctionNode
with the
name/value/formula represented by the second argument ASTNode2
, e.g., if
the formula in this ASTLambdaFunctionNode
is x + y; bvar is x and arg is an
ASTLambdaFunctionNode
representing the real value 3 ReplaceArgument substitutes
3 for x within this ASTLambdaFunctionNode
.bvar
- a string representing the variable name to be substitutedarg
- an ASTNode2
representing the name/value/formula to substitutepublic String toFormula() throws SBMLException
ASTNode2
Converts this ASTNode2
to a text string using a specific syntax
for mathematical formulas.
The text-string form of mathematical formulas produced by formulaToString() and read by parseFormula() are simple C-inspired infix notation taken from SBML Level 1. A formula in this text-string form therefore can be handed to a program that understands SBML Level 1 mathematical expressions, or used as part of a formula translation system. The syntax is described in detail in the documentation for ASTNode.
toFormula
in interface ASTNode2
toFormula
in class AbstractASTNode
null
is
returned if the given argument is null
.SBMLException
- if there is a problem in the ASTNode2
tree.public String toLaTeX() throws SBMLException
ASTNode2
toLaTeX
in interface ASTNode2
toLaTeX
in class AbstractASTNode
SBMLException
- if there is a problem in the AbstractASTNode tree.public String toMathML()
ASTNode2
toMathML
in interface ASTNode2
toMathML
in class AbstractASTNode
public String toString()
toString
in interface ASTNode2
toString
in class ASTFunction