libSBML C API
5.18.0
|
This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.
The MultiModelPlugin_t object is used to extend the standard SBML Model_t object to allow a ListOfSpeciesTypes_t child.
int MultiModelPlugin_addMultiSpeciesType | ( | MultiModelPlugin_t * | mmp, |
const MultiSpeciesType_t * | mst | ||
) |
Adds a copy of the given MultiSpeciesType_t to this MultiModelPlugin_t.
mmp | the MultiModelPlugin_t structure to which the MultiSpeciesType_t should be added. |
mst | the MultiSpeciesType_t object to add. |
MultiSpeciesType_t * MultiModelPlugin_createMultiSpeciesType | ( | MultiModelPlugin_t * | mmp | ) |
Creates a new MultiSpeciesType_t object, adds it to this MultiModelPlugin_t object and returns the MultiSpeciesType_t object created.
mmp | the MultiModelPlugin_t structure to which the MultiSpeciesType_t should be added. |
ListOf_t * MultiModelPlugin_getListOfMultiSpeciesTypes | ( | MultiModelPlugin_t * | mmp | ) |
Returns a ListOf_t * containing MultiSpeciesType_t objects from this MultiModelPlugin_t.
mmp | the MultiModelPlugin_t structure whose ListOfMultiSpeciesTypes_t is sought. |
MultiSpeciesType_t * MultiModelPlugin_getMultiSpeciesType | ( | MultiModelPlugin_t * | mmp, |
unsigned int | n | ||
) |
Get a MultiSpeciesType_t from the MultiModelPlugin_t.
mmp | the MultiModelPlugin_t structure to search. |
n | an unsigned int representing the index of the MultiSpeciesType_t to retrieve. |
n
is invalid, NULL
is returned.MultiSpeciesType_t * MultiModelPlugin_getMultiSpeciesTypeById | ( | MultiModelPlugin_t * | mmp, |
const char * | sid | ||
) |
Get a MultiSpeciesType_t from the MultiModelPlugin_t based on its identifier.
mmp | the MultiModelPlugin_t structure to search. |
sid | a string representing the identifier of the MultiSpeciesType_t to retrieve. |
sid
or NULL
if no such MultiSpeciesType_t exists.unsigned int MultiModelPlugin_getNumMultiSpeciesTypes | ( | MultiModelPlugin_t * | mmp | ) |
Get the number of MultiSpeciesType_t objects in this MultiModelPlugin_t.
mmp | the MultiModelPlugin_t structure to query. |
MultiSpeciesType_t * MultiModelPlugin_removeMultiSpeciesType | ( | MultiModelPlugin_t * | mmp, |
unsigned int | n | ||
) |
Removes the nth MultiSpeciesType_t from this MultiModelPlugin_t and returns a pointer to it.
mmp | the MultiModelPlugin_t structure to search. |
n | an unsigned int representing the index of the MultiSpeciesType_t to remove. |
MultiSpeciesType_t * MultiModelPlugin_removeMultiSpeciesTypeById | ( | MultiModelPlugin_t * | mmp, |
const char * | sid | ||
) |
Removes the MultiSpeciesType_t from this MultiModelPlugin_t based on its identifier and returns a pointer to it.
mmp | the MultiModelPlugin_t structure to search. |
sid | a string representing the identifier of the MultiSpeciesType_t to remove. |