View source: R/trajectory-activities.R
activate | R Documentation |
Activities for activating or deactivating the generation of arrivals by name.
Sources must be defined in the simulation environment (see
add_generator
, add_dataframe
).
activate(.trj, sources, ..., tag)
deactivate(.trj, sources, ..., tag)
.trj |
the trajectory object. |
sources |
the name(s) of the source(s) or a function returning the name(s). |
... |
unused. |
tag |
activity tag name to perform named rollbacks (see
|
Returns the trajectory object.
set_trajectory
, set_source
traj <- trajectory() %>%
deactivate("dummy") %>%
timeout(1) %>%
activate("dummy")
simmer() %>%
add_generator("dummy", traj, function() 1) %>%
run(10) %>%
get_mon_arrivals()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.