pandemia.components.testing_and_contact_tracing_model

Manages testing and contact tracing

Submodules

Package Contents

Classes

Component

A simulation component. Submodels, for example of movement and health, are represented as

TestingAndContactTracingModel

Defines the testing and contact tracing model

class pandemia.components.testing_and_contact_tracing_model.Component(component_config: pandemia.config.Config)

Bases: abc.ABC

A 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.testing_and_contact_tracing_model.TestingAndContactTracingModel(config)

Bases: pandemia.component.Component

Defines the testing and contact tracing model