Core

Core provides the basic class framework to build a population

Overview:

Core

class pyEpiabm.Cell[source]

Class representing a Cell (Subset of Population). Collection of Microcell s and Person s.

add_microcells(n)[source]

Add n empty Microcell s to Cell.

Parameters

n (int) – Number of empty Microcell s to add

class pyEpiabm.Microcell(cell)[source]

Class representing a Microcell (Group of people and places). Collection of Person s

Parameters

cell (Cell) – An instance of Cell

add_people(n)[source]

Adds n default Person to Microcell.

Parameters

n (int) – Number of default Person s to add

class pyEpiabm.Person(microcell)[source]

Class to represent each person in a population.

Parameters

microcell (Microcell) – An instance of an Microcell.

class pyEpiabm.Population[source]

Class representing a Population. Collection of Cell s

add_cells(n)[source]

Adds n default Cell s to the population.

Parameters

n (int) – number of empty Cell s to add