org.sbml.jsbml
public abstract class QuantityWithUnit extends AbstractNamedSBaseWithUnit implements Quantity
Modifier and Type | Field and Description |
---|---|
private boolean |
isSetValue
a boolean to help knowing is the value as been set by the user or is the
default one.
|
private static long |
serialVersionUID
Generated serial version identifier.
|
protected java.lang.Double |
value
The size, initial amount or concentration, or the actual value of this
variable.
|
unitsID
lv
listOfListeners, parent
Constructor and Description |
---|
QuantityWithUnit() |
QuantityWithUnit(int level,
int version) |
QuantityWithUnit(QuantityWithUnit qwdu) |
QuantityWithUnit(java.lang.String id) |
QuantityWithUnit(java.lang.String id,
int level,
int version) |
QuantityWithUnit(java.lang.String id,
java.lang.String name,
int level,
int version) |
Modifier and Type | Method and Description |
---|---|
abstract QuantityWithUnit |
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 object)
|
double |
getValue()
Returns the value of this
Quantity . |
int |
hashCode() |
boolean |
isIdMandatory()
This method can be used to query if the identifier of this
NamedSBase is
required to be defined (i.e., not null) in the definition of SBML. |
boolean |
isSetValue()
Returns true if the value of this
Quantity is set. |
void |
setValue(double value)
Sets the value of this
Quantity . |
void |
unsetValue()
Unsets the value of this
Quantity . |
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
getId, getName, 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
private boolean isSetValue
protected java.lang.Double value
public QuantityWithUnit()
public QuantityWithUnit(int level, int version)
level
- version
- public QuantityWithUnit(QuantityWithUnit qwdu)
qwdu
- public QuantityWithUnit(java.lang.String id)
id
- public QuantityWithUnit(java.lang.String id, int level, int version)
id
- level
- version
- public QuantityWithUnit(java.lang.String id, java.lang.String name, int level, int version)
id
- name
- level
- version
- public abstract QuantityWithUnit clone()
SBase
SBase
with the same properties
like this one and returns a pointer to it.clone
in interface SBase
clone
in class AbstractNamedSBaseWithUnit
public boolean equals(java.lang.Object object)
SBase
SBase
has exactly the same
properties like this SBase
instance.equals
in interface SBase
equals
in class AbstractNamedSBaseWithUnit
Object
is an instance of
SBase
that has exactly the same properties like this
SBase instance.public double getValue()
Quantity
Quantity
.
In Compartment
s the value is its size, in Species
the
value defines its initial amount or concentration, and in
Parameter
s and LocalParameter
s this returns the value
attribute from SBML.public int hashCode()
hashCode
in interface SBase
hashCode
in class AbstractNamedSBaseWithUnit
Object.hashCode()
public boolean isIdMandatory()
NamedSBase
NamedSBase
is
required to be defined (i.e., not null) in the definition of SBML.isIdMandatory
in interface NamedSBase
true
if the identifier of this element must be set in
order to create a valid SBML representation. false
otherwise, i.e., if the identifier can be understood as an optional
attribute.public boolean isSetValue()
Quantity
Quantity
is set.isSetValue
in interface Quantity
Quantity
is set.public void setValue(double value)
Quantity
Quantity
.
Note that the meaning of the value can be different in all derived
classes. In Compartment
s the value defines its size. In
Species
the value describes either the initial amount or the
initial concentration. Only the class Parameter
and
LocalParameter
really define a value attribute with this name.public void unsetValue()
Quantity
Quantity
.unsetValue
in interface Quantity