pycopancore.model_components.base.implementation.individual module

class Individual(*args, **kwargs)[source]

Bases: DUMMY, DUMMY

Individual entity type mixin implementation class.

Base component’s Individual mixin that every model must use in composing their Individual class. Inherits from I.Individual as the interface with all necessary variables and parameters.

acquaintances

reference to a set of entities

cell

reference to another entity or process taxon

culture

reference to another entity or process taxon

deactivate()[source]

Deactivate an individual.

In particular, deregister from all networks.

environment

reference to another entity or process taxon

group_memberships

reference to a set of entities

metabolism

reference to another entity or process taxon

property population_share

Get the share of SocialSystem’s direct population represented by this individual.

processes = []
reactivate()[source]

Reactivate an individual.

In particular, deregister with all mandatory networks.

represented_population = read-only extensive variable 'represented population' (absolute population represented by this individual), scale=ratio, datatype=<class 'float'>, unit=people [H]
social_system

reference to another entity or process taxon

social_systems

reference to a set of entities

world

reference to another entity or process taxon