passengersim.callbacks.
configured¶
Registered implementations for config-selected callbacks, separate from global attachment.
A registration makes a callback or tracer available by name to
config.callbacks; it never attaches anything to a simulation. There are two
families of registration functions:
register_callback()andregister_tracer(), the preferred decorators, which register a callback function or a tracer class directly;register_callback_factory()andregister_tracer_factory(), which register a factory building a fresh callback from a validated options model, and remain available unchanged.
Classes
|
Factory metadata used to validate and construct one callback per simulation. |
Functions
Build a configured-callback options model from a class's constructor. |
|
|
Validate the configuration and collect the definitions needed by trial workers. |
|
Build fresh callbacks and replace only prior configured attachments. |
Make a callback function available to |
|
|
Make a factory available to YAML declarations without attaching it. |
Make a tracer class available to |
|
|
Register a tracer using the configuration it declares on its class. |