Implementation of EventAssignment.

Functions | |
| EventAssignment_t * | EventAssignment_clone (const EventAssignment_t *ea) |
| Creates a (deep) copy of the given EventAssignment_t structure. | |
| int | EventAssignment_containsUndeclaredUnits (EventAssignment_t *ea) |
Predicate returning true or false depending on whether the math expression of this EventAssignment_t contains parameters/numbers with undeclared units. | |
| EventAssignment_t * | EventAssignment_create (unsigned int level, unsigned int version) |
Creates a new EventAssignment_t structure using the given SBML level and version values. | |
| EventAssignment_t * | EventAssignment_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new EventAssignment_t structure using the given SBMLNamespaces_t structure. | |
| void | EventAssignment_free (EventAssignment_t *ea) |
| Frees the given EventAssignment_t structure. | |
| UnitDefinition_t * | EventAssignment_getDerivedUnitDefinition (EventAssignment_t *ea) |
| Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this EventAssignment_t. | |
| const ASTNode_t * | EventAssignment_getMath (const EventAssignment_t *ea) |
| Gets the mathematical formula stored in the given EventAssignment_t structure. | |
| const XMLNamespaces_t * | EventAssignment_getNamespaces (EventAssignment_t *ea) |
| Returns a list of XMLNamespaces_t associated with this EventAssignment_t structure. | |
| const char * | EventAssignment_getVariable (const EventAssignment_t *ea) |
| Gets the value of the "variable" attribute of this EventAssignment_t structure. | |
| int | EventAssignment_isSetMath (const EventAssignment_t *ea) |
| Predicate for testing whether the attribute "variable" of the given EventAssignment_t structure is set. | |
| int | EventAssignment_isSetVariable (const EventAssignment_t *ea) |
| Predicate for testing whether the attribute "variable" of the given EventAssignment_t structure is set. | |
| int | EventAssignment_setMath (EventAssignment_t *ea, const ASTNode_t *math) |
| Sets the "math" subelement content of the given EventAssignment_t structure to the given ASTNode. | |
| int | EventAssignment_setVariable (EventAssignment_t *ea, const char *sid) |
| Sets the attribute "variable" of the given EventAssignment_t structure to a copy of the given identifier string. | |
| EventAssignment_t * | ListOfEventAssignments_getById (ListOf_t *lo, const char *sid) |
| EventAssignment_t * | ListOfEventAssignments_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| EventAssignment_t* EventAssignment_clone | ( | const EventAssignment_t * | ea | ) |
Creates a (deep) copy of the given EventAssignment_t structure.
| ea | the EventAssignment_t to be copied |
ea. | int EventAssignment_containsUndeclaredUnits | ( | EventAssignment_t * | ea | ) |
Predicate returning true or false depending on whether the math expression of this EventAssignment_t contains parameters/numbers with undeclared units.
true if the math expression of this EventAssignment_t includes parameters/numbers with undeclared units, false otherwise.true indicates that the UnitDefinition_t returned by the getDerivedUnitDefinition function may not accurately represent the units of the expression.| EventAssignment_t* EventAssignment_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new EventAssignment_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this EventAssignment |
| version | an unsigned int, the SBML Version to assign to this EventAssignment |
level and version for the document override those used to create the EventAssignment. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | EventAssignment_t* EventAssignment_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new EventAssignment_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this EventAssignment |
sbmlns namespaces for the document override those used to create the EventAssignment. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | void EventAssignment_free | ( | EventAssignment_t * | ea | ) |
Frees the given EventAssignment_t structure.
| ea | the EventAssignment_t to be freed. |
| UnitDefinition_t* EventAssignment_getDerivedUnitDefinition | ( | EventAssignment_t * | ea | ) |
Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this EventAssignment_t.
Note that the functionality that facilitates unit analysis depends on the model as a whole. Thus, in cases where the object has not been added to a model or the model itself is incomplete, unit analysis is not possible and this method will return NULL.
| const ASTNode_t* EventAssignment_getMath | ( | const EventAssignment_t * | ea | ) |
Gets the mathematical formula stored in the given EventAssignment_t structure.
| ea | the EventAssignment_t structure to query. |
ea. | const XMLNamespaces_t* EventAssignment_getNamespaces | ( | EventAssignment_t * | ea | ) |
Returns a list of XMLNamespaces_t associated with this EventAssignment_t structure.
| ea | the EventAssignment_t structure |
| const char* EventAssignment_getVariable | ( | const EventAssignment_t * | ea | ) |
Gets the value of the "variable" attribute of this EventAssignment_t structure.
| ea | the EventAssignment_t structure to query. |
ea. | int EventAssignment_isSetMath | ( | const EventAssignment_t * | ea | ) |
Predicate for testing whether the attribute "variable" of the given EventAssignment_t structure is set.
| ea | the EventAssignment_t structure to query. |
ea is set, zero (0) otherwise. | int EventAssignment_isSetVariable | ( | const EventAssignment_t * | ea | ) |
Predicate for testing whether the attribute "variable" of the given EventAssignment_t structure is set.
| ea | the EventAssignment_t structure to query. |
ea is set, zero (0) otherwise. | int EventAssignment_setMath | ( | EventAssignment_t * | ea, |
| const ASTNode_t * | math | ||
| ) |
Sets the "math" subelement content of the given EventAssignment_t structure to the given ASTNode.
The given math ASTNode is copied.
| ea | the EventAssignment_t to set. |
| math | the ASTNode to copy into ea |
| int EventAssignment_setVariable | ( | EventAssignment_t * | ea, |
| const char * | sid | ||
| ) |
Sets the attribute "variable" of the given EventAssignment_t structure to a copy of the given identifier string.
| ea | the EventAssignment_t to set. |
| sid | the identifier of a Compartment, Species or (global) Parameter defined in this model. |
| EventAssignment_t* ListOfEventAssignments_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | EventAssignment_t* ListOfEventAssignments_removeById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
Removes item in this ListOf items with the given id or NULL if no such item exists.
The caller owns the returned item and is responsible for deleting it.