org.sbml.jsbml.math
public class ASTCSymbolAvogadroNode extends ASTConstantNumber implements ASTCSymbolNode
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
definitionURL
definitionURL attribute for MathML element
|
private java.lang.String |
encoding
encodingURL attribute for MathML 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
ASTCSymbolAvogadroNode . |
private static long |
serialVersionUID |
id, mathMLClass, parentSBMLObject, strict, style, type
listOfListeners, parent, resourceBundle, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
ASTCSymbolAvogadroNode()
Creates a new
ASTCSymbolAvogadroNode . |
ASTCSymbolAvogadroNode(ASTCSymbolAvogadroNode node)
Copy constructor; Creates a deep copy of the given
ASTCSymbolAvogadroNode . |
Modifier and Type | Method and Description |
---|---|
ASTCSymbolAvogadroNode |
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 |
double |
getValue()
Get the value of this
ASTConstantNumber |
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 |
isSetType()
Returns true iff type 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
ASTCSymbolAvogadroNode |
private void |
setEncoding(java.lang.String encoding)
Set the encoding of the MathML element represented by
this
ASTCSymbolAvogadroNode |
void |
setName(java.lang.String name)
Set the name of the MathML element represented by
this
ASTCSymbolBaseNode |
java.lang.String |
toString() |
setValue, toFormula, toLaTeX, toMathML
getAllowsChildren, getChildAt, getChildCount
getId, getMathMLClass, getParentSBMLObject, getStyle, getType, isSetId, isSetMathMLClass, isSetParentSBMLObject, isSetStyle, isStrict, processValue, setId, setMathMLClass, setParent, setParentSBMLObject, 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, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getMathMLClass, getParentSBMLObject, getStyle, getType, isSetId, isSetMathMLClass, isSetParentSBMLObject, isSetStyle, isStrict, setId, setMathMLClass, setParent, setParentSBMLObject, setStrictness, setStyle, setType, setType, toFormula, toLaTeX, toMathML, unsetParentSBMLObject
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
private static final long serialVersionUID
private static final org.apache.log4j.Logger logger
Logger
for this class.protected java.lang.String definitionURL
private java.lang.String encoding
private java.lang.String name
ASTCSymbolAvogadroNode
.public ASTCSymbolAvogadroNode()
ASTCSymbolAvogadroNode
.public ASTCSymbolAvogadroNode(ASTCSymbolAvogadroNode node)
ASTCSymbolAvogadroNode
.node
- the ASTCSymbolAvogadroNode
to be copied.public ASTCSymbolAvogadroNode clone()
ASTNode2
clone
in interface ASTNode2
clone
in class ASTConstantNumber
public ASTNode2Value<?> compile(ASTNode2Compiler compiler)
ASTNode2
ASTNode2
and returns the result.compile
in interface ASTNode2
compile
in class ASTConstantNumber
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 boolean equals(java.lang.Object obj)
equals
in class AbstractASTNode
public java.lang.String getDefinitionURL()
ASTCSymbolBaseNode
ASTCSymbolBaseNode
getDefinitionURL
in interface ASTCSymbolBaseNode
public java.lang.String getEncoding()
ASTCSymbolNode
ASTCSymbolNode
getEncoding
in interface ASTCSymbolNode
public java.lang.String getName()
ASTCSymbolBaseNode
ASTCSymbolBaseNode
getName
in interface ASTCSymbolBaseNode
public double getValue()
ASTConstantNumber
ASTConstantNumber
getValue
in class ASTConstantNumber
public int hashCode()
hashCode
in class AbstractASTNode
public boolean isAllowableType(ASTNode.Type type)
ASTNode2
true
iff type is allowed in this ASTNode2
isAllowableType
in interface ASTNode2
isAllowableType
in class ASTConstantNumber
public boolean isSetDefinitionURL()
ASTCSymbolBaseNode
isSetDefinitionURL
in interface ASTCSymbolBaseNode
public boolean isSetEncoding()
ASTCSymbolNode
isSetEncoding
in interface ASTCSymbolNode
public boolean isSetName()
ASTCSymbolBaseNode
isSetName
in interface ASTCSymbolBaseNode
public boolean isSetType()
ASTNode2
isSetType
in interface ASTNode2
isSetType
in class ASTConstantNumber
public boolean refersTo(java.lang.String id)
ASTCSymbolBaseNode
true
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 ASTCSymbolBaseNode
id
- 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)
ASTCSymbolAvogadroNode
definitionURL
- private void setEncoding(java.lang.String encoding)
ASTCSymbolAvogadroNode
encoding
- public void setName(java.lang.String name)
ASTCSymbolBaseNode
ASTCSymbolBaseNode
setName
in interface ASTCSymbolBaseNode
public java.lang.String toString()
toString
in interface ASTNode2
toString
in class ASTConstantNumber