pandemia.components.movement_model

Manages location choice within the model, that is, where agents perform the activities they are assigned.

Submodules

Package Contents

Classes

Component

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

MovementModel

Defines the location finding behaviour of agents.

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

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

set_telemetry_bus(telemetry_bus: Optional[pandemia.messagebus.MessageBus]) 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.

class pandemia.components.movement_model.MovementModel(config)

Bases: pandemia.component.Component

Defines the location finding behaviour of agents.

Subclasses are expected to select a location for agents during the simulation, responding to activity events and selecting an appropriate location for the agent to perform that activity.