org.sbml.jsbml
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.Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
constant
The constant attribute of this variable.
|
protected boolean |
isSetConstant |
private static long |
serialVersionUID
Generated serial version identifier.
|
value
unitsID
lv
listOfListeners, parent
Constructor and Description |
---|
Symbol()
Creates a Symbol instance.
|
Symbol(int level,
int version)
Creates a Symbol instance from a level and version.
|
Symbol(QuantityWithUnit quantity) |
Symbol(java.lang.String id) |
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(Symbol nsb)
Creates a Symbol instance from a given Symbol.
|
Modifier and Type | Method and Description |
---|---|
abstract Symbol |
clone()
Creates a copy of this object, i.e., e new
SBase with the same properties
like this one and returns a pointer to it. |
boolean |
equals(java.lang.Object o)
|
boolean |
getConstant() |
int |
hashCode() |
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.
|
getValue, isIdMandatory, isSetValue, setValue, unsetValue
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits, getPredefinedUnitID, getUnits, getUnitsInstance, isPredefinedUnitsID, isSetUnits, isSetUnitsInstance, setUnits, setUnits, setUnits, setUnits, unsetUnits
checkIdentifier, getId, getName, isSetId, isSetName, isValidId, readAttribute, setId, setName, toString, unsetId, unsetName, writeXMLAttributes
addCVTerm, addDeclaredNamespace, addNamespace, appendNotes, appendNotes, checkLevelAndVersionCompatibility, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTerms, getDeclaredNamespaces, getElementName, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespaces, getNotes, getNotesString, getNumCVTerms, getParent, getParentSBMLObject, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, notifyChildChange, registerChild, removeNamespace, setAnnotation, setHistory, setLevel, setLevelAndVersion, setMetaId, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetHistory, unsetMetaId, unsetNotes, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getTreeNodeChangeListenerCount, indexOf, isLeaf, isRoot, isSetParent, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, setParent
finalize, getClass, notify, notifyAll, wait, wait, wait
getValue, isSetValue, setValue, unsetValue
getId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetName
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits
addCVTerm, addDeclaredNamespace, addNamespace, appendNotes, appendNotes, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTerms, getDeclaredNamespaces, getElementName, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespaces, getNotes, getNotesString, getNumCVTerms, getParentSBMLObject, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetSBOTerm, isSetVersion, readAttribute, registerChild, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetHistory, unsetMetaId, unsetNotes, unsetSBOTerm, writeXMLAttributes
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getTreeNodeChangeListenerCount, isRoot, isSetParent, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener
private static final long serialVersionUID
protected java.lang.Boolean constant
protected boolean isSetConstant
public Symbol()
public Symbol(int level, int version)
id
- level
- version
- public Symbol(QuantityWithUnit quantity)
quantity
- public Symbol(java.lang.String id)
id
- public Symbol(java.lang.String id, int level, int version)
id
- level
- version
- public Symbol(java.lang.String id, java.lang.String name, int level, int version)
id
- name
- level
- version
- public Symbol(Symbol nsb)
nsb
- public abstract Symbol clone()
SBase
SBase
with the same properties
like this one and returns a pointer to it.clone
in interface SBase
clone
in class QuantityWithUnit
public boolean equals(java.lang.Object o)
SBase
SBase
has exactly the same
properties like this SBase
instance.equals
in interface SBase
equals
in class QuantityWithUnit
Object
is an instance of
SBase
that has exactly the same properties like this
SBase instance.public boolean getConstant()
getConstant
in interface Variable
public int hashCode()
hashCode
in interface SBase
hashCode
in class QuantityWithUnit
Object.hashCode()
public boolean isConstant()
isConstant
in interface Variable
public boolean isSetConstant()
isSetConstant
in interface Variable
public void setConstant(boolean constant)
Variable
setConstant
in interface Variable
public void unsetConstant()
Variable
unsetConstant
in interface Variable