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.
|
valueunitsIDignoredExtensions, ignoredXMLElements, lvlistOfListeners, 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()
This method is convenient when holding an object nested inside other
objects in an SBML model.
|
java.lang.String |
getPredefinedUnitID()
Returns the predefined unit identifier for this data type with the
current level/version combination.
|
int |
hashCode() |
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)
If the attribute is an id or name attribute, it will set the id or name
of this object with the value of the XML attribute ('value').
|
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. |
void |
setId(java.lang.String newId)
sets the id value with 'id'
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
getValue, isIdMandatory, isSetValue, setValue, unsetValuecontainsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits, getUnits, getUnitsInstance, isPredefinedUnitsID, isSetUnits, isSetUnitsInstance, setUnits, setUnits, setUnits, setUnits, unsetUnitscheckIdentifier, getId, getName, isSetId, isSetName, isValidId, setName, toString, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getExtension, 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, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, setAnnotation, setHistory, setLevel, setLevelAndVersion, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setName, unsetId, unsetNamecontainsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnitsaddCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getExtension, 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, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprivate 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()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class QuantityWithUnitpublic boolean equals(java.lang.Object object)
SBasetrue if and only if the given SBase has exactly the same
properties like this SBase instance.equals in interface SBaseequals in class QuantityWithUnittrue if and only if the given Object is an instance of
SBase that has exactly the same properties like this
SBase instance.public java.lang.String getElementName()
SBasegetElementName in interface SBasegetElementName in class AbstractSBasepublic ListOf<LocalParameter> getParent()
AbstractSBaseAbstractSBase.getParentSBMLObject(), but this
method is needed for TreeNode.getParent in interface javax.swing.tree.TreeNodegetParent in class AbstractSBaseAbstractSBase.getParentSBMLObject()public ListOf<LocalParameter> getParentSBMLObject()
SBasegetParentSBMLObject in interface SBasegetParentSBMLObject in class AbstractSBaseTreeNode.getParent()public java.lang.String getPredefinedUnitID()
AbstractNamedSBaseWithUnitgetPredefinedUnitID in class AbstractNamedSBaseWithUnitModel. This can
be one of the predefined unit identifiers if there are any.public int hashCode()
hashCode in interface SBasehashCode in class QuantityWithUnitObject.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)
SBasereadAttribute in interface SBasereadAttribute in class AbstractNamedSBaseattributeName - 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 void setId(java.lang.String newId)
NamedSBasesetId in interface NamedSBasesetId in class AbstractNamedSBasepublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractNamedSBaseMap containing the XML attributes of this object.