| Event | R Documentation | 
Describes a general event in the simulation.
new()Initialise an Event.
Event$new()
add_listener()Add an event listener.
Event$add_listener(listener)
listenerthe function to be executed on the event, which takes a single argument giving the time step when this event is triggered.
schedule()Schedule this event to occur in the future.
Event$schedule(delay)
delaythe number of time steps to wait before triggering the event, can be a scalar or a vector of values for events that should be triggered multiple times.
clear_schedule()Stop a future event from triggering.
Event$clear_schedule()
.tick()Event$.tick()
.process()Event$.process()
.process_listener()Event$.process_listener(listener)
.process_listener_cpp()Event$.process_listener_cpp(listener)
.resize()Event$.resize()
clone()The objects of this class are cloneable with this method.
Event$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.