Definitions of Species and ListOfSpecies.


Functions | |
| Species_t * | ListOfSpecies_getById (ListOf_t *lo, const char *sid) |
| Species_t * | ListOfSpecies_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| Species_t * | Species_clone (const Species_t *s) |
| Creates a deep copy of the given Species_t structure. | |
| Species_t * | Species_create (unsigned int level, unsigned int version) |
Creates a new Species_t structure using the given SBML level and version values. | |
| Species_t * | Species_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new Species_t structure using the given SBMLNamespaces_t structure. | |
| void | Species_free (Species_t *s) |
| Frees the given Species_t structure. | |
| int | Species_getBoundaryCondition (const Species_t *s) |
| Get the value of the "boundaryCondition" attribute. | |
| int | Species_getCharge (const Species_t *s) |
| Get the value of the "charge" attribute. | |
| const char * | Species_getCompartment (const Species_t *s) |
| Get the compartment in which this species is located. | |
| int | Species_getConstant (const Species_t *s) |
| Get the value of the "constant" attribute. | |
| const char * | Species_getConversionFactor (const Species_t *s) |
| Get the value of the "conversionFactor" attribute. | |
| UnitDefinition_t * | Species_getDerivedUnitDefinition (Species_t *s) |
| Constructs and returns a UnitDefinition_t structure that expresses the units of this Species_t structure. | |
| int | Species_getHasOnlySubstanceUnits (const Species_t *s) |
| Get the value of the "hasOnlySubstanceUnits" attribute. | |
| const char * | Species_getId (const Species_t *s) |
| Takes a Species_t structure and returns its identifier. | |
| double | Species_getInitialAmount (const Species_t *s) |
| Get the value of the "initialAmount" attribute. | |
| double | Species_getInitialConcentration (const Species_t *s) |
| Get the value of the "initialConcentration" attribute. | |
| const char * | Species_getName (const Species_t *s) |
| Takes a Species_t structure and returns its name. | |
| const XMLNamespaces_t * | Species_getNamespaces (Species_t *c) |
| Returns a list of XMLNamespaces_t associated with this Species_t structure. | |
| const char * | Species_getSpatialSizeUnits (const Species_t *s) |
| Get the value of the "spatialSizeUnits" attribute. | |
| const char * | Species_getSpeciesType (const Species_t *s) |
| Get the species type of this Species_t structure, as indicated by the Species_t structure object's "speciesType" attribute value. | |
| const char * | Species_getSubstanceUnits (const Species_t *s) |
| Get the value of the "substanceUnit" attribute. | |
| const char * | Species_getUnits (const Species_t *s) |
| (SBML Level 1 only) Get the value of the "units" attribute. | |
| int | Species_hasRequiredAttributes (Species_t *c) |
Predicate returning true or false depending on whether all the required attributes for this Species object have been set. | |
| void | Species_initDefaults (Species_t *s) |
| Initializes the attributes of the given Species_t structure to the defaults defined in the specification of the relevant Level/Version of SBML. | |
| int | Species_isSetBoundaryCondition (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "boundaryCondition" of the given Species_t structure is set. | |
| int | Species_isSetCharge (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "charge" of the given Species_t structure is set. | |
| int | Species_isSetCompartment (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "compartment" of the given Species_t structure is set. | |
| int | Species_isSetConstant (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "constant" of the given Species_t structure is set. | |
| int | Species_isSetConversionFactor (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "conversionFactor" of the given Species_t structure is set. | |
| int | Species_isSetHasOnlySubstanceUnits (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "hasOnlySubstanceUnits" of the given Species_t structure is set. | |
| int | Species_isSetId (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "id" of the given Species_t structure is set. | |
| int | Species_isSetInitialAmount (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "initialAmount" of the given Species_t structure is set. | |
| int | Species_isSetInitialConcentration (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "compartment" of the given Species_t structure is set. | |
| int | Species_isSetName (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "name" of the given Species_t structure is set. | |
| int | Species_isSetSpatialSizeUnits (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "spatialSizeUnits" of the given Species_t structure is set. | |
| int | Species_isSetSpeciesType (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "speciesType" of the given Species_t structure is set. | |
| int | Species_isSetSubstanceUnits (const Species_t *s) |
| Predicate returning true or false depending on whether the attribute "substanceUnits" of the given Species_t structure is set. | |
| int | Species_isSetUnits (const Species_t *s) |
| (SBML Level 1 only) Predicate returning true or false depending on whether the attribute "units" of the given Species_t structure is set. | |
| int | Species_setBoundaryCondition (Species_t *s, int value) |
| Sets the "boundaryCondition" attribute of the given Species_t structure. | |
| int | Species_setCharge (Species_t *s, int value) |
| Sets the "charge" attribute of the given Species_t structure. | |
| int | Species_setCompartment (Species_t *s, const char *sid) |
| Sets the "compartment" attribute of the given Species_t structure. | |
| int | Species_setConstant (Species_t *s, int value) |
| Sets the "constant" attribute of the given Species_t structure. | |
| int | Species_setConversionFactor (Species_t *s, const char *sid) |
| Sets the "conversionFactor" attribute of the given Species_t structure. | |
| int | Species_setHasOnlySubstanceUnits (Species_t *s, int value) |
| Sets the "hasOnlySubstanceUnits" attribute of the given Species_t structure. | |
| int | Species_setId (Species_t *s, const char *sid) |
| Sets the "id" attribute of the given Species_t structure. | |
| int | Species_setInitialAmount (Species_t *s, double value) |
| Sets the "initialAmount" attribute value of the given Species_t structure. | |
| int | Species_setInitialConcentration (Species_t *s, double value) |
| Sets the "initialConcentration" attribute value of the given Species_t structure. | |
| int | Species_setName (Species_t *s, const char *string) |
| Sets the "name" attribute of the given Species_t structure. | |
| int | Species_setSpatialSizeUnits (Species_t *s, const char *sid) |
| Sets the "spatialSizeUnits" attribute of the given Species_t structure. | |
| int | Species_setSpeciesType (Species_t *s, const char *sid) |
| Sets the "speciesType" attribute of the given Species_t structure. | |
| int | Species_setSubstanceUnits (Species_t *s, const char *sid) |
| Sets the "substanceUnits" attribute of the given Species_t structure. | |
| int | Species_setUnits (Species_t *s, const char *sname) |
| (SBML Level 1 only) Sets the "units" attribute of the given Species_t structure. | |
| int | Species_unsetCharge (Species_t *s) |
| Unsets the "charge" attribute of the given Species_t structure. | |
| int | Species_unsetConversionFactor (Species_t *s) |
| Unsets the "conversionFactor" attribute of the given Species_t structure. | |
| int | Species_unsetInitialAmount (Species_t *s) |
| Unsets the "initialAmount" attribute of the given Species_t structure. | |
| int | Species_unsetInitialConcentration (Species_t *s) |
| Unsets the "initialConcentration" attribute of the given Species_t structure. | |
| int | Species_unsetName (Species_t *s) |
| Unsets the "name" attribute of the given Species_t structure. | |
| int | Species_unsetSpatialSizeUnits (Species_t *s) |
| Unsets the "spatialSizeUnits" attribute of the given Species_t structure. | |
| int | Species_unsetSpeciesType (Species_t *s) |
| Unsets the "speciesType" attribute of the given Species_t structure. | |
| int | Species_unsetSubstanceUnits (Species_t *s) |
| Unsets the "substanceUnits" attribute of the given Species_t structure. | |
| int | Species_unsetUnits (Species_t *s) |
| Unsets the "units" attribute of the given Species_t structure. | |
| Species_t* ListOfSpecies_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | Species_t* ListOfSpecies_removeById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
Removes item in this ListOf items with the given id or NULL if no such item exists.
The caller owns the returned item and is responsible for deleting it.
| Species_t* Species_clone | ( | const Species_t * | s | ) |
Creates a deep copy of the given Species_t structure.
| p | the Species_t structure to be copied |
| Species_t* Species_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new Species_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this Species |
| version | an unsigned int, the SBML Version to assign to this Species |
level and version for the document override those used to create the Species. 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. | Species_t* Species_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new Species_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this Species |
sbmlns namespaces for the document override those used to create the Species. 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 Species_free | ( | Species_t * | s | ) |
Frees the given Species_t structure.
| s | the Species_t structure to be freed. |
| int Species_getBoundaryCondition | ( | const Species_t * | s | ) |
Get the value of the "boundaryCondition" attribute.
| s | the Species_t structure |
| int Species_getCharge | ( | const Species_t * | s | ) |
Get the value of the "charge" attribute.
| s | the Species_t structure |
| const char* Species_getCompartment | ( | const Species_t * | s | ) |
Get the compartment in which this species is located.
| s | the Species_t structure |
| int Species_getConstant | ( | const Species_t * | s | ) |
Get the value of the "constant" attribute.
| s | the Species_t structure |
false otherwise. | const char* Species_getConversionFactor | ( | const Species_t * | s | ) |
Get the value of the "conversionFactor" attribute.
| s | the Species_t structure |
| UnitDefinition_t* Species_getDerivedUnitDefinition | ( | Species_t * | s | ) |
Constructs and returns a UnitDefinition_t structure that expresses the units of this Species_t structure.
| s | the Species_t structure whose units are to be returned. |
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.
| int Species_getHasOnlySubstanceUnits | ( | const Species_t * | s | ) |
Get the value of the "hasOnlySubstanceUnits" attribute.
| s | the Species_t structure |
| const char* Species_getId | ( | const Species_t * | s | ) |
Takes a Species_t structure and returns its identifier.
| s | the Species_t structure whose identifier is sought |
s, as a pointer to a string. | double Species_getInitialAmount | ( | const Species_t * | s | ) |
Get the value of the "initialAmount" attribute.
| s | the Species_t structure |
| double Species_getInitialConcentration | ( | const Species_t * | s | ) |
Get the value of the "initialConcentration" attribute.
| s | the Species_t structure |
| const char* Species_getName | ( | const Species_t * | s | ) |
Takes a Species_t structure and returns its name.
| s | the Species_t structure whose name is sought. |
s, as a pointer to a string. | const XMLNamespaces_t* Species_getNamespaces | ( | Species_t * | s | ) |
Returns a list of XMLNamespaces_t associated with this Species_t structure.
| s | the Species_t structure |
| const char* Species_getSpatialSizeUnits | ( | const Species_t * | s | ) |
Get the value of the "spatialSizeUnits" attribute.
| s | the Species_t structure |
| const char* Species_getSpeciesType | ( | const Species_t * | s | ) |
Get the species type of this Species_t structure, as indicated by the Species_t structure object's "speciesType" attribute value.
| s | the Species_t structure |
s as a string. | const char* Species_getSubstanceUnits | ( | const Species_t * | s | ) |
Get the value of the "substanceUnit" attribute.
| s | the Species_t structure |
| const char* Species_getUnits | ( | const Species_t * | s | ) |
(SBML Level 1 only) Get the value of the "units" attribute.
| s | the Species_t structure |
| int Species_hasRequiredAttributes | ( | Species_t * | s | ) |
Predicate returning true or false depending on whether all the required attributes for this Species object have been set.
| s | the Species_t structure to check. |
| void Species_initDefaults | ( | Species_t * | s | ) |
Initializes the attributes of the given Species_t structure to the defaults defined in the specification of the relevant Level/Version of SBML.
1 (true) 0 (false) 0 (false)| s | the Species_t structure. |
| int Species_isSetBoundaryCondition | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "boundaryCondition" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetCharge | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "charge" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetCompartment | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "compartment" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetConstant | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "constant" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetConversionFactor | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "conversionFactor" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetHasOnlySubstanceUnits | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "hasOnlySubstanceUnits" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetId | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "id" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetInitialAmount | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "initialAmount" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetInitialConcentration | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "compartment" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetName | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "name" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetSpatialSizeUnits | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "spatialSizeUnits" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetSpeciesType | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "speciesType" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetSubstanceUnits | ( | const Species_t * | s | ) |
Predicate returning true or false depending on whether the attribute "substanceUnits" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_isSetUnits | ( | const Species_t * | s | ) |
(SBML Level 1 only) Predicate returning true or false depending on whether the attribute "units" of the given Species_t structure is set.
| s | the Species_t structure |
| int Species_setBoundaryCondition | ( | Species_t * | s, |
| int | value | ||
| ) |
Sets the "boundaryCondition" attribute of the given Species_t structure.
| s | the Species_t structure |
| value | nonzero to indicate true, zero to indicate false. |
| int Species_setCharge | ( | Species_t * | s, |
| int | value | ||
| ) |
Sets the "charge" attribute of the given Species_t structure.
| s | the Species_t structure |
| value | the value of charge to assign to the "charge" attribute |
| int Species_setCompartment | ( | Species_t * | s, |
| const char * | sid | ||
| ) |
Sets the "compartment" attribute of the given Species_t structure.
This function copies the string given in compartment. If the string is NULL, this function performs unsetCompartment() instead.
| s | the Species_t structure |
| sid | the identifer to which the "compartment" attribute should be set. |
| int Species_setConstant | ( | Species_t * | s, |
| int | value | ||
| ) |
Sets the "constant" attribute of the given Species_t structure.
| s | the Species_t structure |
| value | nonzero to indicate true, zero to indicate false. |
| int Species_setConversionFactor | ( | Species_t * | s, |
| const char * | sid | ||
| ) |
Sets the "conversionFactor" attribute of the given Species_t structure.
This function copies the string given in sid. If the string is NULL, this function performs unsetConversionFactor() instead.
| s | the Species_t structure |
| conversionFactor | the identifer to which the "conversionFactor" attribute should be set. |
| int Species_setHasOnlySubstanceUnits | ( | Species_t * | s, |
| int | value | ||
| ) |
Sets the "hasOnlySubstanceUnits" attribute of the given Species_t structure.
| s | the Species_t structure |
| value | nonzero to indicate true, zero to indicate false. |
| int Species_setId | ( | Species_t * | s, |
| const char * | sid | ||
| ) |
Sets the "id" attribute of the given Species_t structure.
This function copies the string given in sid. If the string is NULL, this function performs unsetId() instead.
| s | the Species_t structure |
| sid | the identifier string to which the "id" attribute should be set. |
| int Species_setInitialAmount | ( | Species_t * | s, |
| double | value | ||
| ) |
Sets the "initialAmount" attribute value of the given Species_t structure.
As a side-effect, calling this function also unsets the "initialConcentration" attribute.
| s | the Species_t structure |
| value | the numerical value for the "initialAmount" attribute |
| int Species_setInitialConcentration | ( | Species_t * | s, |
| double | value | ||
| ) |
Sets the "initialConcentration" attribute value of the given Species_t structure.
As a side-effect, calling this function also unsets the "initialAmount" attribute.
| s | the Species_t structure |
| value | the numerical value for the "initialConcentration" attribute |
| int Species_setName | ( | Species_t * | s, |
| const char * | name | ||
| ) |
Sets the "name" attribute of the given Species_t structure.
This function copies the string given in name. If the string is NULL, this function performs unsetName() instead.
| s | the Species_t structure |
| name | the name string to which the "name" attribute should be set. |
| int Species_setSpatialSizeUnits | ( | Species_t * | s, |
| const char * | sid | ||
| ) |
Sets the "spatialSizeUnits" attribute of the given Species_t structure.
This function copies the string given in sid. If the string is NULL, this function performs unsetSpatialSizeUnits() instead.
| s | the Species_t structure |
| spatialSizeUnits | the identifer to which the "spatialSizeUnits" attribute should be set. |
| int Species_setSpeciesType | ( | Species_t * | s, |
| const char * | sid | ||
| ) |
Sets the "speciesType" attribute of the given Species_t structure.
This function copies the string given in sid. If the string is NULL, this function performs unsetSpeciesType() instead.
| s | the Species_t structure |
| speciesType | the identifer to which the "speciesType" attribute should be set. |
| int Species_setSubstanceUnits | ( | Species_t * | s, |
| const char * | sid | ||
| ) |
Sets the "substanceUnits" attribute of the given Species_t structure.
This function copies the string given in sid. If the string is NULL, this function performs unsetSubstanceUnits() instead.
| s | the Species_t structure |
| substanceUnits | the identifer to which the "substanceUnits" attribute should be set. |
| int Species_setUnits | ( | Species_t * | s, |
| const char * | sname | ||
| ) |
(SBML Level 1 only) Sets the "units" attribute of the given Species_t structure.
This function copies the string given in sid. If the string is NULL, this function performs unsetUnits() instead.
| s | the Species_t structure |
| units | the identifer to which the "units" attribute should be set. |
| int Species_unsetCharge | ( | Species_t * | s | ) |
Unsets the "charge" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |
| int Species_unsetConversionFactor | ( | Species_t * | s | ) |
Unsets the "conversionFactor" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |
| int Species_unsetInitialAmount | ( | Species_t * | s | ) |
Unsets the "initialAmount" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |
| int Species_unsetInitialConcentration | ( | Species_t * | s | ) |
Unsets the "initialConcentration" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |
| int Species_unsetName | ( | Species_t * | s | ) |
Unsets the "name" attribute of the given Species_t structure.
| int Species_unsetSpatialSizeUnits | ( | Species_t * | s | ) |
Unsets the "spatialSizeUnits" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |
| int Species_unsetSpeciesType | ( | Species_t * | s | ) |
Unsets the "speciesType" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |
| int Species_unsetSubstanceUnits | ( | Species_t * | s | ) |
Unsets the "substanceUnits" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |
| int Species_unsetUnits | ( | Species_t * | s | ) |
Unsets the "units" attribute of the given Species_t structure.
| s | the Species_t structure whose attribute is to be unset. |