org.sbml.jsbml
public class KineticLaw extends AbstractMathContainer implements SBaseWithUnit
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ILLEGAL_UNIT_KIND_EXCEPTION_MSG
Exception to be displayed in case that an illegal variant of unit is to
be set for this
SBaseWithUnit. |
private ListOf<LocalParameter> |
listOfLocalParameters
Represents the listOfLocalParameters or listOfParameters sub-element of a
kineticLaw element.
|
private static org.apache.log4j.Logger |
logger
A logger for this class.
|
private java.util.Map<java.lang.String,LocalParameter> |
mapOfLocalParameters
For internal computation: a mapping between their identifiers and
the
LocalParameters in KineticLaws themselves: |
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
substanceUnitsID
Deprecated.
|
private java.lang.String |
timeUnitsID
Deprecated.
|
private java.lang.String |
unitsID
Deprecated.
|
ignoredExtensions, ignoredXMLElements, lvlistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
KineticLaw()
Creates a KineticLaw instance.
|
KineticLaw(int level,
int version)
Creates a KineticLaw instance from a level and version.
|
KineticLaw(KineticLaw kineticLaw)
Creates a KineticLaw instance from a given KineticLaw.
|
KineticLaw(Reaction parentReaction)
Creates a KineticLaw instance from a given Reaction.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLocalParameter(LocalParameter parameter)
Adds a copy of the given Parameter object to the list of local parameters
in this KineticLaw.
|
boolean |
addParameter(LocalParameter parameter)
Deprecated.
|
void |
addParameter(Parameter p)
Deprecated.
A
KineticLaw can only contain instances of
LocalParameters. Please use
addLocalParameter(LocalParameter) and create an
instance of LocalParameter for your purposes. |
KineticLaw |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
LocalParameter |
createLocalParameter() |
LocalParameter |
createLocalParameter(java.lang.String id) |
boolean |
equals(java.lang.Object object)
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
ListOf<LocalParameter> |
getListOfLocalParameters() |
ListOf<LocalParameter> |
getListOfParameters()
Deprecated.
|
LocalParameter |
getLocalParameter(int i) |
LocalParameter |
getLocalParameter(java.lang.String id) |
int |
getLocalParameterCount() |
int |
getNumLocalParameters()
Deprecated.
|
int |
getNumParameters()
Deprecated.
|
LocalParameter |
getParameter(int i)
Deprecated.
|
LocalParameter |
getParameter(java.lang.String id)
Deprecated.
|
Reaction |
getParent()
This is equivalent to calling
AbstractSBase.getParentSBMLObject(), but this
method is needed for TreeNode. |
Reaction |
getParentSBMLObject()
This method is convenient when holding an object nested inside other
objects in an SBML model.
|
java.lang.String |
getSubstanceUnits()
Deprecated.
|
UnitDefinition |
getSubstanceUnitsInstance()
Deprecated.
|
java.lang.String |
getTimeUnits()
Deprecated.
|
UnitDefinition |
getTimeUnitsInstance()
Deprecated.
|
java.lang.String |
getUnits()
Deprecated.
|
UnitDefinition |
getUnitsInstance()
Deprecated.
|
int |
hashCode() |
void |
initDefaults() |
boolean |
isSetListOfLocalParameters() |
boolean |
isSetListOfParameters()
Deprecated.
|
boolean |
isSetSubstanceUnits()
Deprecated.
|
boolean |
isSetSubstanceUnitsInstance()
Deprecated.
|
boolean |
isSetTimeUnits()
Deprecated.
|
boolean |
isSetTimeUnitsInstance()
Deprecated.
|
boolean |
isSetUnits()
Deprecated.
|
boolean |
isSetUnitsInstance()
Deprecated.
|
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').
|
(package private) boolean |
registerLocalParameter(LocalParameter parameter,
boolean delete) |
LocalParameter |
removeLocalParameter(int i)
Removes the ith
LocalParameter from this object. |
boolean |
removeLocalParameter(LocalParameter p)
Removes the
LocalParameter 'p' from the
listOfLocalParameters of this KineticLaw according to
its 'id'. |
boolean |
removeLocalParameter(java.lang.String id)
Removes a
LocalParameter from this object based on its 'id'. |
void |
removeParameter(int i)
Deprecated.
|
boolean |
removeParameter(Parameter p)
Deprecated.
|
boolean |
removeParameter(java.lang.String id)
Deprecated.
|
void |
setListOfLocalParameters(ListOf<LocalParameter> listOfLocalParameters)
Sets the listOfParameters of this
KineticLaw to 'list'. |
void |
setSubstanceUnits(java.lang.String substanceUnits)
Deprecated.
Only defined for SBML Level 1 and Level 2 Version 1 and 2.
|
void |
setSubstanceUnits(Unit substanceUnit)
Deprecated.
|
void |
setTimeUnits(java.lang.String timeUnits)
Deprecated.
Only defined for Level 1 and Level 2 Version 1.
|
void |
setTimeUnits(Unit timeUnit)
Deprecated.
|
void |
setTimeUnits(UnitDefinition timeUnits)
Deprecated.
Only defined for Level 1 and Level 2 Version 1.
|
void |
setUnits(java.lang.String units)
Deprecated.
|
void |
setUnits(Unit.Kind unitKind)
Deprecated.
|
void |
setUnits(Unit unit)
Deprecated.
|
void |
setUnits(UnitDefinition units)
Deprecated.
|
java.lang.String |
toString() |
boolean |
unsetListOfLocalParameters()
Removes the
listOfLocalParameters from this KineticLaw and notifies
all registered instances of TreeNodeChangeListener. |
void |
unsetListOfParameters()
Deprecated.
|
void |
unsetSubstanceUnits()
Deprecated.
|
void |
unsetTimeUnits()
Deprecated.
|
void |
unsetUnits()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
containsUndeclaredUnits, getAllowsChildren, getDerivedUnitDefinition, getDerivedUnits, getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, unsetFormula, unsetMathaddCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, 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, waitcontainsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnitsaddCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, 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 java.lang.String ILLEGAL_UNIT_KIND_EXCEPTION_MSG
SBaseWithUnit.private static final transient org.apache.log4j.Logger logger
private static final long serialVersionUID
private ListOf<LocalParameter> listOfLocalParameters
private java.util.Map<java.lang.String,LocalParameter> mapOfLocalParameters
LocalParameters in KineticLaws themselves:@Deprecated private java.lang.String substanceUnitsID
@Deprecated private java.lang.String timeUnitsID
@Deprecated private java.lang.String unitsID
Model.public KineticLaw()
null.public KineticLaw(int level,
int version)
null.level - version - public KineticLaw(KineticLaw kineticLaw)
kineticLaw - public KineticLaw(Reaction parentReaction)
parentReaction - public boolean addLocalParameter(LocalParameter parameter)
parameter - true if the listOfLocalParameters was
changed as a result of this call.@Deprecated public boolean addParameter(LocalParameter parameter)
addLocalParameter(LocalParameter).p - true if the listOfLocalParameters was
changed as a result of this call.@Deprecated public void addParameter(Parameter p)
KineticLaw can only contain instances of
LocalParameters. Please use
addLocalParameter(LocalParameter) and create an
instance of LocalParameter for your purposes.LocalParameter with identical
properties as the given Parameter and adds this new
LocalParameter to this KineticLaw's
#listOfLocalParameters.p - public KineticLaw clone()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class AbstractMathContainerpublic LocalParameter createLocalParameter()
public LocalParameter createLocalParameter(java.lang.String id)
string - public 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 AbstractSBasetrue if and only if the given Object is an instance of
SBase that has exactly the same properties like this
SBase instance.public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class AbstractMathContainerpublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class AbstractMathContainerpublic ListOf<LocalParameter> getListOfLocalParameters()
listOfLocalParameters of this KineticLaw.
Returns null if it is not set.@Deprecated public ListOf<LocalParameter> getListOfParameters()
getListOfLocalParameters()listOfLocalParameters of this KineticLaw.
Returns null if it is not set.public LocalParameter getLocalParameter(int i)
i - LocalParameter object in the
listOfLocalParameters in this KineticLaw
instance.public LocalParameter getLocalParameter(java.lang.String id)
id - LocalParameter based on its identifier.public int getLocalParameterCount()
LocalParameter instances in this
KineticLaw instance.@Deprecated public int getNumLocalParameters()
getLocalParameterCount()LocalParameter instances in this
KineticLaw instance.@Deprecated public int getNumParameters()
getLocalParameterCount()LocalParameter instances in this
KineticLaw instance.@Deprecated public LocalParameter getParameter(int i)
getLocalParameter(int)i - LocalParameter object in the
listOfLocalParameters in this KineticLaw
instance.@Deprecated public LocalParameter getParameter(java.lang.String id)
getLocalParameter(String)id - LocalParameter based on its identifier.public Reaction getParent()
AbstractSBaseAbstractSBase.getParentSBMLObject(), but this
method is needed for TreeNode.getParent in interface javax.swing.tree.TreeNodegetParent in class AbstractSBaseAbstractSBase.getParentSBMLObject()public Reaction getParentSBMLObject()
getParentSBMLObject in interface SBasegetParentSBMLObject in class AbstractSBaseTreeNode.getParent()@Deprecated public java.lang.String getSubstanceUnits()
KineticLaw. Return the empty String
if it is not set.@Deprecated public UnitDefinition getSubstanceUnitsInstance()
@Deprecated public java.lang.String getTimeUnits()
KineticLaw. Return the empty String if it
is not set.@Deprecated public UnitDefinition getTimeUnitsInstance()
@Deprecated public java.lang.String getUnits()
getUnits in interface SBaseWithUnitSBaseWithUnit. The empty
String if it is not set.@Deprecated public UnitDefinition getUnitsInstance()
getUnitsInstance in interface SBaseWithUnit#unitsID of
this SBaseWithUnit as id. Null if it doesn't
exist. In case that the unit of this SBaseWithUnit
represents a base Unit, a new UnitDefinition will
be created and returned by this method. This new
UnitDefinition will only contain the one unit represented
by the unit identifier in this SBaseWithUnit. Note
that the corresponding model will not contain this
UnitDefinition. The identifier of this new
UnitDefinition will be set to the same value as the name
of the base Unit.public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBaseObject.hashCode()public void initDefaults()
public boolean isSetListOfLocalParameters()
@Deprecated public boolean isSetListOfParameters()
isSetListOfLocalParameters()true if the listOfParameters of this KineticLaw is not
null and not empty.@Deprecated public boolean isSetSubstanceUnits()
true if the substanceUnitsID of this KineticLaw is not
null.@Deprecated public boolean isSetSubstanceUnitsInstance()
true if the UnistDefinition instance which has the
substanceUnitsID of this KineticLaw as id is not null.@Deprecated public boolean isSetTimeUnits()
true if the timeUnitsID of this KineticLaw is not null.@Deprecated public boolean isSetTimeUnitsInstance()
true if the UnistDefinition instance which has the timeUnitsID of
this KineticLaw as id is not null.@Deprecated public boolean isSetUnits()
isSetUnits in interface SBaseWithUnittrue if the unitsID of this element is not null.@Deprecated public boolean isSetUnitsInstance()
SBaseWithUnitunitsID
attribute of this SBaseWithUnit is either an existing base
Unit, i.e., a simple Unit that can directly be addressed
via its Unit.Kind element, or the identifier of an existing
UnitDefinition in the Model to which this
SBaseWithUnit belongs.isSetUnitsInstance in interface SBaseWithUnittrue if either a UnitDefinition, which has the
unitsID of this SBaseWithUnit, can be
found in the Model to which this
SBaseWithUnit belongs, or if this element's
unitsID as a corresponding base Unit for the
given Level/Version combination.public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBasereadAttribute in interface SBasereadAttribute in class AbstractMathContainerattributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.boolean registerLocalParameter(LocalParameter parameter, boolean delete)
parameter - delete - public LocalParameter removeLocalParameter(int i)
LocalParameter from this object.i - LocalParameter that has been removed or null.public boolean removeLocalParameter(LocalParameter p)
LocalParameter 'p' from the
listOfLocalParameters of this KineticLaw according to
its 'id'.p - true if the operation was performed successfully.public boolean removeLocalParameter(java.lang.String id)
LocalParameter from this object based on its 'id'.i - true if the operation was performed successfully.@Deprecated public void removeParameter(int i)
removeLocalParameter(int)LocalParameter from this object.i - @Deprecated public boolean removeParameter(Parameter p)
removeLocalParameter(LocalParameter)p - true if the operation was performed successfully.@Deprecated public boolean removeParameter(java.lang.String id)
removeLocalParameter(String)LocalParameter from this object based on its 'id'.i - true if the operation was performed successfully.public void setListOfLocalParameters(ListOf<LocalParameter> listOfLocalParameters)
KineticLaw to 'list'. It automatically
sets this as parentSBML object of the listOfParameters as well as the
Parameter instances in the list.listOfLocalParameters - @Deprecated public void setSubstanceUnits(java.lang.String substanceUnits)
KineticLaw.substanceUnits - PropertyNotAvailableException - for inappropriate Level/Version combinations.@Deprecated public void setSubstanceUnits(Unit substanceUnit)
substanceUnit - @Deprecated public void setTimeUnits(java.lang.String timeUnits)
KineticLaw.timeUnits - PropertyNotAvailableException - for inappropriate Level/Version combinations.@Deprecated public void setTimeUnits(Unit timeUnit)
timeUnit - @Deprecated public void setTimeUnits(UnitDefinition timeUnits)
timeUnits - @Deprecated public void setUnits(Unit.Kind unitKind)
SBaseWithUnitSBaseWithUnit.
A new unit will be created base on this kind.setUnits in interface SBaseWithUnit@Deprecated public void setUnits(java.lang.String units)
SBaseWithUnitSBaseWithUnit. Only valid unit
kind names or identifiers of already existing UnitDefinitions are
allowed arguments of this function.setUnits in interface SBaseWithUnitunits - the identifier of an already existing UnitDefinition
or an Unit.Kind identifier for the current
level/version combination of this unit. Passing a null value
to this method is equivalent to calling SBaseWithUnit.unsetUnits().@Deprecated public void setUnits(Unit unit)
SBaseWithUnitUnit of this SBaseWithUnit.setUnits in interface SBaseWithUnit@Deprecated public void setUnits(UnitDefinition units)
SBaseWithUnitSBaseWithUnit to the given
unit definition.setUnits in interface SBaseWithUnitpublic java.lang.String toString()
toString in class AbstractMathContainerpublic boolean unsetListOfLocalParameters()
listOfLocalParameters from this KineticLaw and notifies
all registered instances of TreeNodeChangeListener.true if calling this method lead to a change in this
data structure.@Deprecated public void unsetListOfParameters()
unsetListOfLocalParameters()@Deprecated public void unsetSubstanceUnits()
@Deprecated public void unsetTimeUnits()
@Deprecated public void unsetUnits()
SBaseWithUnitSBaseWithUnit to null.unsetUnits in interface SBaseWithUnitpublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractMathContainerMap containing the XML attributes of this object.