Implementation of KineticLaw.

Functions | |
| int | KineticLaw_addLocalParameter (KineticLaw_t *kl, const LocalParameter_t *p) |
| Adds a copy of the given LocalParameter_t structure to the list of local parameters in the given KineticLaw_t structure. | |
| int | KineticLaw_addParameter (KineticLaw_t *kl, const Parameter_t *p) |
| Adds a copy of the given Parameter_t structure to the list of local parameters in the given KineticLaw_t structure. | |
| KineticLaw_t * | KineticLaw_clone (const KineticLaw_t *kl) |
| Returns a deep copy of the given KineticLaw_t structure. | |
| int | KineticLaw_containsUndeclaredUnits (KineticLaw_t *kl) |
Predicate returning true or false depending on whether the math expression of this KineticLaw_t contains parameters/numbers with undeclared units. | |
| KineticLaw_t * | KineticLaw_create (unsigned int level, unsigned int version) |
Creates a new KineticLaw_t structure using the given SBML level and version values. | |
| LocalParameter_t * | KineticLaw_createLocalParameter (KineticLaw_t *kl) |
| Creates a new LocalParameter_t structure, adds it to the given KineticLaw_t structures's list of local parameters, and returns a pointer to the Parameter_t created. | |
| Parameter_t * | KineticLaw_createParameter (KineticLaw_t *kl) |
| Creates a new Parameter_t structure, adds it to the given KineticLaw_t structures's list of local parameters, and returns a pointer to the Parameter_t created. | |
| KineticLaw_t * | KineticLaw_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new KineticLaw_t structure using the given SBMLNamespaces_t structure. | |
| void | KineticLaw_free (KineticLaw_t *kl) |
| Frees the given KineticLaw_t structure. | |
| UnitDefinition_t * | KineticLaw_getDerivedUnitDefinition (KineticLaw_t *kl) |
| Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this KineticLaw_t. | |
| const char * | KineticLaw_getFormula (const KineticLaw_t *kl) |
| Gets the mathematical expression of this KineticLaw_t structure as a formula in text-string form. | |
| ListOf_t * | KineticLaw_getListOfLocalParameters (KineticLaw_t *kl) |
| Get the list of local parameters defined for the given KineticLaw_t structure. | |
| ListOf_t * | KineticLaw_getListOfParameters (KineticLaw_t *kl) |
| Get the list of local parameters defined for the given KineticLaw_t structure. | |
| LocalParameter_t * | KineticLaw_getLocalParameter (KineticLaw_t *kl, unsigned int n) |
| Get the nth parameter in the list of local parameters in the given KineticLaw_t structure. | |
| LocalParameter_t * | KineticLaw_getLocalParameterById (KineticLaw_t *kl, const char *sid) |
| Get a parameter with identifier "id" out of the list of local parameters defined for the given KineticLaw_t structure. | |
| const ASTNode_t * | KineticLaw_getMath (const KineticLaw_t *kl) |
| Gets the mathematical expression of this KineticLaw_t structure as an ASTNode_t structure. | |
| const XMLNamespaces_t * | KineticLaw_getNamespaces (KineticLaw_t *kl) |
| Returns a list of XMLNamespaces_t associated with this KineticLaw_t structure. | |
| unsigned int | KineticLaw_getNumLocalParameters (const KineticLaw_t *kl) |
| Get the number of local parameters defined in the given KineticLaw_t structure. | |
| unsigned int | KineticLaw_getNumParameters (const KineticLaw_t *kl) |
| Get the number of local parameters defined in the given KineticLaw_t structure. | |
| Parameter_t * | KineticLaw_getParameter (KineticLaw_t *kl, unsigned int n) |
| Get the nth parameter in the list of local parameters in the given KineticLaw_t structure. | |
| Parameter_t * | KineticLaw_getParameterById (KineticLaw_t *kl, const char *sid) |
| Get a parameter with identifier "id" out of the list of local parameters defined for the given KineticLaw_t structure. | |
| const char * | KineticLaw_getSubstanceUnits (const KineticLaw_t *kl) |
| Gets the value of the "substanceUnits" attribute of the given KineticLaw_t structure. | |
| const char * | KineticLaw_getTimeUnits (const KineticLaw_t *kl) |
| Gets the value of the "timeUnits" attribute of the given KineticLaw_t structure. | |
| int | KineticLaw_isSetFormula (const KineticLaw_t *kl) |
| Predicate returning nonzero (for true) or zero (for false) depending on whether the "formula" attribute of the given KineticLaw_t structure is set. | |
| int | KineticLaw_isSetMath (const KineticLaw_t *kl) |
| Predicate returning nonzero (for true) or zero (for false) depending on whether the "math" subelement of the given KineticLaw_t structure is set. | |
| int | KineticLaw_isSetSubstanceUnits (const KineticLaw_t *kl) |
| Predicate returning nonzero (for true) or zero (for false) depending on whether the "timeUnits" attribute of the given KineticLaw_t structure is set. | |
| int | KineticLaw_isSetTimeUnits (const KineticLaw_t *kl) |
| Predicate returning nonzero (for true) or zero (for false) depending on whether the "timeUnits" attribute of the given KineticLaw_t structure is set. | |
| LocalParameter_t * | KineticLaw_removeLocalParameter (KineticLaw_t *kl, unsigned int n) |
| Removes the nth LocalParameter_t object from the list of local parameters in this KineticLaw_t object and returns a pointer to it. | |
| LocalParameter_t * | KineticLaw_removeLocalParameterById (KineticLaw_t *kl, const char *sid) |
| Removes the LocalParameter_t object with the given "id" attribute from the list of local parameters in this KineticLaw_t object and returns a pointer to it. | |
| Parameter_t * | KineticLaw_removeParameter (KineticLaw_t *kl, unsigned int n) |
| Removes the nth Parameter_t object from the list of local parameters in this KineticLaw_t object and returns a pointer to it. | |
| Parameter_t * | KineticLaw_removeParameterById (KineticLaw_t *kl, const char *sid) |
| Removes the Parameter_t object with the given "id" attribute from the list of local parameters in this KineticLaw_t object and returns a pointer to it. | |
| int | KineticLaw_setFormula (KineticLaw_t *kl, const char *formula) |
| Sets the formula of the given KineticLaw_t structure. | |
| int | KineticLaw_setMath (KineticLaw_t *kl, const ASTNode_t *math) |
| Sets the formula of the given KineticLaw_t structure. | |
| int | KineticLaw_setSubstanceUnits (KineticLaw_t *kl, const char *sid) |
| Sets the "substanceUnits" attribute of the given KineticLaw_t structure. | |
| int | KineticLaw_setTimeUnits (KineticLaw_t *kl, const char *sid) |
| Sets the "timeUnits" attribute of the given KineticLaw_t structure. | |
| int | KineticLaw_unsetSubstanceUnits (KineticLaw_t *kl) |
| Unsets the "substanceUnits" attribute of the given KineticLaw_t structure. | |
| int | KineticLaw_unsetTimeUnits (KineticLaw_t *kl) |
| Unsets the "timeUnits" attribute of the given KineticLaw_t structure. | |
| int KineticLaw_addLocalParameter | ( | KineticLaw_t * | kl, |
| const LocalParameter_t * | p | ||
| ) |
Adds a copy of the given LocalParameter_t structure to the list of local parameters in the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| p | a pointer to a LocalParameter_t structure |
| int KineticLaw_addParameter | ( | KineticLaw_t * | kl, |
| const Parameter_t * | p | ||
| ) |
Adds a copy of the given Parameter_t structure to the list of local parameters in the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| p | a pointer to a Parameter_t structure |
| KineticLaw_t* KineticLaw_clone | ( | const KineticLaw_t * | kl | ) |
Returns a deep copy of the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| int KineticLaw_containsUndeclaredUnits | ( | KineticLaw_t * | kl | ) |
Predicate returning true or false depending on whether the math expression of this KineticLaw_t contains parameters/numbers with undeclared units.
true if the math expression of this KineticLaw_t includes parameters/numbers with undeclared units, false otherwise.true indicates that the UnitDefinition_t returned by the getDerivedUnitDefinition function may not accurately represent the units of the expression.| KineticLaw_t* KineticLaw_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new KineticLaw_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this KineticLaw |
| version | an unsigned int, the SBML Version to assign to this KineticLaw |
level and version for the document override those used to create the KineticLaw. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | LocalParameter_t* KineticLaw_createLocalParameter | ( | KineticLaw_t * | kl | ) |
Creates a new LocalParameter_t structure, adds it to the given KineticLaw_t structures's list of local parameters, and returns a pointer to the Parameter_t created.
| kl | the KineticLaw_t structure. |
| Parameter_t* KineticLaw_createParameter | ( | KineticLaw_t * | kl | ) |
Creates a new Parameter_t structure, adds it to the given KineticLaw_t structures's list of local parameters, and returns a pointer to the Parameter_t created.
| kl | the KineticLaw_t structure. |
| KineticLaw_t* KineticLaw_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new KineticLaw_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this KineticLaw |
sbmlns namespaces for the document override those used to create the KineticLaw. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | void KineticLaw_free | ( | KineticLaw_t * | kl | ) |
Frees the given KineticLaw_t structure.
| kl | the KineticLaw_t structure |
| UnitDefinition_t* KineticLaw_getDerivedUnitDefinition | ( | KineticLaw_t * | kl | ) |
Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this KineticLaw_t.
Note that the functionality that facilitates unit analysis depends on the model as a whole. Thus, in cases where the object has not been added to a model or the model itself is incomplete, unit analysis is not possible and this method will return NULL.
| const char* KineticLaw_getFormula | ( | const KineticLaw_t * | kl | ) |
Gets the mathematical expression of this KineticLaw_t structure as a formula in text-string form.
This is fundamentally equivalent to KineticLaw_getMath(). It is provided principally for compatibility with SBML Level 1.
| kl | the KineticLaw_t structure. |
| ListOf_t* KineticLaw_getListOfLocalParameters | ( | KineticLaw_t * | kl | ) |
Get the list of local parameters defined for the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| ListOf_t* KineticLaw_getListOfParameters | ( | KineticLaw_t * | kl | ) |
Get the list of local parameters defined for the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| LocalParameter_t* KineticLaw_getLocalParameter | ( | KineticLaw_t * | kl, |
| unsigned int | n | ||
| ) |
Get the nth parameter in the list of local parameters in the given KineticLaw_t structure.
Callers should first find out how many parameters are in the list by calling KineticLaw_getNumLocalParameters().
| kl | the KineticLaw_t structure. |
| n | the index of the LocalParameter_t structure sought |
| LocalParameter_t* KineticLaw_getLocalParameterById | ( | KineticLaw_t * | kl, |
| const char * | sid | ||
| ) |
Get a parameter with identifier "id" out of the list of local parameters defined for the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| sid | the identifier of the LocalParameter_t structure sought |
NULL if no such LocalParameter_t exists in the given KineticLaw_t structure. | const ASTNode_t* KineticLaw_getMath | ( | const KineticLaw_t * | kl | ) |
Gets the mathematical expression of this KineticLaw_t structure as an ASTNode_t structure.
This is fundamentally equivalent to KineticLaw_getFormula(). The latter is provided principally for compatibility with SBML Level 1, which represented mathematical formulas in text-string form.
| kl | the KineticLaw_t structure. |
| const XMLNamespaces_t* KineticLaw_getNamespaces | ( | KineticLaw_t * | kl | ) |
Returns a list of XMLNamespaces_t associated with this KineticLaw_t structure.
| kl | the KineticLaw_t structure |
| unsigned int KineticLaw_getNumLocalParameters | ( | const KineticLaw_t * | kl | ) |
Get the number of local parameters defined in the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| unsigned int KineticLaw_getNumParameters | ( | const KineticLaw_t * | kl | ) |
Get the number of local parameters defined in the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| Parameter_t* KineticLaw_getParameter | ( | KineticLaw_t * | kl, |
| unsigned int | n | ||
| ) |
Get the nth parameter in the list of local parameters in the given KineticLaw_t structure.
Callers should first find out how many parameters are in the list by calling KineticLaw_getNumParameters().
| kl | the KineticLaw_t structure. |
| n | the index of the Parameter_t structure sought |
| Parameter_t* KineticLaw_getParameterById | ( | KineticLaw_t * | kl, |
| const char * | sid | ||
| ) |
Get a parameter with identifier "id" out of the list of local parameters defined for the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| sid | the identifier of the Parameter_t structure sought |
NULL if no such Parameter_t exists in the given KineticLaw_t structure. | const char* KineticLaw_getSubstanceUnits | ( | const KineticLaw_t * | kl | ) |
Gets the value of the "substanceUnits" attribute of the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| const char* KineticLaw_getTimeUnits | ( | const KineticLaw_t * | kl | ) |
Gets the value of the "timeUnits" attribute of the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| int KineticLaw_isSetFormula | ( | const KineticLaw_t * | kl | ) |
Predicate returning nonzero (for true) or zero (for false) depending on whether the "formula" attribute of the given KineticLaw_t structure is set.
This is fundamentally equivalent to KineticLaw_isSetMath(). It is provided principally for compatibility with SBML Level 1.
| kl | the KineticLaw_t structure. |
| int KineticLaw_isSetMath | ( | const KineticLaw_t * | kl | ) |
Predicate returning nonzero (for true) or zero (for false) depending on whether the "math" subelement of the given KineticLaw_t structure is set.
This is fundamentally equivalent to KineticLaw_isSetFormula(). The latter provided principally for compatibility with SBML Level 1, which represented mathematical formulas in text-string form.
| kl | the KineticLaw_t structure. |
| int KineticLaw_isSetSubstanceUnits | ( | const KineticLaw_t * | kl | ) |
Predicate returning nonzero (for true) or zero (for false) depending on whether the "timeUnits" attribute of the given KineticLaw_t structure is set.
| kl | the KineticLaw_t structure. |
| int KineticLaw_isSetTimeUnits | ( | const KineticLaw_t * | kl | ) |
Predicate returning nonzero (for true) or zero (for false) depending on whether the "timeUnits" attribute of the given KineticLaw_t structure is set.
| kl | the KineticLaw_t structure. |
| LocalParameter_t* KineticLaw_removeLocalParameter | ( | KineticLaw_t * | kl, |
| unsigned int | n | ||
| ) |
Removes the nth LocalParameter_t object from the list of local parameters in this KineticLaw_t object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
| m | the Model_t structure |
| n | the integer index of the LocalParameter_t sought |
NULL is returned if the given index is out of range. | LocalParameter_t* KineticLaw_removeLocalParameterById | ( | KineticLaw_t * | kl, |
| const char * | sid | ||
| ) |
Removes the LocalParameter_t object with the given "id" attribute from the list of local parameters in this KineticLaw_t object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
| m | the KineticLaw_t structure |
| sid | the string of the "id" attribute of the LocalParameter_t sought |
NULL is returned if no KineticLaw_t object with the identifier exists in this KineticLaw_t object. | Parameter_t* KineticLaw_removeParameter | ( | KineticLaw_t * | kl, |
| unsigned int | n | ||
| ) |
Removes the nth Parameter_t object from the list of local parameters in this KineticLaw_t object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
| m | the Model_t structure |
| n | the integer index of the Parameter_t sought |
NULL is returned if the given index is out of range. | Parameter_t* KineticLaw_removeParameterById | ( | KineticLaw_t * | kl, |
| const char * | sid | ||
| ) |
Removes the Parameter_t object with the given "id" attribute from the list of local parameters in this KineticLaw_t object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
| m | the KineticLaw_t structure |
| sid | the string of the "id" attribute of the Parameter_t sought |
NULL is returned if no KineticLaw_t object with the identifier exists in this KineticLaw_t object. | int KineticLaw_setFormula | ( | KineticLaw_t * | kl, |
| const char * | formula | ||
| ) |
Sets the formula of the given KineticLaw_t structure.
This is fundamentally equivalent to KineticLaw_setMath(). It is provided principally for compatibility with SBML Level 1.
| kl | the KineticLaw_t structure. |
| formula | the mathematical expression, in text-string form. |
| int KineticLaw_setMath | ( | KineticLaw_t * | kl, |
| const ASTNode_t * | math | ||
| ) |
Sets the formula of the given KineticLaw_t structure.
This is fundamentally equivalent to KineticLaw_setFormula(). The latter provided principally for compatibility with SBML Level 1, which represented mathematical formulas in text-string form.
| kl | the KineticLaw_t structure. |
| math | an ASTNode_t structure representing the mathematical formula |
| int KineticLaw_setSubstanceUnits | ( | KineticLaw_t * | kl, |
| const char * | sid | ||
| ) |
Sets the "substanceUnits" attribute of the given KineticLaw_t structure.
The identifier string sid is copied.
| kl | the KineticLaw_t structure. |
| sid | the identifier of the units |
| int KineticLaw_setTimeUnits | ( | KineticLaw_t * | kl, |
| const char * | sid | ||
| ) |
Sets the "timeUnits" attribute of the given KineticLaw_t structure.
The identifier string sid is copied.
| kl | the KineticLaw_t structure. |
| sid | the identifier of the units |
| int KineticLaw_unsetSubstanceUnits | ( | KineticLaw_t * | kl | ) |
Unsets the "substanceUnits" attribute of the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |
| int KineticLaw_unsetTimeUnits | ( | KineticLaw_t * | kl | ) |
Unsets the "timeUnits" attribute of the given KineticLaw_t structure.
| kl | the KineticLaw_t structure. |