libSBML C API
5.18.0
|
The FluxBound_t class of objects is used in Version 1 of the SBML Level 3 Flux Balance Constraints (“fbc”) package to express a single (in)equality that provides the maximum or minimum value that a reaction flux can obtain at steady state. (This same information is encoded differently in Version 2 of “fbc”; see the "upperFluxBound" and "lowerFluxBound" attributes on FbcReactionPlugin_t.)
In addition to the common optional attributes "id" and "name", FluxBound_t takes three required attributes: "reaction", "operation" and "value". These three attributes define the meaning of the FluxBound_t, and are interpreted using the following expression:
The "reaction" attribute takes a value of SIdRef
. The value must be the identifier of a Reaction_t object defined within the enclosing model.
The "operation" attribute takes a value from the enumeration FluxBoundOperation_t representing different mathematical inequalities. Possible values for "operation" include "greaterEqual"
, "equal"
, and others.
The "value" attribute takes a numerical value of type double
, and represents the value of the flux bound. The permitted values include positive infinity ("INF"
) and negative infinity ("-INF"
).
The following is an example of a set of flux bounds encoded in this form; it also demonstrates the use of ListOfFluxBounds_t.
<fbc:listOfFluxBounds> <fbc:fluxBound fbc:id="R1b" fbc:reaction="R1" fbc:operation="greaterEqual" fbc:value="1.2"/> <fbc:fluxBound fbc:id="R2b" fbc:reaction="R2" fbc:operation="lessEqual" fbc:value="-1.2"/> <fbc:fluxBound fbc:id="R3b" fbc:reaction="R3" fbc:operation="greaterEqual" fbc:value="-INF"/> <fbc:fluxBound fbc:id="R4b" fbc:reaction="R4" fbc:operation="lessEqual" fbc:value="INF"/> <fbc:fluxBound fbc:id="R5b" fbc:reaction="R5" fbc:operation="equal" fbc:value="1"/> </fbc:listOfFluxBounds>
Public Member Functions | |
FluxBound_t * | FluxBound_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new FluxBound_t structure using the given SBML level and version , and the pkgVersion package version. More... | |
const char * | FluxBound_getId (FluxBound_t *fb) |
Takes an FluxBound_t structure and returns its identifier. More... | |
const char * | FluxBound_getName (FluxBound_t *fb) |
Takes a FluxBound_t structure and returns its name. More... | |
const char * | FluxBound_getOperation (FluxBound_t *fb) |
Takes a FluxBound_t structure and returns its operation. More... | |
const char * | FluxBound_getReaction (FluxBound_t *fb) |
Takes a FluxBound_t structure and returns its reaction. More... | |
double | FluxBound_getValue (FluxBound_t *fb) |
Takes a FluxBound_t structure and returns its value. More... | |
int | FluxBound_isSetId (FluxBound_t *fb) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FluxBound_t structure's identifier is set. More... | |
int | FluxBound_isSetName (FluxBound_t *fb) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FluxBound_t structure's name is set. More... | |
int | FluxBound_isSetOperation (FluxBound_t *fb) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FluxBound_t structure's operation is set. More... | |
int | FluxBound_isSetReaction (FluxBound_t *fb) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FluxBound_t structure's reaction is set. More... | |
int | FluxBound_isSetValue (FluxBound_t *fb) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FluxBound_t structure's value is set. More... | |
int | FluxBound_setId (FluxBound_t *fb, const char *sid) |
Assigns the identifier of an FluxBound_t structure. More... | |
int | FluxBound_setName (FluxBound_t *fb, const char *name) |
Sets the name of the given FluxBound_t to a copy of name . More... | |
int | FluxBound_setOperation (FluxBound_t *fb, const char *operation) |
Sets the operation of the given FluxBound_t to a copy of operation . More... | |
int | FluxBound_setReaction (FluxBound_t *fb, const char *reaction) |
Sets the reaction of the given FluxBound_t to a copy of reaction . More... | |
int | FluxBound_setValue (FluxBound_t *fb, double value) |
Sets the "value" attribute of the given FluxBound_t structure. More... | |
int | FluxBound_unsetId (FluxBound_t *fb) |
Unsets the "id" attribute of the given FluxBound_t structure. More... | |
int | FluxBound_unsetName (FluxBound_t *fb) |
Unsets the "name" attribute of the given FluxBound_t structure. More... | |
int | FluxBound_unsetOperation (FluxBound_t *fb) |
Unsets the "operation" attribute of the given FluxBound_t structure. More... | |
int | FluxBound_unsetReaction (FluxBound_t *fb) |
Unsets the "reaction" attribute of the given FluxBound_t structure. More... | |
int | FluxBound_unsetValue (FluxBound_t *fb) |
Unsets the "value" attribute of the given FluxBound_t structure. More... | |
FluxBoundOperation_t | FluxBoundOperation_fromString (const char *s) |
Returns the FluxBoundOperation_t enumeration corresponding to the given string, or FLUXBOUND_OPERATION_UNKNOWN if there is no such match. More... | |
int | FluxBoundOperation_isValidFluxBoundOperation (FluxBoundOperation_t type) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FluxBoundOperation_t is valid. More... | |
int | FluxBoundOperation_isValidFluxBoundOperationString (const char *s) |
Predicate returning 1 (true) or 0 (false) depending on whether the given string is a valid FluxBoundOperation_t. More... | |
const char * | FluxBoundOperation_toString (FluxBoundOperation_t type) |
Returns the string version of the provided FluxBoundOperation_t enumeration. More... | |
FluxBound_t * FluxBound_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new FluxBound_t structure using the given SBML level
and version
, and the pkgVersion
package version.
level | an unsigned int, the SBML Level to assign to this FluxBound_t. |
version | an unsigned int, the SBML Version to assign to this FluxBound_t. |
pkgVersion | an unsigned int, the SBML 'fbc' package Version to assign to this FluxBound_t. |
const char * FluxBound_getId | ( | FluxBound_t * | fb | ) |
Takes an FluxBound_t structure and returns its identifier.
fb | the FluxBound_t structure whose identifier is sought. |
const char * FluxBound_getName | ( | FluxBound_t * | fb | ) |
Takes a FluxBound_t structure and returns its name.
fb | the FluxBound_t whose name is sought. |
const char * FluxBound_getOperation | ( | FluxBound_t * | fb | ) |
Takes a FluxBound_t structure and returns its operation.
fb | the FluxBound_t whose operation is sought. |
const char * FluxBound_getReaction | ( | FluxBound_t * | fb | ) |
Takes a FluxBound_t structure and returns its reaction.
fb | the FluxBound_t whose reaction is sought. |
double FluxBound_getValue | ( | FluxBound_t * | fb | ) |
Takes a FluxBound_t structure and returns its value.
fb | the FluxBound_t whose value is sought. |
double
. int FluxBound_isSetId | ( | FluxBound_t * | fb | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FluxBound_t structure's identifier is set.
fb | the FluxBound_t structure to query. |
1
(true) if the "id" attribute of the given FluxBound_t structure is set, 0
(false) otherwise. int FluxBound_isSetName | ( | FluxBound_t * | fb | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FluxBound_t structure's name is set.
fb | the FluxBound_t structure to query. |
1
(true) if the "name" attribute of the given FluxBound_t structure is set, 0
(false) otherwise. int FluxBound_isSetOperation | ( | FluxBound_t * | fb | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FluxBound_t structure's operation is set.
fb | the FluxBound_t structure to query. |
1
(true) if the "operation" attribute of the given FluxBound_t structure is set, 0
(false) otherwise. int FluxBound_isSetReaction | ( | FluxBound_t * | fb | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FluxBound_t structure's reaction is set.
fb | the FluxBound_t structure to query. |
1
(true) if the "reaction" attribute of the given FluxBound_t structure is set, 0
(false) otherwise. int FluxBound_isSetValue | ( | FluxBound_t * | fb | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FluxBound_t structure's value is set.
fb | the FluxBound_t structure to query. |
1
(true) if the "value" attribute of the given FluxBound_t structure is set, 0
(false) otherwise. int FluxBound_setId | ( | FluxBound_t * | fb, |
const char * | sid | ||
) |
Assigns the identifier of an FluxBound_t structure.
This makes a copy of the string passed in the parameter sid
.
fb | the FluxBound_t structure to set. |
sid | the string to use as the identifier. |
sid
of NULL is equivalent to unsetting the "id" attribute. int FluxBound_setName | ( | FluxBound_t * | fb, |
const char * | name | ||
) |
Sets the name of the given FluxBound_t to a copy of name
.
fb | the FluxBound_t structure to set. |
name | the name to assign to the given FluxBound_t's "name" attribute. |
int FluxBound_setOperation | ( | FluxBound_t * | fb, |
const char * | operation | ||
) |
Sets the operation of the given FluxBound_t to a copy of operation
.
fb | the FluxBound_t structure to set. |
operation | the operation to assign to the given FluxBound_t's "operation" attribute. |
int FluxBound_setReaction | ( | FluxBound_t * | fb, |
const char * | reaction | ||
) |
Sets the reaction of the given FluxBound_t to a copy of reaction
.
fb | the FluxBound_t structure to set. |
reaction | the reaction to assign to the given FluxBound_t's "reaction" attribute. |
int FluxBound_setValue | ( | FluxBound_t * | fb, |
double | value | ||
) |
Sets the "value" attribute of the given FluxBound_t structure.
fb | the FluxBound_t structure. |
value | the value of value to assign to the "value" attribute. |
int FluxBound_unsetId | ( | FluxBound_t * | fb | ) |
Unsets the "id" attribute of the given FluxBound_t structure.
fb | the FluxBound_t structure to unset. |
int FluxBound_unsetName | ( | FluxBound_t * | fb | ) |
Unsets the "name" attribute of the given FluxBound_t structure.
fb | the FluxBound_t structure to unset. |
int FluxBound_unsetOperation | ( | FluxBound_t * | fb | ) |
Unsets the "operation" attribute of the given FluxBound_t structure.
fb | the FluxBound_t structure to unset. |
int FluxBound_unsetReaction | ( | FluxBound_t * | fb | ) |
Unsets the "reaction" attribute of the given FluxBound_t structure.
fb | the FluxBound_t structure to unset. |
int FluxBound_unsetValue | ( | FluxBound_t * | fb | ) |
Unsets the "value" attribute of the given FluxBound_t structure.
fb | the FluxBound_t structure to unset. |
FluxBoundOperation_t FluxBoundOperation_fromString | ( | const char * | s | ) |
Returns the FluxBoundOperation_t enumeration corresponding to the given string, or FLUXBOUND_OPERATION_UNKNOWN if there is no such match.
The matching is case-sensitive: "lessEqual" will return FLUXBOUND_OPERATION_LESS_EQUAL, but "lessequal" will return FLUXBOUND_OPERATION_UNKNOWN.
s | the string to convert to a FluxBoundOperation_t. |
int FluxBoundOperation_isValidFluxBoundOperation | ( | FluxBoundOperation_t | type | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FluxBoundOperation_t is valid.
type | the FluxBoundOperation_t enumeration to query. |
1
(true) if the FluxBoundOperation_t is FLUXBOUND_OPERATION_LESS_EQUAL, FLUXBOUND_OPERATION_GREATER_EQUAL, FLUXBOUND_OPERATION_LESS, FLUXBOUND_OPERATION_GREATER, or FLUXBOUND_OPERATION_EQUAL; 0
(false) otherwise (including FLUXBOUND_OPERATION_UNKNOWN).int FluxBoundOperation_isValidFluxBoundOperationString | ( | const char * | s | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given string is a valid FluxBoundOperation_t.
The matching is case-sensitive: "lessEqual" will return 1
(true), but "lessequal" will return 0
(false).
s | the string to query. |
1
(true) if the string is "lessEqual", "greaterEqual", "less", "greater", or "equal"; 0
(false) otherwise.const char * FluxBoundOperation_toString | ( | FluxBoundOperation_t | type | ) |
Returns the string version of the provided FluxBoundOperation_t enumeration.
type | the FluxBoundOperation_t enumeration to convert. |
NULL
if the value is FLUXBOUND_OPERATION_UNKNOWN or another invalid enumeration value.