newEvent
creates a new event.
newEvent(
name,
trigger_expression,
fire_at_initial_time = FALSE,
trigger_must_remain_true = TRUE,
priority_expression = NULL,
delayed = c("no", "assignment", "calculation"),
delay_expression = NULL,
assignment_target = NULL,
assignment_expression = NULL,
model = getCurrentModel()
)
Name to set, as string.
Trigger expression to set, as string, finite numeric, or logical.
Whether to fire at initial time if true, as logical.
Whether the trigger must remain true, as logical.
Priority expression to set, as string, finite numeric, or logical.
Whether the event assignment and / or calculation is to be delayed ("no", "assignment", "calculation"), as string.
Delay expression to set, as string, finite numeric, or logical.
Assignment target entities (species, compartments, global quantities), as character vector.
Assignment expressions per event to set, as character, finite numeric, or logical vector.
a model object
event key
Default initial value is 1.
Arguments priority from lowest to highest is initial_value
, initial_expression
.
The online article on model building provides some further context.
Other event functions:
deleteEvent()
,
entity_finders
,
getEvents()
,
setEvents()