ImportationPressureProcess#

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

Bases: BasePhase

Component for simulating the importation pressure in the model.

This component handles the simulation of disease importation into the population. It processes: - Importation of cases based on crude importation rate - Time-windowed importation (start/end times) - Population updates: Moves individuals from susceptible to infected state

Parameters:
  • model (object) – The simulation model containing nodes, states, and parameters

  • verbose (bool) – Whether to print verbose output during simulation

  • params (ImportationPressureParams | None) – Component-specific parameters. If None, will use default parameters

Notes

  • Importation rates are calculated per year

  • Importation is limited to the susceptible population

  • All state counts are ensured to be non-negative

Initialize the component.

Parameters:
  • model – The model instance this component belongs to.

  • verbose (bool) – Whether to enable verbose output. Defaults to False.

__call__(model, tick)[source]#

Execute component logic for a given simulation tick.

Parameters:
  • model – The model instance.

  • tick (int) – The current simulation tick.

Return type:

None