Definitions of Event and ListOfEvents.


Functions | |
| int | Event_addEventAssignment (Event_t *e, const EventAssignment_t *ea) |
| Appends a copy of the given EventAssignment_t structure to this Event_t structure. | |
| Event_t * | Event_clone (const Event_t *e) |
| Returns a copy of the given Event_t structure. | |
| Event_t * | Event_create (unsigned int level, unsigned int version) |
Creates a new Event_t structure using the given SBML level and version values. | |
| Delay_t * | Event_createDelay (Event_t *e) |
| Creates a new, empty Delay_t structure, adds it to this Event, and returns the Delay_t. | |
| EventAssignment_t * | Event_createEventAssignment (Event_t *e) |
| Creates a new, empty EventAssignment_t structure, adds it to this Event's list of event assignments, and returns the EventAssignment_t. | |
| Priority_t * | Event_createPriority (Event_t *e) |
| Creates a new, empty Priority_t structure, adds it to this Event, and returns the Priority_t. | |
| Trigger_t * | Event_createTrigger (Event_t *e) |
| Creates a new, empty Trigger_t structure, adds it to this Event, and returns the Trigger_t. | |
| Event_t * | Event_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new Event_t structure using the given SBMLNamespaces_t structure. | |
| void | Event_free (Event_t *e) |
| Frees the given Event_t structure. | |
| Delay_t * | Event_getDelay (Event_t *e) |
| Takes an Event_t structure and returns its Delay_t structure. | |
| EventAssignment_t * | Event_getEventAssignment (Event_t *e, unsigned int n) |
| Return a specific EventAssignment_t structure of this Event_t. | |
| EventAssignment_t * | Event_getEventAssignmentByVar (Event_t *e, const char *variable) |
Return the event assignment indicated by the given variable. | |
| const char * | Event_getId (const Event_t *e) |
| Takes an Event_t structure and returns its identifier. | |
| ListOf_t * | Event_getListOfEventAssignments (Event_t *e) |
| Get the list of EventAssignment_t structures from this Event_t structure. | |
| const char * | Event_getName (const Event_t *e) |
| Takes a Event_t structure and returns its name. | |
| const XMLNamespaces_t * | Event_getNamespaces (Event_t *c) |
| Returns a list of XMLNamespaces_t associated with this Event_t structure. | |
| unsigned int | Event_getNumEventAssignments (const Event_t *e) |
| Returns the number of EventAssignment_t objects attached to this Event. | |
| Priority_t * | Event_getPriority (Event_t *e) |
| Takes an Event_t structure and returns its Priority_t structure. | |
| const char * | Event_getTimeUnits (const Event_t *e) |
| Takes an Event_t structure and returns the value of its "timeUnits" attribute. | |
| Trigger_t * | Event_getTrigger (Event_t *e) |
| Takes an Event_t structure and returns its Trigger_t structure. | |
| int | Event_getUseValuesFromTriggerTime (const Event_t *e) |
| Takes an Event_t structure and returns the value of its "useValuesFromTriggerTime" attribute. | |
| int | Event_hasRequiredAttributes (Event_t *e) |
Predicate returning true or false depending on whether all the required attributes for this Event object have been set. | |
| int | Event_hasRequiredElements (Event_t *e) |
Predicate returning true or false depending on whether all the required elements for this Event object have been set. | |
| int | Event_isSetDelay (const Event_t *e) |
Predicate returning true or false depending on whether the given Event_t structure's delay is set. | |
| int | Event_isSetId (const Event_t *e) |
Predicate returning true or false depending on whether the given Event_t structure's identifier is set. | |
| int | Event_isSetName (const Event_t *e) |
Predicate returning true or false depending on whether the given Event_t structure's name is set. | |
| int | Event_isSetPriority (const Event_t *e) |
Predicate returning true or false depending on whether the given Event_t structure's priority is set. | |
| int | Event_isSetTimeUnits (const Event_t *e) |
Predicate returning true or false depending on whether the given Event_t structure's "timeUnits" attribute is set. | |
| int | Event_isSetTrigger (const Event_t *e) |
Predicate returning true or false depending on whether the given Event_t structure's trigger is set. | |
| int | Event_isSetUseValuesFromTriggerTime (const Event_t *e) |
Predicate returning true or false depending on whether the given Event_t structure's useValuesFromTriggerTime attribute is set. | |
| EventAssignment_t * | Event_removeEventAssignment (Event_t *e, unsigned int n) |
| Removes the nth EventAssignment_t object from this Event_t object and returns a pointer to it. | |
| EventAssignment_t * | Event_removeEventAssignmentByVar (Event_t *e, const char *variable) |
| Removes the EventAssignment_t object with the given "variable" attribute from this Event_t object and returns a pointer to it. | |
| int | Event_setDelay (Event_t *e, const Delay_t *delay) |
| Sets the delay of this Event to a copy of the given Delay. | |
| int | Event_setId (Event_t *e, const char *sid) |
| Assigns the identifier of an Event_t structure. | |
| int | Event_setName (Event_t *e, const char *name) |
Sets the name of this Event to a copy of name. | |
| int | Event_setPriority (Event_t *e, const Priority_t *priority) |
| Sets the priority of this Event to a copy of the given Priority. | |
| int | Event_setTimeUnits (Event_t *e, const char *sid) |
Sets the "timeUnits" attribute of this Event to a copy of sid. | |
| int | Event_setTrigger (Event_t *e, const Trigger_t *trigger) |
| Sets the trigger of this Event to a copy of the given Trigger. | |
| int | Event_setUseValuesFromTriggerTime (Event_t *e, int value) |
Sets the "useValuesFromTriggerTime" attribute of this Event to a value. | |
| int | Event_unsetDelay (Event_t *e) |
| Unsets the delay of this Event. | |
| int | Event_unsetId (Event_t *e) |
| Unsets the "id" attribute of this Event_t structure. | |
| int | Event_unsetName (Event_t *e) |
| Unsets the "name" attribute of this Event_t structure. | |
| int | Event_unsetPriority (Event_t *e) |
| Unsets the priority of this Event. | |
| int | Event_unsetTimeUnits (Event_t *e) |
| Unsets the "timeUnits" attribute of this Event. | |
| Event_t * | ListOfEvents_getById (ListOf_t *lo, const char *sid) |
| Event_t * | ListOfEvents_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| int Event_addEventAssignment | ( | Event_t * | e, |
| const EventAssignment_t * | ea | ||
| ) |
Appends a copy of the given EventAssignment_t structure to this Event_t structure.
| e | the Event_t structure to which the event assignment should be added |
| ea | an EventAssignment_t structure to add |
| Event_t* Event_clone | ( | const Event_t * | e | ) |
Returns a copy of the given Event_t structure.
| e | the Event_t structure to copy. |
| Event_t* Event_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new Event_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this Event |
| version | an unsigned int, the SBML Version to assign to this Event |
level and version for the document override those used to create the Event. 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. | Delay_t* Event_createDelay | ( | Event_t * | e | ) |
Creates a new, empty Delay_t structure, adds it to this Event, and returns the Delay_t.
| e | the Event_t structure to which the delay should be added |
| EventAssignment_t* Event_createEventAssignment | ( | Event_t * | e | ) |
Creates a new, empty EventAssignment_t structure, adds it to this Event's list of event assignments, and returns the EventAssignment_t.
| e | the Event_t structure to which the event assignment should be added |
| Priority_t* Event_createPriority | ( | Event_t * | e | ) |
Creates a new, empty Priority_t structure, adds it to this Event, and returns the Priority_t.
| e | the Event_t structure to which the priority should be added |
| Trigger_t* Event_createTrigger | ( | Event_t * | e | ) |
Creates a new, empty Trigger_t structure, adds it to this Event, and returns the Trigger_t.
| e | the Event_t structure to which the trigger should be added |
| Event_t* Event_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new Event_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this Event |
sbmlns namespaces for the document override those used to create the Event. 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 Event_free | ( | Event_t * | e | ) |
Frees the given Event_t structure.
| e | the Event_t structure to free. |
| Delay_t* Event_getDelay | ( | Event_t * | e | ) |
Takes an Event_t structure and returns its Delay_t structure.
| e | the Event_t structure whose delay definition is sought. |
| EventAssignment_t* Event_getEventAssignment | ( | Event_t * | e, |
| unsigned int | n | ||
| ) |
Return a specific EventAssignment_t structure of this Event_t.
| e | the Event_t structure to use |
| n | an integer, the index of the EventAssignment_t structure to return |
| EventAssignment_t* Event_getEventAssignmentByVar | ( | Event_t * | e, |
| const char * | variable | ||
| ) |
Return the event assignment indicated by the given variable.
| e | the Event_t structure to use |
| variable | a string, the identifier of the variable whose EventAssignment_t is being sought. |
NULL if no such EventAssignment_t exits. | const char* Event_getId | ( | const Event_t * | e | ) |
Takes an Event_t structure and returns its identifier.
| p | the Event_t structure whose identifier is sought |
| ListOf_t* Event_getListOfEventAssignments | ( | Event_t * | e | ) |
Get the list of EventAssignment_t structures from this Event_t structure.
| e | the Event_t structure to use. |
| const char* Event_getName | ( | const Event_t * | e | ) |
Takes a Event_t structure and returns its name.
| p | the Event_t whose name is sought. |
| const XMLNamespaces_t* Event_getNamespaces | ( | Event_t * | e | ) |
Returns a list of XMLNamespaces_t associated with this Event_t structure.
| e | the Event_t structure |
| unsigned int Event_getNumEventAssignments | ( | const Event_t * | e | ) |
| Priority_t* Event_getPriority | ( | Event_t * | e | ) |
Takes an Event_t structure and returns its Priority_t structure.
| e | the Event_t structure whose delay definition is sought. |
| const char* Event_getTimeUnits | ( | const Event_t * | e | ) |
Takes an Event_t structure and returns the value of its "timeUnits" attribute.
| e | the Event_t structure whose "timeUnits" value is sought |
| Trigger_t* Event_getTrigger | ( | Event_t * | e | ) |
Takes an Event_t structure and returns its Trigger_t structure.
| e | the Event_t structure whose trigger definition is sought. |
| int Event_getUseValuesFromTriggerTime | ( | const Event_t * | e | ) |
Takes an Event_t structure and returns the value of its "useValuesFromTriggerTime" attribute.
| e | the Event_t structure whose "useValuesFromTriggerTime" value is sought |
| int Event_hasRequiredAttributes | ( | Event_t * | e | ) |
| int Event_hasRequiredElements | ( | Event_t * | e | ) |
| int Event_isSetDelay | ( | const Event_t * | e | ) |
Predicate returning true or false depending on whether the given Event_t structure's delay is set.
| e | the Event_t structure to query |
non-zero (true) if a Delay_t structure is assigned to the given Event_t structure, zero (false) otherwise. | int Event_isSetId | ( | const Event_t * | e | ) |
Predicate returning true or false depending on whether the given Event_t structure's identifier is set.
| e | the Event_t structure to query |
non-zero (true) if the "id" attribute of the given Event_t structure is set, zero (false) otherwise. | int Event_isSetName | ( | const Event_t * | e | ) |
Predicate returning true or false depending on whether the given Event_t structure's name is set.
| e | the Event_t structure to query |
non-zero (true) if the "name" attribute of the given Event_t structure is set, zero (false) otherwise. | int Event_isSetPriority | ( | const Event_t * | e | ) |
Predicate returning true or false depending on whether the given Event_t structure's priority is set.
| e | the Event_t structure to query |
non-zero (true) if a Priority_t structure is assigned to the given Event_t structure, zero (false) otherwise. | int Event_isSetTimeUnits | ( | const Event_t * | e | ) |
Predicate returning true or false depending on whether the given Event_t structure's "timeUnits" attribute is set.
| e | the Event_t structure to query |
non-zero (true) if a value for the "timeUnits" attribute is assigned in the given Event_t structure, zero (false) otherwise.| int Event_isSetTrigger | ( | const Event_t * | e | ) |
Predicate returning true or false depending on whether the given Event_t structure's trigger is set.
| e | the Event_t structure to query |
non-zero (true) if a Trigger_t structure is assigned to the given Event_t structure, zero (false) otherwise. | int Event_isSetUseValuesFromTriggerTime | ( | const Event_t * | e | ) |
Predicate returning true or false depending on whether the given Event_t structure's useValuesFromTriggerTime attribute is set.
| e | the Event_t structure to query |
non-zero (true) if the "useValuesFromTriggerTime" attribute of the given Event_t structure is set, zero (false) otherwise. | EventAssignment_t* Event_removeEventAssignment | ( | Event_t * | e, |
| unsigned int | n | ||
| ) |
Removes the nth EventAssignment_t object from this Event_t object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
| m | the Event_t structure |
| n | the integer index of the EventAssignment_t sought |
NULL is returned if the given index is out of range. | EventAssignment_t* Event_removeEventAssignmentByVar | ( | Event_t * | e, |
| const char * | variable | ||
| ) |
Removes the EventAssignment_t object with the given "variable" attribute from this Event_t object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
| m | the Event_t structure |
| sid | the string of the "variable" attribute of the EventAssignment_t sought |
NULL is returned if no EventAssignment_t object with the "variable" attribute exists in this Event_t object. | int Event_setDelay | ( | Event_t * | e, |
| const Delay_t * | delay | ||
| ) |
Sets the delay of this Event to a copy of the given Delay.
| e | the Event_t structure to set |
| delay | the Delay_t structure to use. |
| int Event_setId | ( | Event_t * | e, |
| const char * | sid | ||
| ) |
Assigns the identifier of an Event_t structure.
This makes a copy of the string passed in the param sid.
| e | the Event_t structure to set. |
| sid | the string to use as the identifier. |
| int Event_setName | ( | Event_t * | e, |
| const char * | name | ||
| ) |
Sets the name of this Event to a copy of name.
| e | the Event_t structure to set |
| name | the name to assign to this Event_t's "name" attribute. |
| int Event_setPriority | ( | Event_t * | e, |
| const Priority_t * | priority | ||
| ) |
Sets the priority of this Event to a copy of the given Priority.
| e | the Event_t structure to set |
| priority | the Priority_t structure to use. |
| int Event_setTimeUnits | ( | Event_t * | e, |
| const char * | sid | ||
| ) |
Sets the "timeUnits" attribute of this Event to a copy of sid.
| e | the Event_t structure to set |
| sid | the identifier of the units to use as the value of the "timeUnits" attribute |
| int Event_setTrigger | ( | Event_t * | e, |
| const Trigger_t * | trigger | ||
| ) |
Sets the trigger of this Event to a copy of the given Trigger.
| e | the Event_t structure to set |
| trigger | the Trigger_t structure to use. |
| int Event_setUseValuesFromTriggerTime | ( | Event_t * | e, |
| int | value | ||
| ) |
Sets the "useValuesFromTriggerTime" attribute of this Event to a value.
| e | the Event_t structure to set |
| value | the value of the "useValuesFromTriggerTime" attribute |
| int Event_unsetDelay | ( | Event_t * | e | ) |
Unsets the delay of this Event.
| e | the Event_t structure to unset |
| int Event_unsetId | ( | Event_t * | e | ) |
Unsets the "id" attribute of this Event_t structure.
| e | the Event_t structure to unset |
| int Event_unsetName | ( | Event_t * | e | ) |
Unsets the "name" attribute of this Event_t structure.
| e | the Event_t structure to unset |
| int Event_unsetPriority | ( | Event_t * | e | ) |
Unsets the priority of this Event.
| e | the Event_t structure to unset |
| int Event_unsetTimeUnits | ( | Event_t * | e | ) |
Unsets the "timeUnits" attribute of this Event.
| e | the Event_t structure to unset |
| Event_t* ListOfEvents_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | Event_t* ListOfEvents_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.