public class ASTCSymbolTimeNode extends ASTNumber implements ASTCSymbolNode
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
definitionURL
definitionURL attribute for MathML element
|
private java.lang.String |
encoding
The encoding of this csymbol element
|
private static org.apache.log4j.Logger |
logger
A
Logger for this class. |
private java.lang.String |
name
The name of the MathML element represented by this
ASTCSymbolTimeNode. |
private static long |
serialVersionUID |
id, mathMLClass, parentSBMLObject, strict, style, typelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
ASTCSymbolTimeNode()
Creates a new
ASTCSymbolTimeNode. |
ASTCSymbolTimeNode(ASTCSymbolTimeNode node)
Copy constructor; Creates a deep copy of the given
ASTCSymbolTimeNode. |
| Modifier and Type | Method and Description |
|---|---|
ASTCSymbolTimeNode |
clone()
Clone ASTNode2
|
ASTNode2Value<?> |
compile(ASTNode2Compiler compiler)
Compiles this
ASTNode2 and returns the result. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDefinitionURL()
Returns the definitionURL of the MathML element represented by
this
ASTCSymbolBaseNode |
java.lang.String |
getEncoding()
Returns the encoding of the MathML element represented by
this
ASTCSymbolNode |
java.lang.String |
getName()
Returns the name of the MathML element represented by
this
ASTCSymbolBaseNode |
int |
hashCode() |
boolean |
isAllowableType(ASTNode.Type type)
Returns
true iff type is allowed in this ASTNode2 |
boolean |
isSetDefinitionURL()
Returns True iff definitionURL has been set
|
boolean |
isSetEncoding()
Returns true iff encoding has been set
|
boolean |
isSetName()
Returns True iff name has been set
|
boolean |
refersTo(java.lang.String id)
Returns
true if this node or one of its descendants contains some
identifier with the given id. |
private void |
setDefinitionURL(java.lang.String definitionURL)
Set the definitionURL of the MathML element represented by
this
ASTCSymbolTimeNode |
private void |
setEncoding(java.lang.String encoding)
Set the encoding of the MathML element represented by
this
ASTCSymbolTimeNode |
void |
setName(java.lang.String name)
Set the name of the MathML element represented by
this
ASTCSymbolBaseNode |
java.lang.String |
toFormula()
Converts this
ASTNode2 to a text string using a specific syntax
for mathematical formulas. |
java.lang.String |
toLaTeX()
Converts this node recursively into a LaTeX formatted String.
|
java.lang.String |
toMathML()
Converts this node recursively into a MathML string that corresponds to
the subset of MathML defined in the SBML specification.
|
getAllowsChildren, getChildAt, getChildCountgetId, getMathMLClass, getParentSBMLObject, getStyle, getType, isSetId, isSetMathMLClass, isSetParentSBMLObject, isSetStyle, isSetType, isStrict, processValue, setId, setMathMLClass, setParent, setParentSBMLObject, setStrictness, setStyle, setType, setType, unsetParentSBMLObjectaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetId, getMathMLClass, getParentSBMLObject, getStyle, getType, isSetId, isSetMathMLClass, isSetParentSBMLObject, isSetStyle, isSetType, isStrict, setId, setMathMLClass, setParent, setParentSBMLObject, setStrictness, setStyle, setType, setType, toString, unsetParentSBMLObjectaddAllChangeListeners, 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, userObjectKeySetprivate static final long serialVersionUID
private static final org.apache.log4j.Logger logger
Logger for this class.private java.lang.String encoding
protected java.lang.String definitionURL
private java.lang.String name
ASTCSymbolTimeNode.public ASTCSymbolTimeNode()
ASTCSymbolTimeNode.public ASTCSymbolTimeNode(ASTCSymbolTimeNode node)
ASTCSymbolTimeNode.node - the ASTCSymbolTimeNode to be copied.public ASTCSymbolTimeNode clone()
ASTNode2public ASTNode2Value<?> compile(ASTNode2Compiler compiler)
ASTNode2ASTNode2 and returns the result.compile in interface ASTNode2compiler - 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 boolean equals(java.lang.Object obj)
equals in class AbstractASTNodepublic java.lang.String getDefinitionURL()
ASTCSymbolBaseNodeASTCSymbolBaseNodegetDefinitionURL in interface ASTCSymbolBaseNodepublic java.lang.String getEncoding()
ASTCSymbolNodeASTCSymbolNodegetEncoding in interface ASTCSymbolNodepublic java.lang.String getName()
ASTCSymbolBaseNodeASTCSymbolBaseNodegetName in interface ASTCSymbolBaseNodepublic int hashCode()
hashCode in class AbstractASTNodepublic boolean isAllowableType(ASTNode.Type type)
ASTNode2true iff type is allowed in this ASTNode2isAllowableType in interface ASTNode2public boolean isSetDefinitionURL()
ASTCSymbolBaseNodeisSetDefinitionURL in interface ASTCSymbolBaseNodepublic boolean isSetEncoding()
ASTCSymbolNodeisSetEncoding in interface ASTCSymbolNodepublic boolean isSetName()
ASTCSymbolBaseNodeisSetName in interface ASTCSymbolBaseNodepublic boolean refersTo(java.lang.String id)
ASTCSymbolBaseNodetrue if this node or one of its descendants contains some
identifier with the given id. This method can be used to scan a formula
for a specific parameter or species and detect whether this component is
used by this formula. This search is done using a DFS.refersTo in interface ASTCSymbolBaseNodeid - the id of an SBML element.true if this node or one of its descendants contains the
given id.private void setDefinitionURL(java.lang.String definitionURL)
ASTCSymbolTimeNodedefinitionURL - private void setEncoding(java.lang.String encoding)
ASTCSymbolTimeNodeencoding - public void setName(java.lang.String name)
ASTCSymbolBaseNodeASTCSymbolBaseNodesetName in interface ASTCSymbolBaseNodepublic java.lang.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 ASTNode2toFormula in class AbstractASTNodenull is
returned if the given argument is null.SBMLException - if there is a problem in the ASTNode2 tree.public java.lang.String toLaTeX()
throws SBMLException
ASTNode2toLaTeX in interface ASTNode2toLaTeX in class AbstractASTNodeSBMLException - if there is a problem in the AbstractASTNode tree.public java.lang.String toMathML()
ASTNode2toMathML in interface ASTNode2toMathML in class AbstractASTNode