BaseCaseSurveillanceTracker#
- class BaseCaseSurveillanceTracker(model, verbose=False, params=None)[source]#
Bases:
BasePhaseComponent for tracking detected cases in the model.
This component: 1. Simulates case detection based on a detection rate 2. Optionally tracks detected cases aggregated by geographic level 3. Uses a filter function to determine which nodes to include
Case detection is simulated using a binomial distribution. Cases can be tracked at individual node level or aggregated by geographic level. Uses a filter function to determine which nodes to include. Note that a single infection can be detected multiple times.
- Parameters:
model – The simulation model containing nodes, states, and parameters.
verbose (
bool) – Whether to print verbose output during simulation. Defaults to False.params (
BaseCaseSurveillanceParams|None) – Component-specific parameters. If None, will use default parameters.
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]#
Process case surveillance for the current tick.
- Parameters:
model – The simulation model.
tick (
int) – Current time step.
- Return type:
None