org.sbml.jsbml
public class LocalParameter extends QuantityWithUnit
KineticLaw
.Modifier and Type | Field and Description |
---|---|
private boolean |
isExplicitlySetConstant
This field memorizes whether this
LocalParameter has been
explicitly set to be constant. |
private static long |
serialVersionUID
Generated serial version identifier.
|
value
unitsID
ignoredExtensions, ignoredXMLElements, lv
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
LocalParameter()
Creates a new instance of
LocalParameter . |
LocalParameter(int level,
int version) |
LocalParameter(LocalParameter lp) |
LocalParameter(Parameter parameter)
Creates a new local parameter that will have the same properties than the
given global parameter.
|
LocalParameter(java.lang.String id)
Creates a new instance of
LocalParameter with the given
identifier. |
LocalParameter(java.lang.String id,
int level,
int version) |
LocalParameter(java.lang.String id,
java.lang.String name,
int level,
int version) |
Modifier and Type | Method and Description |
---|---|
LocalParameter |
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 object)
|
java.lang.String |
getElementName()
Returns the XML element name of this object.
|
ListOf<LocalParameter> |
getParent()
This is equivalent to calling
AbstractSBase.getParentSBMLObject() , but this
method is needed for TreeNode . |
ListOf<LocalParameter> |
getParentSBMLObject()
Returns the parent of this
SBase . |
java.lang.String |
getPredefinedUnitID()
Returns the predefined unit identifier for this data type with the
current level/version combination.
|
int |
hashCode()
Returns a hash code value for this
SBase instance. |
boolean |
isExplicitlySetConstant()
In SBML prior to Level 3 it was possible to explicitly state that a local
parameter represents a constant
Quantity . |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase . |
void |
setExplicitlyConstant(boolean isExplicitlySetConstant)
Deprecated.
Since SBML Level 3 it is no longer possible to explicitly set
a
LocalParameter to constant = true
because LocalParameter instances always represent
constant a Quantity . |
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
getValue, isIdMandatory, isSetValue, setValue, unsetValue
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits, getUnits, getUnitsInstance, isPredefinedUnitsID, isSetUnits, isSetUnitsInstance, setUnits, setUnits, setUnits, setUnits, unsetUnits
checkIdentifier, getId, getName, isSetId, isSetName, isValidId, setId, setName, toString, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setLevelAndVersion, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
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
finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, isSetId, isSetName, setId, setName, unsetId, unsetName
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm
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
private static final long serialVersionUID
private boolean isExplicitlySetConstant
LocalParameter
has been
explicitly set to be constant. All instances of LocalParameter
are constant by definition, however, in earlier versions of SBML (before
Level 3) it was possible to explicitly state that a
LocalParameter
is constant. Therefore, a special field has become
necessary to reflect this property.public LocalParameter()
LocalParameter
.public LocalParameter(int level, int version)
level
- version
- public LocalParameter(LocalParameter lp)
lp
- public LocalParameter(Parameter parameter)
parameter
- public LocalParameter(java.lang.String id)
LocalParameter
with the given
identifier.id
- public LocalParameter(java.lang.String id, int level, int version)
id
- level
- version
- public LocalParameter(java.lang.String id, java.lang.String name, int level, int version)
id
- name
- level
- version
- public LocalParameter clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class QuantityWithUnit
public boolean equals(java.lang.Object object)
SBase
public java.lang.String getElementName()
SBase
getElementName
in interface SBase
getElementName
in class AbstractSBase
public ListOf<LocalParameter> getParent()
AbstractSBase
AbstractSBase.getParentSBMLObject()
, but this
method is needed for TreeNode
.getParent
in interface javax.swing.tree.TreeNode
getParent
in class AbstractSBase
AbstractSBase.getParentSBMLObject()
public ListOf<LocalParameter> getParentSBMLObject()
SBase
SBase
.getParentSBMLObject
in interface SBase
getParentSBMLObject
in class AbstractSBase
TreeNode.getParent()
public java.lang.String getPredefinedUnitID()
AbstractNamedSBaseWithUnit
getPredefinedUnitID
in class AbstractNamedSBaseWithUnit
Model
. This can
be one of the predefined unit identifiers if there are any.public int hashCode()
SBase
SBase
instance.hashCode
in interface SBase
hashCode
in class QuantityWithUnit
SBase
instance.Object.hashCode()
public boolean isExplicitlySetConstant()
Quantity
. However, per
definition, each local parameter has always been constant no matter if
its XML representation contains the constant
attribute or
not. Hence, this attribute could set to true
only. This
method checks if for this LocalParameter
an explicit
constant
flag has been set.true
if this
LocalParameter
contains an explicit constant
flag, false
otherwise.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
SBase
.
If the given attribute name is not recognized, nothing is done and
false
is returned.
readAttribute
in interface SBase
readAttribute
in class AbstractNamedSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.@Deprecated public void setExplicitlyConstant(boolean isExplicitlySetConstant)
LocalParameter
to constant = true
because LocalParameter
instances always represent
constant a Quantity
.constant
attribute of this LocalParameter
. This
attribute can set to true
only. Therefore, this method does
just decide whether or not the constant
attribute should
occur in generated SBML code when serializing this LocalParameter
. Since this object always represents a constant Quantity
this
method does only decide whether or not the resulting SBML code should
contain the attribute/value pair constant = true
, it does
not decide on whether or not this object should be constant.isExplicitlySetConstant
- the isExplicitlySetConstant to setpublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBase
SBase
that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractNamedSBase
Map
containing the XML attributes of this object.