libSBML C API
5.18.0
|
FbcOr_t class is used in Version 2 of the SBML Level 3 Flux Balance Constraints (“fbc”) package to represent an "or" relationship between two or more child FbcAssociation_t objects. In other words, it indicates that only one of the child objects are included. Note that since the FbcAssociation_t class is the parent class of GeneProductRef_t, FbcAnd_t, and FbcOr_t, a given FbcOr_t can potentially include nested "and"/"or" combinations of gene products.
Public Member Functions | |
int | FbcOr_addAssociation (FbcOr_t *fo, const FbcAssociation_t *a) |
Adds a copy of the given FbcAssociation_t to this FbcOr_t. More... | |
FbcOr_t * | FbcOr_clone (const FbcOr_t *fo) |
Creates and returns a deep copy of this FbcOr_t object. More... | |
FbcOr_t * | FbcOr_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new FbcOr_t using the given SBML Level, Version and “fbc” package version. More... | |
FbcAnd_t * | FbcOr_createAnd (FbcOr_t *fo) |
Creates a new FbcAnd_t object, adds it to this FbcOr_t object and returns the FbcAnd_t object created. More... | |
GeneProductRef_t * | FbcOr_createGeneProductRef (FbcOr_t *fo) |
Creates a new GeneProductRef_t object, adds it to this FbcOr_t object and returns the GeneProductRef_t object created. More... | |
FbcOr_t * | FbcOr_createOr (FbcOr_t *fo) |
Creates a new FbcOr_t object, adds it to this FbcOr_t object and returns the FbcOr_t object created. More... | |
void | FbcOr_free (FbcOr_t *fo) |
Frees this FbcOr_t object. More... | |
FbcAssociation_t * | FbcOr_getAssociation (FbcOr_t *fo, unsigned int n) |
Get an FbcAssociation_t from the FbcOr_t. More... | |
FbcAssociation_t * | FbcOr_getAssociationById (FbcOr_t *fo, const char *sid) |
Get an FbcAssociation_t from the FbcOr_t. More... | |
ListOf_t * | FbcOr_getListOfFbcAssociations (FbcOr_t *fo) |
Returns a ListOf_t * containing FbcAssociation_t objects from this FbcOr_t. More... | |
unsigned int | FbcOr_getNumAssociations (FbcOr_t *fo) |
Get the number of FbcAssociation_t objects in this FbcOr_t. More... | |
int | FbcOr_hasRequiredAttributes (const FbcOr_t *fo) |
Predicate returning 1 (true) if all the required attributes for this FbcOr_t object have been set. More... | |
int | FbcOr_hasRequiredElements (const FbcOr_t *fo) |
Predicate returning 1 (true) if all the required elements for this FbcOr_t object have been set. More... | |
FbcAssociation_t * | FbcOr_removeAssociation (FbcOr_t *fo, unsigned int n) |
Removes the nth FbcAssociation_t from this FbcOr_t and returns a pointer to it. More... | |
FbcAssociation_t * | FbcOr_removeAssociationById (FbcOr_t *fo, const char *sid) |
Removes the FbcAssociation_t with the given identifier from this FbcOr_t and returns a pointer to it. More... | |
int FbcOr_addAssociation | ( | FbcOr_t * | fo, |
const FbcAssociation_t * | a | ||
) |
Adds a copy of the given FbcAssociation_t to this FbcOr_t.
fo | the FbcOr_t structure to which the FbcAssociation_t should be added. |
a | the FbcAssociation_t object to add. |
Creates and returns a deep copy of this FbcOr_t object.
fo | the FbcOr_t structure. |
FbcOr_t * FbcOr_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new FbcOr_t using the given SBML Level, Version and “fbc” package version.
level | an unsigned int, the SBML Level to assign to this FbcOr_t. |
version | an unsigned int, the SBML Version to assign to this FbcOr_t. |
pkgVersion | an unsigned int, the SBML Fbc Version to assign to this FbcOr_t. |
Creates a new FbcAnd_t object, adds it to this FbcOr_t object and returns the FbcAnd_t object created.
GeneProductRef_t * FbcOr_createGeneProductRef | ( | FbcOr_t * | fo | ) |
Creates a new GeneProductRef_t object, adds it to this FbcOr_t object and returns the GeneProductRef_t object created.
fo | the FbcOr_t structure to which the GeneProductRef_t should be added. |
Creates a new FbcOr_t object, adds it to this FbcOr_t object and returns the FbcOr_t object created.
FbcAssociation_t * FbcOr_getAssociation | ( | FbcOr_t * | fo, |
unsigned int | n | ||
) |
Get an FbcAssociation_t from the FbcOr_t.
fo | the FbcOr_t structure to search. |
n | an unsigned int representing the index of the FbcAssociation_t to retrieve. |
n
is invalid, NULL
is returned.FbcAssociation_t * FbcOr_getAssociationById | ( | FbcOr_t * | fo, |
const char * | sid | ||
) |
Get an FbcAssociation_t from the FbcOr_t.
fo | the FbcOr_t structure to search. |
sid | the identifier of the FbcAssociation_t to retrieve. |
Returns a ListOf_t * containing FbcAssociation_t objects from this FbcOr_t.
fo | the FbcOr_t structure whose ListOfAssociations is sought. |
unsigned int FbcOr_getNumAssociations | ( | FbcOr_t * | fo | ) |
Get the number of FbcAssociation_t objects in this FbcOr_t.
fo | the FbcOr_t structure to query. |
int FbcOr_hasRequiredAttributes | ( | const FbcOr_t * | fo | ) |
int FbcOr_hasRequiredElements | ( | const FbcOr_t * | fo | ) |
Predicate returning 1
(true) if all the required elements for this FbcOr_t object have been set.
fo | the FbcOr_t structure. |
1
(true) to indicate that all the required elements of this FbcOr_t have been set, otherwise 0
(false) is returned.FbcAssociation_t * FbcOr_removeAssociation | ( | FbcOr_t * | fo, |
unsigned int | n | ||
) |
Removes the nth FbcAssociation_t from this FbcOr_t and returns a pointer to it.
fo | the FbcOr_t structure to search. |
n | an unsigned int representing the index of the FbcAssociation_t to remove. |
FbcAssociation_t * FbcOr_removeAssociationById | ( | FbcOr_t * | fo, |
const char * | sid | ||
) |
Removes the FbcAssociation_t with the given identifier from this FbcOr_t and returns a pointer to it.
fo | the FbcOr_t structure to search. |
sid | the identifier of the FbcAssociation_t to remove. |