libSBML C API
5.18.0
|
The DefaultTerm_t defines the default result of a Transition_t, held in the (required) "resultLevel" attribute. This term is used when there are no other FunctionTerm_t elements or when none of the Math elements of the FunctionTerm_t elements evaluate to true
.
Public Member Functions | |
DefaultTerm_t * | DefaultTerm_clone (DefaultTerm_t *dt) |
Returns a copy of the given DefaultTerm_t structure. More... | |
DefaultTerm_t * | DefaultTerm_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new DefaultTerm_t structure using the given SBML level and version , and the pkgVersion package version. More... | |
void | DefaultTerm_free (DefaultTerm_t *dt) |
Frees the given DefaultTerm_t structure. More... | |
int | DefaultTerm_getResultLevel (DefaultTerm_t *dt) |
Takes a DefaultTerm_t structure and returns its resultLevel. More... | |
int | DefaultTerm_hasRequiredAttributes (DefaultTerm_t *dt) |
Predicate returning true or false depending on whether all the required attributes for the given DefaultTerm_t structure have been set. More... | |
int | DefaultTerm_isSetResultLevel (DefaultTerm_t *dt) |
Predicate returning 1 (true) or 0 (false) depending on whether the given DefaultTerm_t structure's resultLevel is set. More... | |
int | DefaultTerm_setResultLevel (DefaultTerm_t *dt, int resultLevel) |
Sets the "resultLevel" attribute of the given DefaultTerm_t structure. More... | |
int | DefaultTerm_unsetResultLevel (DefaultTerm_t *dt) |
Unsets the "resultLevel" attribute of the given DefaultTerm_t structure. More... | |
DefaultTerm_t * DefaultTerm_clone | ( | DefaultTerm_t * | dt | ) |
Returns a copy of the given DefaultTerm_t structure.
dt | the DefaultTerm_t structure to copy. |
DefaultTerm_t * DefaultTerm_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new DefaultTerm_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 DefaultTerm_t. |
version | an unsigned int, the SBML Version to assign to this DefaultTerm_t. |
pkgVersion | an unsigned int, the SBML 'Qual' package Version to assign to this DefaultTerm_t. |
void DefaultTerm_free | ( | DefaultTerm_t * | dt | ) |
Frees the given DefaultTerm_t structure.
dt | the DefaultTerm_t structure to free. |
int DefaultTerm_getResultLevel | ( | DefaultTerm_t * | dt | ) |
Takes a DefaultTerm_t structure and returns its resultLevel.
dt | the DefaultTerm_t whose resultLevel is sought. |
int
. int DefaultTerm_hasRequiredAttributes | ( | DefaultTerm_t * | dt | ) |
Predicate returning true
or false
depending on whether all the required attributes for the given DefaultTerm_t structure have been set.
int DefaultTerm_isSetResultLevel | ( | DefaultTerm_t * | dt | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given DefaultTerm_t structure's resultLevel is set.
dt | the DefaultTerm_t structure to query. |
1
(true) if the "resultLevel" attribute of the given DefaultTerm_t structure is set, 0
(false) otherwise. int DefaultTerm_setResultLevel | ( | DefaultTerm_t * | dt, |
int | resultLevel | ||
) |
Sets the "resultLevel" attribute of the given DefaultTerm_t structure.
dt | the DefaultTerm_t structure. |
resultLevel | the value of resultLevel to assign to the "resultLevel" attribute. |
int DefaultTerm_unsetResultLevel | ( | DefaultTerm_t * | dt | ) |
Unsets the "resultLevel" attribute of the given DefaultTerm_t structure.
dt | the DefaultTerm_t structure to unset. |