java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, CallableSBase
, NamedSBase
, NamedSBaseWithDerivedUnit
, Quantity
, SBase
, SBaseWithDerivedUnit
, SBaseWithUnit
, UniqueNamedSBase
, UniqueSId
, TreeNodeWithChangeSupport
, Variable
Compartment
, Parameter
, Species
public abstract class Symbol extends QuantityWithUnit implements Variable
Compartment
, Species
, Parameter
. A
symbol is a Variable
of the system that declares a unit and a value,
i.e., neither its Unit
or UnitDefinition
, nor its value are
derived. A Symbol defines both fields. Furthermore, a Symbol may vary through
a simulation and can be accessed within the model through its identifier and
name attributes.JSBML_WRONG_SBO_TERM
Constructor | Description |
---|---|
Symbol() |
Creates a Symbol instance.
|
Symbol(int level,
int version) |
Creates a Symbol instance from a level and version.
|
Symbol(java.lang.String id) |
Creates a Symbol instance.
|
Symbol(java.lang.String id,
int level,
int version) |
Creates a Symbol instance from an id, level and version.
|
Symbol(java.lang.String id,
java.lang.String name,
int level,
int version) |
Creates a Symbol instance from an id, name, level and version.
|
Symbol(QuantityWithUnit quantity) |
Creates a Symbol instance.
|
Symbol(Symbol nsb) |
Creates a Symbol instance from a given Symbol.
|
Modifier and Type | Method | Description |
---|---|---|
abstract Symbol |
clone() |
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
boolean |
equals(java.lang.Object o) |
|
boolean |
getConstant() |
|
int |
hashCode() |
Returns a hash code value for this
SBase instance. |
boolean |
isConstant() |
|
boolean |
isSetConstant() |
|
void |
setConstant(boolean constant) |
Sets the constant boolean of this Variable.
|
void |
unsetConstant() |
With this method the constant property of this variable will be set to an
undefined state.
|
isValidId
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits, getPredefinedUnitID, getUnits, getUnitsInstance, isPredefinedUnitsID, isSetUnits, isSetUnitsInstance, setUnits, setUnits, setUnits, setUnits, unsetUnits
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributes
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
getId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetName
getValue, isSetValue, setValue, unsetValue
getValue, isIdMandatory, isSetValue, setValue, unsetValue
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTreeNodeChangeListener, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributes
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public Symbol()
null
.public Symbol(int level, int version)
null
.level
- the SBML levelversion
- the SBML versionpublic Symbol(QuantityWithUnit quantity)
quantity
- public Symbol(java.lang.String id)
id
- public Symbol(java.lang.String id, int level, int version)
null
.id
- level
- version
- public Symbol(java.lang.String id, java.lang.String name, int level, int version)
null
.id
- name
- level
- version
- public Symbol(Symbol nsb)
nsb
- public abstract Symbol clone()
SBase
SBase
with the same
properties
like this one.clone
in interface SBase
clone
in class QuantityWithUnit
public boolean equals(java.lang.Object o)
SBase
public boolean getConstant()
getConstant
in interface Variable
public int hashCode()
SBase
SBase
instance.hashCode
in interface SBase
hashCode
in class QuantityWithUnit
SBase
instance.Object.hashCode()
public boolean isConstant()
isConstant
in interface Variable
false
otherwise.public boolean isSetConstant()
isSetConstant
in interface Variable
true
if the constant boolean of this Variable is not null
.public void setConstant(boolean constant)
Variable
setConstant
in interface Variable
public void unsetConstant()
Variable
unsetConstant
in interface Variable