libSBML C API
5.18.0
|
The extension of SBML Level 3 Core's Model_t class is relatively straightforward: the Qualitative Models Package adds two lists, one for holding qualitativeSpecies (ListOfQualitativeSpecies_t), and the other for holding transitions (ListOfTransitions_t). The Model_t element may contain at most one ListOfQualitativeSpecies_t, which must contain at least one QualitativeSpecies_t. It may also contain at most one ListOfTransitions_t which must contain at least one Transition_t.
int QualModelPlugin_addQualitativeSpecies | ( | QualModelPlugin_t * | qmp, |
const QualitativeSpecies_t * | qs | ||
) |
Adds a copy of the given QualitativeSpecies_t to this QualModelPlugin_t.
qmp | the QualModelPlugin_t structure to which the QualitativeSpecies_t should be added. |
qs | the QualitativeSpecies_t object to add. |
int QualModelPlugin_addTransition | ( | QualModelPlugin_t * | qmp, |
const Transition_t * | t | ||
) |
Adds a copy of the given Transition_t to this QualModelPlugin_t.
qmp | the QualModelPlugin_t structure to which the Transition_t should be added. |
t | the Transition_t object to add. |
QualitativeSpecies_t * QualModelPlugin_createQualitativeSpecies | ( | QualModelPlugin_t * | qmp | ) |
Creates a new QualitativeSpecies_t object, adds it to this QualModelPlugin_t object and returns the QualitativeSpecies_t object created.
qmp | the QualModelPlugin_t structure to which the QualitativeSpecies_t should be added. |
Transition_t * QualModelPlugin_createTransition | ( | QualModelPlugin_t * | qmp | ) |
Creates a new Transition_t object, adds it to this QualModelPlugin_t object and returns the Transition_t object created.
qmp | the QualModelPlugin_t structure to which the Transition_t should be added. |
ListOf_t * QualModelPlugin_getListOfQualitativeSpecies | ( | QualModelPlugin_t * | qmp | ) |
Returns a ListOf_t * containing QualitativeSpecies_t objects from this QualModelPlugin_t.
qmp | the QualModelPlugin_t structure whose ListOfQualitativeSpecies_t is sought. |
ListOf_t * QualModelPlugin_getListOfTransitions | ( | QualModelPlugin_t * | qmp | ) |
Returns a ListOf_t * containing Transition_t objects from this QualModelPlugin_t.
qmp | the QualModelPlugin_t structure whose ListOfTransitions_t is sought. |
unsigned int QualModelPlugin_getNumQualitativeSpecies | ( | QualModelPlugin_t * | qmp | ) |
Get the number of QualitativeSpecies_t objects in this QualModelPlugin_t.
qmp | the QualModelPlugin_t structure to query. |
unsigned int QualModelPlugin_getNumTransitions | ( | QualModelPlugin_t * | qmp | ) |
Get the number of Transition_t objects in this QualModelPlugin_t.
qmp | the QualModelPlugin_t structure to query. |
const QualitativeSpecies_t * QualModelPlugin_getQualitativeSpecies | ( | QualModelPlugin_t * | qmp, |
unsigned int | n | ||
) |
Get a QualitativeSpecies_t from the QualModelPlugin_t.
qmp | the QualModelPlugin_t structure to search. |
n | an unsigned int representing the index of the QualitativeSpecies_t to retrieve. |
n
is invalid, NULL
is returned. const QualitativeSpecies_t * QualModelPlugin_getQualitativeSpeciesByCompartment | ( | QualModelPlugin_t * | qmp, |
const char * | sid | ||
) |
Get a QualitativeSpecies_t from the QualModelPlugin_t based on the Compartment_t to which it refers.
qmp | the QualModelPlugin_t structure to search. |
sid | a string representing the compartment attribute of the QualitativeSpecies_t object to retrieve. |
NULL
if no such QualitativeSpecies_t exists. const QualitativeSpecies_t * QualModelPlugin_getQualitativeSpeciesById | ( | QualModelPlugin_t * | qmp, |
const char * | sid | ||
) |
Get a QualitativeSpecies_t from the QualModelPlugin_t based on its identifier.
qmp | the QualModelPlugin_t structure to search. |
sid | a string representing the identifier of the QualitativeSpecies_t to retrieve. |
NULL
if no such QualitativeSpecies_t exists. const Transition_t * QualModelPlugin_getTransition | ( | QualModelPlugin_t * | qmp, |
unsigned int | n | ||
) |
Get a Transition_t from the QualModelPlugin_t.
qmp | the QualModelPlugin_t structure to search. |
n | an unsigned int representing the index of the Transition_t to retrieve. |
n
is invalid, NULL
is returned. const Transition_t * QualModelPlugin_getTransitionById | ( | QualModelPlugin_t * | qmp, |
const char * | sid | ||
) |
Get a Transition_t from the QualModelPlugin_t based on its identifier.
qmp | the QualModelPlugin_t structure to search. |
sid | a string representing the identifier of the Transition_t to retrieve. |
NULL
if no such Transition_t exists. QualitativeSpecies_t * QualModelPlugin_removeQualitativeSpecies | ( | QualModelPlugin_t * | qmp, |
unsigned int | n | ||
) |
Removes the nth QualitativeSpecies_t from this QualModelPlugin_t and returns a pointer to it.
qmp | the QualModelPlugin_t structure to search. |
n | an unsigned int representing the index of the QualitativeSpecies_t to remove. |
QualitativeSpecies_t * QualModelPlugin_removeQualitativeSpeciesById | ( | QualModelPlugin_t * | qmp, |
const char * | sid | ||
) |
Removes the QualitativeSpecies_t from this QualModelPlugin_t based on its identifier and returns a pointer to it.
qmp | the QualModelPlugin_t structure to search. |
sid | a string representing the identifier of the QualitativeSpecies_t to remove. |
NULL
if no such QualitativeSpecies_t exists. Transition_t * QualModelPlugin_removeTransition | ( | QualModelPlugin_t * | qmp, |
unsigned int | n | ||
) |
Removes the nth Transition_t from this QualModelPlugin_t and returns a pointer to it.
qmp | the QualModelPlugin_t structure to search. |
n | an unsigned int representing the index of the Transition_t to remove. |
Transition_t * QualModelPlugin_removeTransitionById | ( | QualModelPlugin_t * | qmp, |
const char * | sid | ||
) |
Removes the Transition_t from this QualModelPlugin_t based on its identifier and returns a pointer to it.
qmp | the QualModelPlugin_t structure to search. |
sid | a string representing the identifier of the Transition_t to remove. |
NULL
if no such Transition_t exists.