passengersim.callbacks

Callback hooks triggered at key points during a simulation.

passengersim.config.CallbackConfig(*, name, ...)

Select a registered callback and its explicit options.

passengersim.callbacks.register_callback_factory(...)

Make a factory available to YAML declarations without attaching it.

passengersim.callbacks.register_tracer_factory(cls, *)

Register a tracer using the configuration it declares on its class.

passengersim.callbacks.register_begin_sample_callback(...)

Register a function to be triggered at the beginning of each sample.

passengersim.callbacks.register_daily_callback(...)

Register a function to be triggered each day during a sample.

passengersim.callbacks.register_end_sample_callback(...)

Register a function to be triggered at the end of each sample.

passengersim.callbacks.CallbackMixin.use_registered_callbacks()

Adopt all globally registered callbacks.