pandemia.components.policy_maker_model
Manages policy interventions in the model
Submodules
pandemia.components.policy_maker_model.default_policy_maker_modelpandemia.components.policy_maker_model.optimization_policy_maker_modelpandemia.components.policy_maker_model.random_policy_maker_modelpandemia.components.policy_maker_model.validation_policy_maker_modelpandemia.components.policy_maker_model.void_policy_maker_model
Package Contents
Classes
A simulation component. Submodels, for example of movement and health, are represented as |
|
Defines the policy maker in the model |
- class pandemia.components.policy_maker_model.Component(component_config: pandemia.config.Config)
Bases:
abc.ABCA simulation component. Submodels, for example of movement and health, are represented as objects of this class.
- set_telemetry_bus(telemetry_bus: pandemia.messagebus.MessageBus | None) None
Sets telemetry bus for this component
- report(topic, *args, **kwargs)
Publish a message to the telemetry bus, informing reporters of some interesting event or statistic.
- abstract vectorize_component(vector_region)
Initializes numpy arrays associated to this component
- abstract initial_conditions(vector_region)
Define the initial state of the vector_regions
- class pandemia.components.policy_maker_model.PolicyMakerModel(config, scale_factor)
Bases:
pandemia.component.ComponentDefines the policy maker in the model
- abstract new_policy()
Set new policy