libSBML C API
5.18.0
|
FbcAnd_t class is used in Version 2 of the SBML Level 3 Flux Balance Constraints (“fbc”) package to represent an "and" relationship between two or more child FbcAssociation_t objects. In other words, it indicates that all 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 FbcAnd_t can potentially include nested "and"/"or" combinations of gene products.
Public Member Functions | |
int | FbcAnd_addAssociation (FbcAnd_t *fa, const FbcAssociation_t *a) |
Adds a copy of the given FbcAssociation_t to this FbcAnd_t. More... | |
FbcAnd_t * | FbcAnd_clone (const FbcAnd_t *fa) |
Creates and returns a deep copy of this FbcAnd_t object. More... | |
FbcAnd_t * | FbcAnd_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new FbcAnd_t using the given SBML Level, Version and “fbc” package version. More... | |
FbcAnd_t * | FbcAnd_createAnd (FbcAnd_t *fa) |
Creates a new FbcAnd_t object, adds it to this FbcAnd_t object and returns the FbcAnd_t object created. More... | |
GeneProductRef_t * | FbcAnd_createGeneProductRef (FbcAnd_t *fa) |
Creates a new GeneProductRef_t object, adds it to this FbcAnd_t object and returns the GeneProductRef_t object created. More... | |
FbcOr_t * | FbcAnd_createOr (FbcAnd_t *fa) |
Creates a new FbcOr_t object, adds it to this FbcAnd_t object and returns the FbcOr_t object created. More... | |
void | FbcAnd_free (FbcAnd_t *fa) |
Frees this FbcAnd_t object. More... | |
FbcAssociation_t * | FbcAnd_getAssociation (FbcAnd_t *fa, unsigned int n) |
Get an FbcAssociation_t from the FbcAnd_t. More... | |
FbcAssociation_t * | FbcAnd_getAssociationById (FbcAnd_t *fa, const char *sid) |
Get an FbcAssociation_t from the FbcAnd_t. More... | |
ListOf_t * | FbcAnd_getListOfFbcAssociations (FbcAnd_t *fa) |
Returns a ListOf_t * containing FbcAssociation_t objects from this FbcAnd_t. More... | |
unsigned int | FbcAnd_getNumAssociations (FbcAnd_t *fa) |
Get the number of FbcAssociation_t objects in this FbcAnd_t. More... | |
int | FbcAnd_hasRequiredAttributes (const FbcAnd_t *fa) |
Predicate returning 1 (true) if all the required attributes for this FbcAnd_t object have been set. More... | |
int | FbcAnd_hasRequiredElements (const FbcAnd_t *fa) |
Predicate returning 1 (true) if all the required elements for this FbcAnd_t object have been set. More... | |
FbcAssociation_t * | FbcAnd_removeAssociation (FbcAnd_t *fa, unsigned int n) |
Removes the nth FbcAssociation_t from this FbcAnd_t and returns a pointer to it. More... | |
int FbcAnd_addAssociation | ( | FbcAnd_t * | fa, |
const FbcAssociation_t * | a | ||
) |
Adds a copy of the given FbcAssociation_t to this FbcAnd_t.
fa | the FbcAnd_t structure to which the FbcAssociation_t should be added. |
a | the FbcAssociation_t object to add. |
FbcAnd_t * FbcAnd_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new FbcAnd_t using the given SBML Level, Version and “fbc” package version.
level | an unsigned int, the SBML Level to assign to this FbcAnd_t. |
version | an unsigned int, the SBML Version to assign to this FbcAnd_t. |
pkgVersion | an unsigned int, the SBML Fbc Version to assign to this FbcAnd_t. |
Creates a new FbcAnd_t object, adds it to this FbcAnd_t object and returns the FbcAnd_t object created.
GeneProductRef_t * FbcAnd_createGeneProductRef | ( | FbcAnd_t * | fa | ) |
Creates a new GeneProductRef_t object, adds it to this FbcAnd_t object and returns the GeneProductRef_t object created.
fa | the FbcAnd_t structure to which the GeneProductRef_t should be added. |
Creates a new FbcOr_t object, adds it to this FbcAnd_t object and returns the FbcOr_t object created.
FbcAssociation_t * FbcAnd_getAssociation | ( | FbcAnd_t * | fa, |
unsigned int | n | ||
) |
Get an FbcAssociation_t from the FbcAnd_t.
fa | the FbcAnd_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 * FbcAnd_getAssociationById | ( | FbcAnd_t * | fa, |
const char * | sid | ||
) |
Get an FbcAssociation_t from the FbcAnd_t.
fa | the FbcAnd_t structure to search. |
sid | the identifier of the FbcAssociation_t to retrieve. |
sid
in the ListOfAssociations within this FbcAnd_t.Returns a ListOf_t * containing FbcAssociation_t objects from this FbcAnd_t.
fa | the FbcAnd_t structure whose ListOfAssociations is sought. |
unsigned int FbcAnd_getNumAssociations | ( | FbcAnd_t * | fa | ) |
Get the number of FbcAssociation_t objects in this FbcAnd_t.
fa | the FbcAnd_t structure to query. |
int FbcAnd_hasRequiredAttributes | ( | const FbcAnd_t * | fa | ) |
int FbcAnd_hasRequiredElements | ( | const FbcAnd_t * | fa | ) |
Predicate returning 1
(true) if all the required elements for this FbcAnd_t object have been set.
fa | the FbcAnd_t structure. |
1
(true) to indicate that all the required elements of this FbcAnd_t have been set, otherwise 0
(false) is returned.FbcAssociation_t * FbcAnd_removeAssociation | ( | FbcAnd_t * | fa, |
unsigned int | n | ||
) |
Removes the nth FbcAssociation_t from this FbcAnd_t and returns a pointer to it.
fa | the FbcAnd_t structure to search. |
n | an unsigned int representing the index of the FbcAssociation_t to remove. |