laser.measles.abm.components.process_importation
laser.measles.abm.components.process_importation
This module defines Importation classes, which provide methods to import cases into a population during simulation.
Classes:
| Name | Description |
|---|---|
Infect_Random_Agents |
A class to periodically infect a random subset of agents in the population |
Functions:
| Name | Description |
|---|---|
Infect_Random_Agents.__init__ |
bool = False) -> None: Initializes the Infect_Random_Agents class with a given model, period, count, and verbosity option. |
Infect_Random_Agents.__call__ |
Checks whether it is time to infect a random subset of agents and infects them if necessary. |
Infect_Random_Agents.plot |
Figure = None): Nothing yet. |
laser.measles.abm.components.process_importation.ImportationParams
Bases: BaseModel
Parameters specific to the importation process components.
laser.measles.abm.components.process_importation.InfectAgentsInPatchProcess(model, verbose=False, params=None)
A component to update the infection timers of a population in a model.
Initialize an Infect_Random_Agents instance.
Args:
1 2 3 4 5 | |
Attributes:
1 | |
Side Effects:
laser.measles.abm.components.process_importation.InfectAgentsInPatchProcess.__call__(model, tick)
Updates the infection timers for the population in the model.
Args:
1 2 | |
Returns:
1 | |
laser.measles.abm.components.process_importation.InfectAgentsInPatchProcess.plot(fig=None)
Nothing yet
laser.measles.abm.components.process_importation.InfectRandomAgentsProcess(model, verbose=False, params=None)
A component to update the infection timers of a population in a model.
Initialize an Infect_Random_Agents instance.
Args:
1 2 3 4 5 | |
Attributes:
1 | |
Side Effects:
laser.measles.abm.components.process_importation.InfectRandomAgentsProcess.__call__(model, tick)
Updates the infection timers for the population in the model.
Args:
1 2 | |
Returns:
1 | |
laser.measles.abm.components.process_importation.InfectRandomAgentsProcess.plot(fig=None)
Nothing yet