InfectionProcess#

class InfectionProcess(model, verbose=False, params=None)[source]#

Bases: BaseInfectionProcess

Combined infection process that orchestrates transmission and disease progression.

This component provides a unified interface for both disease transmission (handled by TransmissionProcess) and disease progression through states (handled by DiseaseProcess), similar to the biweekly model’s InfectionProcess but for agent-based modeling.

Initialize the combined infection process.

Parameters:
  • model (ABMModel) – The model object that contains the patches and parameters.

  • verbose (bool) – If True, enables verbose output. Defaults to False.

  • params (InfectionParams | None) – Combined parameters for both transmission and disease processes.

__call__(model, tick)[source]#

Execute both transmission and disease progression for the given tick.

Parameters:
  • model – The model object containing the population, patches, and parameters.

  • tick (int) – The current time step in the simulation.

Return type:

None

plot(fig=None)[source]#

Plot cases and incidence using the transmission component’s plotting functionality.

Parameters:

fig (Figure | None) – A Matplotlib Figure object to plot on. If None, a new figure is created.