|
libSBML C API
5.18.0
|
Each SpeciesFeature_t object is a child of the MultiSpeciesPlugin_t, which extends the Species_t. Each defines one feature of the parent Species_t. It has three optional attributes, "id", "name" and "component", and two required attributes, "speciesFeatureType" and "occur", and a required child ListOfSpeciesFeatureValues_t. SpeciesFeature_t serves to define the state of a component in a species by selecting values from the ListOfPossibleSpeciesFeatureValues_t of the referenced SpeciesFeatureType_t. Its "speciesFeatureType" attribue references the particular SpeciesFeatureType_t of which this Species_t is an example. The "occur" attribute defines the number of instances of the referenced SpeciesFeatureType_t. The optional "component" attribute, of type SIdRef, can be used to indicate which component of a Species_t the SpeciesFeature_t belongs to, and is required when the component cannot be identified only based on the speciesFeatureType attribute. The ListOfSpeciesFeatureValues_t contain one or more SpeciesFeatureValue_t objects—if more than one, the relationship between them is "or", defining a list of mutually exclusive possibilities. Each SpeciesFeatureValue_t serves to specify a value for a SpeciesFeature_t to select from the ListOfPossibleSpeciesFeatureValues_t defined in the referenced SpeciesFeatureType_t.
Public Member Functions | |
| int | SpeciesFeature_addSpeciesFeatureValue (SpeciesFeature_t *sf, const SpeciesFeatureValue_t *sfv) |
| Adds a copy of the given SpeciesFeatureValue_t to this SpeciesFeature_t. More... | |
| SpeciesFeature_t * | SpeciesFeature_clone (const SpeciesFeature_t *sf) |
| Creates and returns a deep copy of this SpeciesFeature_t object. More... | |
| SpeciesFeature_t * | SpeciesFeature_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new SpeciesFeature_t using the given SBML Level, Version and “multi” package version. More... | |
| SpeciesFeatureValue_t * | SpeciesFeature_createSpeciesFeatureValue (SpeciesFeature_t *sf) |
| Creates a new SpeciesFeatureValue_t object, adds it to this SpeciesFeature_t object and returns the SpeciesFeatureValue_t object created. More... | |
| void | SpeciesFeature_free (SpeciesFeature_t *sf) |
| Frees this SpeciesFeature_t object. More... | |
| char * | SpeciesFeature_getComponent (const SpeciesFeature_t *sf) |
| Returns the value of the "component" attribute of this SpeciesFeature_t. More... | |
| char * | SpeciesFeature_getId (const SpeciesFeature_t *sf) |
| Returns the value of the "id" attribute of this SpeciesFeature_t. More... | |
| ListOf_t * | SpeciesFeature_getListOfSpeciesFeatureValues (SpeciesFeature_t *sf) |
| Returns a ListOf_t * containing SpeciesFeatureValue_t objects from this SpeciesFeature_t. More... | |
| char * | SpeciesFeature_getName (const SpeciesFeature_t *sf) |
| Returns the value of the "name" attribute of this SpeciesFeature_t. More... | |
| unsigned int | SpeciesFeature_getNumSpeciesFeatureValues (SpeciesFeature_t *sf) |
| Get the number of SpeciesFeatureValue_t objects in this SpeciesFeature_t. More... | |
| unsigned int | SpeciesFeature_getOccur (const SpeciesFeature_t *sf) |
| Returns the value of the "occur" attribute of this SpeciesFeature_t. More... | |
| char * | SpeciesFeature_getSpeciesFeatureType (const SpeciesFeature_t *sf) |
| Returns the value of the "speciesFeatureType" attribute of this SpeciesFeature_t. More... | |
| SpeciesFeatureValue_t * | SpeciesFeature_getSpeciesFeatureValue (SpeciesFeature_t *sf, unsigned int n) |
| Get a SpeciesFeatureValue_t from the SpeciesFeature_t. More... | |
| int | SpeciesFeature_hasRequiredAttributes (const SpeciesFeature_t *sf) |
Predicate returning 1 (true) if all the required attributes for this SpeciesFeature_t object have been set. More... | |
| int | SpeciesFeature_isSetComponent (const SpeciesFeature_t *sf) |
Predicate returning 1 (true) if this SpeciesFeature_t's "component" attribute is set. More... | |
| int | SpeciesFeature_isSetId (const SpeciesFeature_t *sf) |
Predicate returning 1 (true) if this SpeciesFeature_t's "id" attribute is set. More... | |
| int | SpeciesFeature_isSetName (const SpeciesFeature_t *sf) |
Predicate returning 1 (true) if this SpeciesFeature_t's "name" attribute is set. More... | |
| int | SpeciesFeature_isSetOccur (const SpeciesFeature_t *sf) |
Predicate returning 1 (true) if this SpeciesFeature_t's "occur" attribute is set. More... | |
| int | SpeciesFeature_isSetSpeciesFeatureType (const SpeciesFeature_t *sf) |
Predicate returning 1 (true) if this SpeciesFeature_t's "speciesFeatureType" attribute is set. More... | |
| SpeciesFeatureValue_t * | SpeciesFeature_removeSpeciesFeatureValue (SpeciesFeature_t *sf, unsigned int n) |
| Removes the nth SpeciesFeatureValue_t from this SpeciesFeature_t and returns a pointer to it. More... | |
| int | SpeciesFeature_setComponent (SpeciesFeature_t *sf, const char *component) |
| Sets the value of the "component" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_setId (SpeciesFeature_t *sf, const char *id) |
| Sets the value of the "id" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_setName (SpeciesFeature_t *sf, const char *name) |
| Sets the value of the "name" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_setOccur (SpeciesFeature_t *sf, unsigned int occur) |
| Sets the value of the "occur" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_setSpeciesFeatureType (SpeciesFeature_t *sf, const char *speciesFeatureType) |
| Sets the value of the "speciesFeatureType" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_unsetComponent (SpeciesFeature_t *sf) |
| Unsets the value of the "component" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_unsetId (SpeciesFeature_t *sf) |
| Unsets the value of the "id" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_unsetName (SpeciesFeature_t *sf) |
| Unsets the value of the "name" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_unsetOccur (SpeciesFeature_t *sf) |
| Unsets the value of the "occur" attribute of this SpeciesFeature_t. More... | |
| int | SpeciesFeature_unsetSpeciesFeatureType (SpeciesFeature_t *sf) |
| Unsets the value of the "speciesFeatureType" attribute of this SpeciesFeature_t. More... | |
| int SpeciesFeature_addSpeciesFeatureValue | ( | SpeciesFeature_t * | sf, |
| const SpeciesFeatureValue_t * | sfv | ||
| ) |
Adds a copy of the given SpeciesFeatureValue_t to this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure to which the SpeciesFeatureValue_t should be added. |
| sfv | the SpeciesFeatureValue_t object to add. |
| SpeciesFeature_t * SpeciesFeature_clone | ( | const SpeciesFeature_t * | sf | ) |
Creates and returns a deep copy of this SpeciesFeature_t object.
| sf | the SpeciesFeature_t structure. |
| SpeciesFeature_t * SpeciesFeature_create | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new SpeciesFeature_t using the given SBML Level, Version and “multi” package version.
| level | an unsigned int, the SBML Level to assign to this SpeciesFeature_t. |
| version | an unsigned int, the SBML Version to assign to this SpeciesFeature_t. |
| pkgVersion | an unsigned int, the SBML Multi Version to assign to this SpeciesFeature_t. |
| SpeciesFeatureValue_t * SpeciesFeature_createSpeciesFeatureValue | ( | SpeciesFeature_t * | sf | ) |
Creates a new SpeciesFeatureValue_t object, adds it to this SpeciesFeature_t object and returns the SpeciesFeatureValue_t object created.
| sf | the SpeciesFeature_t structure to which the SpeciesFeatureValue_t should be added. |
| void SpeciesFeature_free | ( | SpeciesFeature_t * | sf | ) |
Frees this SpeciesFeature_t object.
| sf | the SpeciesFeature_t structure. |
| char * SpeciesFeature_getComponent | ( | const SpeciesFeature_t * | sf | ) |
Returns the value of the "component" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure whose component is sought. |
| char * SpeciesFeature_getId | ( | const SpeciesFeature_t * | sf | ) |
Returns the value of the "id" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure whose id is sought. |
| ListOf_t * SpeciesFeature_getListOfSpeciesFeatureValues | ( | SpeciesFeature_t * | sf | ) |
Returns a ListOf_t * containing SpeciesFeatureValue_t objects from this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure whose ListOfSpeciesFeatureValues_t is sought. |
| char * SpeciesFeature_getName | ( | const SpeciesFeature_t * | sf | ) |
Returns the value of the "name" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure whose name is sought. |
| unsigned int SpeciesFeature_getNumSpeciesFeatureValues | ( | SpeciesFeature_t * | sf | ) |
Get the number of SpeciesFeatureValue_t objects in this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure to query. |
| unsigned int SpeciesFeature_getOccur | ( | const SpeciesFeature_t * | sf | ) |
Returns the value of the "occur" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure whose occur is sought. |
| char * SpeciesFeature_getSpeciesFeatureType | ( | const SpeciesFeature_t * | sf | ) |
Returns the value of the "speciesFeatureType" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure whose speciesFeatureType is sought. |
| SpeciesFeatureValue_t * SpeciesFeature_getSpeciesFeatureValue | ( | SpeciesFeature_t * | sf, |
| unsigned int | n | ||
| ) |
Get a SpeciesFeatureValue_t from the SpeciesFeature_t.
| sf | the SpeciesFeature_t structure to search. |
| n | an unsigned int representing the index of the SpeciesFeatureValue_t to retrieve. |
n is invalid, NULL is returned.| int SpeciesFeature_hasRequiredAttributes | ( | const SpeciesFeature_t * | sf | ) |
Predicate returning 1 (true) if all the required attributes for this SpeciesFeature_t object have been set.
| sf | the SpeciesFeature_t structure. |
1 (true) to indicate that all the required attributes of this SpeciesFeature_t have been set, otherwise 0 (false) is returned.| int SpeciesFeature_isSetComponent | ( | const SpeciesFeature_t * | sf | ) |
Predicate returning 1 (true) if this SpeciesFeature_t's "component" attribute is set.
| sf | the SpeciesFeature_t structure. |
1 (true) if this SpeciesFeature_t's "component" attribute has been set, otherwise 0 (false) is returned. | int SpeciesFeature_isSetId | ( | const SpeciesFeature_t * | sf | ) |
Predicate returning 1 (true) if this SpeciesFeature_t's "id" attribute is set.
| sf | the SpeciesFeature_t structure. |
1 (true) if this SpeciesFeature_t's "id" attribute has been set, otherwise 0 (false) is returned. | int SpeciesFeature_isSetName | ( | const SpeciesFeature_t * | sf | ) |
Predicate returning 1 (true) if this SpeciesFeature_t's "name" attribute is set.
| sf | the SpeciesFeature_t structure. |
1 (true) if this SpeciesFeature_t's "name" attribute has been set, otherwise 0 (false) is returned. | int SpeciesFeature_isSetOccur | ( | const SpeciesFeature_t * | sf | ) |
Predicate returning 1 (true) if this SpeciesFeature_t's "occur" attribute is set.
| sf | the SpeciesFeature_t structure. |
1 (true) if this SpeciesFeature_t's "occur" attribute has been set, otherwise 0 (false) is returned. | int SpeciesFeature_isSetSpeciesFeatureType | ( | const SpeciesFeature_t * | sf | ) |
Predicate returning 1 (true) if this SpeciesFeature_t's "speciesFeatureType" attribute is set.
| sf | the SpeciesFeature_t structure. |
1 (true) if this SpeciesFeature_t's "speciesFeatureType" attribute has been set, otherwise 0 (false) is returned. | SpeciesFeatureValue_t * SpeciesFeature_removeSpeciesFeatureValue | ( | SpeciesFeature_t * | sf, |
| unsigned int | n | ||
| ) |
Removes the nth SpeciesFeatureValue_t from this SpeciesFeature_t and returns a pointer to it.
| sf | the SpeciesFeature_t structure to search. |
| n | an unsigned int representing the index of the SpeciesFeatureValue_t to remove. |
| int SpeciesFeature_setComponent | ( | SpeciesFeature_t * | sf, |
| const char * | component | ||
| ) |
Sets the value of the "component" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| component | const char * value of the "component" attribute to be set. |
| int SpeciesFeature_setId | ( | SpeciesFeature_t * | sf, |
| const char * | id | ||
| ) |
Sets the value of the "id" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| id | const char * value of the "id" attribute to be set. |
id = NULL or an empty string is equivalent to calling SpeciesFeature_unsetId(). | int SpeciesFeature_setName | ( | SpeciesFeature_t * | sf, |
| const char * | name | ||
| ) |
Sets the value of the "name" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| name | const char * value of the "name" attribute to be set. |
name = NULL or an empty string is equivalent to calling SpeciesFeature_unsetName(). | int SpeciesFeature_setOccur | ( | SpeciesFeature_t * | sf, |
| unsigned int | occur | ||
| ) |
Sets the value of the "occur" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| occur | unsigned int value of the "occur" attribute to be set. |
| int SpeciesFeature_setSpeciesFeatureType | ( | SpeciesFeature_t * | sf, |
| const char * | speciesFeatureType | ||
| ) |
Sets the value of the "speciesFeatureType" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| speciesFeatureType | const char * value of the "speciesFeatureType" attribute to be set. |
| int SpeciesFeature_unsetComponent | ( | SpeciesFeature_t * | sf | ) |
Unsets the value of the "component" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| int SpeciesFeature_unsetId | ( | SpeciesFeature_t * | sf | ) |
Unsets the value of the "id" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| int SpeciesFeature_unsetName | ( | SpeciesFeature_t * | sf | ) |
Unsets the value of the "name" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| int SpeciesFeature_unsetOccur | ( | SpeciesFeature_t * | sf | ) |
Unsets the value of the "occur" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |
| int SpeciesFeature_unsetSpeciesFeatureType | ( | SpeciesFeature_t * | sf | ) |
Unsets the value of the "speciesFeatureType" attribute of this SpeciesFeature_t.
| sf | the SpeciesFeature_t structure. |