defines processes for events that can be scheduled in the future

attach_event_listeners(
  variables,
  events,
  parameters,
  dt,
  shift = 1L,
  shift_exposure = 1L
)

Arguments

variables

list of variables in the model

events

a list of events in the model

parameters

the model parameters

dt

size of time step

shift

schedule future events after minimum number of time step delay

shift_exposure

schedule exposure event after minimum number of time step delay