add_named_listener: Add named listener to an event

Description Usage Arguments

View source: R/utils_events.R

Description

Given a individual::Event or individual::TargetedEvent object, add a named listener to the list of listeners stored in that event.

Usage

1
add_named_listener(event, name, listener)

Arguments

event

a individual::Event or individual::TargetedEvent object

name

a name

listener

a function which takes either a single argument (timestep) if event is a individual::Event or two arguments (timestep, target) if the event is a individual::TargetedEvent


mrc-ide/safir2 documentation built on Jan. 14, 2022, 9:37 p.m.