|
libSBML C API
5.18.0
|
Sometimes a species appears in the kinetic rate formula of a reaction but is itself neither created nor destroyed in that reaction (for example, because it acts as a catalyst or inhibitor). In SBML, all such species are simply called modifiers without regard to the detailed role of those species in the model. The Reaction_t structure provides a way to express which species act as modifiers in a given reaction. This is the purpose of the list of modifiers available in Reaction_t. The list contains instances of ModifierSpeciesReference_t structures.
The ModifierSpeciesReference_t structure inherits the mandatory attribute "species" and optional attributes "id" and "name" from the parent class SimpleSpeciesReference_t. See the description of SimpleSpeciesReference_t for more information about these.
The value of the "species" attribute must be the identifier of a species defined in the enclosing Model_t; this species is designated as a modifier for the current reaction. A reaction may have any number of modifiers. It is permissible for a modifier species to appear simultaneously in the list of reactants and products of the same reaction where it is designated as a modifier, as well as to appear in the list of reactants, products and modifiers of other reactions in the model.
| ModifierSpeciesReference_t * ModifierSpeciesReference_clone | ( | ModifierSpeciesReference_t * | msr | ) |
Creates a deep copy of the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure to be copied. |
| ModifierSpeciesReference_t * ModifierSpeciesReference_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new ModifierSpeciesReference_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML level to assign to this ModifierSpeciesReference_t structure. |
| version | an unsigned int, the SBML version to assign to this ModifierSpeciesReference_t structure. |
| ModifierSpeciesReference_t * ModifierSpeciesReference_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new ModifierSpeciesReference_t structure using the given SBMLNamespaces_t structure, sbmlns.
| sbmlns | an SBMLNamespaces_t structure. |
| void ModifierSpeciesReference_free | ( | ModifierSpeciesReference_t * | msr | ) |
Frees the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure to be freed. |
| const char * ModifierSpeciesReference_getId | ( | const ModifierSpeciesReference_t * | msr | ) |
Returns the value of the "id" attribute of the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure. |
| const char * ModifierSpeciesReference_getName | ( | const ModifierSpeciesReference_t * | msr | ) |
Returns the value of the "name" attribute of the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure. |
| const char * ModifierSpeciesReference_getSpecies | ( | const ModifierSpeciesReference_t * | msr | ) |
Returns the value of the "species" attribute of the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure. |
| int ModifierSpeciesReference_hasRequiredAttributes | ( | const ModifierSpeciesReference_t * | msr | ) |
Predicate returning 1 (true) or 0 (false) depending on whether all the required attributes of the given ModifierSpeciesReference_t structure have been set.
| msr | the ModifierSpeciesReference_t structure to check. |
1 (true) if all the required attributes for this structure have been defined, 0 (false) otherwise. | int ModifierSpeciesReference_isSetId | ( | const ModifierSpeciesReference_t * | msr | ) |
Predicate returning 1 (true) if the given ModifierSpeciesReference_t structure's "id" is set.
| msr | the ModifierSpeciesReference_t structure. |
1 (true) if the "id" of this ModifierSpeciesReference_t structure is set, 0 (false) otherwise. | int ModifierSpeciesReference_isSetName | ( | const ModifierSpeciesReference_t * | msr | ) |
Predicate returning 1 (true) if the given ModifierSpeciesReference_t structure's "name" is set.
| msr | the ModifierSpeciesReference_t structure. |
1 (true) if the "name" of this ModifierSpeciesReference_t structure is set, 0 (false) otherwise. | int ModifierSpeciesReference_isSetSpecies | ( | const ModifierSpeciesReference_t * | msr | ) |
Predicate returning 1 (true) if the given ModifierSpeciesReference_t structure's "species" is set.
| msr | the ModifierSpeciesReference_t structure. |
1 (true) if the "species" of this ModifierSpeciesReference_t structure is set, 0 (false) otherwise. | int ModifierSpeciesReference_setId | ( | ModifierSpeciesReference_t * | msr, |
| const char * | id | ||
| ) |
Sets the "id" attribute of the given ModifierSpeciesReference_t structure.
This function copies the string given in id. If the string is a null pointer, this function is equivalent to calling ModifierSpeciesReference_unsetId().
| msr | the ModifierSpeciesReference_t structure. |
| id | the string to which the structures "id" attribute should be set. |
id is equivalent to unsetting the value of the "id" attribute. | int ModifierSpeciesReference_setName | ( | ModifierSpeciesReference_t * | msr, |
| const char * | name | ||
| ) |
Sets the "name" attribute of the given ModifierSpeciesReference_t structure.
This function copies the string given in name. If the string is a null pointer, this function is equivalent to calling ModifierSpeciesReference_unsetName().
| msr | the ModifierSpeciesReference_t structure. |
| name | the string to which the structures "name" attribute should be set. |
name is equivalent to unsetting the value of the "name" attribute. | int ModifierSpeciesReference_setSpecies | ( | ModifierSpeciesReference_t * | msr, |
| const char * | species | ||
| ) |
Sets the "species" attribute of the given ModifierSpeciesReference_t structure.
This function copies the string given in species. If the string is a null pointer, this function is equivalent to calling ModifierSpeciesReference_unsetSpecies().
| msr | the ModifierSpeciesReference_t structure. |
| species | the string to which the structures "species" attribute should be set. |
species is equivalent to unsetting the value of the "species" attribute. | int ModifierSpeciesReference_unsetId | ( | ModifierSpeciesReference_t * | msr | ) |
Unsets the value of the "id" attribute of the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure. |
| int ModifierSpeciesReference_unsetName | ( | ModifierSpeciesReference_t * | msr | ) |
Unsets the value of the "name" attribute of the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure. |
| int ModifierSpeciesReference_unsetSpecies | ( | ModifierSpeciesReference_t * | msr | ) |
Unsets the value of the "species" attribute of the given ModifierSpeciesReference_t structure.
| msr | the ModifierSpeciesReference_t structure. |