Skip to contents

Listeners are arbitrary functions called when the event is fired. Their only argument is the current time step.

Usage

create_events(variables_list, parameters_list)

Arguments

variables_list

A list of the model variables as generated by create_variables()

parameters_list

A list of model parameters as generated by get_parameters()