passengersim.

callbacks

Callback hooks triggered at key points during a simulation.

Queued callbacks run at the beginning of each booking horizon, daily, or at the end of the horizon. Synchronous initialize/finalize callbacks bracket sample processing, before demand generation and after bookkeeping.

Modules

base

bid_price_detail

Daily tracer collecting bid prices for selected legs.

booking_detail

Daily tracer collecting cumulative sales for selected legs.

builtins

Load the decorated built-in tracers when the callback package is imported.

combine

Combination of tracer results from several trials, workers, or saved runs.

configured

Registered implementations for config-selected callbacks, separate from global attachment.

registration

Deprecated process-global callback attachment; prefer explicit attachments.

Classes

CallbackData()

Data collected during callbacks.

CallbackMixin()

Functions

register_callback()

Make a callback function available to config.callbacks, without attaching it.

register_callback_factory(name, *, factory, ...)

Make a factory available to YAML declarations without attaching it.

register_combiner(process, combiner)

Register how tables declaring an aggregation process are combined.

register_tracer()

Make a tracer class available to config.callbacks, without attaching it.

register_tracer_factory(cls, *[, ...])

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

register_begin_sample_callback([callback, ...])

Deprecated global registration for the begin_sample hook.

register_daily_callback([callback, ...])

Deprecated global registration for the daily hook.

register_end_sample_callback([callback, ...])

Deprecated global registration for the end_sample hook.

register_finalize_sample_callback([...])

Deprecated global registration for the finalize_sample hook.

register_initialize_sample_callback([...])

Deprecated global registration for the initialize_sample hook.