P12a Activity and time budget
Planned plugin: each person's activity role, such as pupil or worker, and the time budget of each role, of which it is the only author. Planned for 1.1, first as a minimal provider.
In development
This plugin is planned for 1.1, first as a minimal provider. This page describes its design; names and details may still change until it ships, when its generated model description replaces this page.
Status: Planned for 1.1, first as a minimal provider. Version 0.1 ships no official plugin.
Purpose
Activity and time budget gives each person an activity role, such as pupil, wage worker, self-employed or family helper, and gives each role its time budget: the parts of waking time spent at home, at school, at work or in other places. It is the only author of the time budget: the plugins that own the memberships of places copy their attendance from it. Its first provider is minimal and has no dynamics of its own; a later plugin on economic activity and the move from school to work will replace it as a variant.
State and owned attributes
- Each person's activity role.
- The workplace and market place types and their memberships.
Processes and their order within the step
The minimal provider has no dynamics of its own.
- At the start of the run, each person's role comes from the survey: whether she is currently working, and her occupation group.
- When a pupil leaves school, Activity gives her another role, in the same delivery of
Education.SchoolExited. - For each role, Activity offers the time budget as views. Each owner of a membership copies its attendance from these views when a person enters the role or changes role.
Events emitted
- A change of role (name not fixed yet), on which the owners of memberships copy the new attendance.
Contract
Activity and time budget provides official/Activity, version 1.
| Item | Kind | What it is |
|---|---|---|
| activity role | view | the person's role |
| workplace, market | place types | with their memberships |
| time budget | views, one per role | the attendance of every membership of that role |
When no Activity provider is active, the time-budget views read the attendance values loaded at the start, so the owners of memberships run without it. The names and form of the time-budget views are not decided yet.
The contract declares two invariants, checked after every barrier: each person's shares of waking time, held by different owners, add up to at most the whole of waking time; and every copied attendance equals Activity's view for that role, otherwise the run stops.
Parameters
- Attendance by role: in days per week for places that are visited (school, workplace, market, place of worship), and as a share of waking time for the household and the community. A place type declares one unit, never both. Attendance depends on the role, then on age and sex.
Data needed from the pipeline
The survey columns on current work and occupation group, for each person's starting role. Each person's shares of waking time are drawn together when the synthetic population is built.
Data format
- Women and men of the survey:
survey.woman2.1,survey.man2.1. It readscurrently_working,occupation_group, for each person's starting role. - Workplaces:
place.workplace2.0; keyplace_id. The workplace places. - Markets:
place.market2.0; keyplace_id. The market places. - Attendance by role: no published schema yet. From time-use and urban mobility surveys.
Columns of every place table: place_id, place_type, name, territory_unit, lon, lat, coord_precision, capacity, candidate, opened_date, opened_date_precision, closed_date, closed_date_precision, source, source_id, licence; the key is place_id. Coordinates come only from open layers, public place sources or a user's own table, never from survey cluster points.
occupation_group takes the values of the occupation_group vocabulary. The role names are provisional.
Each table is registered with cohortix-data register and bound to a table role in the scenario's [data.bindings]; see Bring your own data.
Reads
- From the kernel: age and sex.
- It listens to
Education.SchoolExited.
Variants
- The minimal provider (1.1).
- A later plugin on economic activity and the move from school to work replaces it as a variant, keeping the sole authorship of the time budget. Swapping one for the other changes only the scenario's plugin table.
Policies that can modulate it
Not named yet.