Appearance
Core concepts
grABM models individuals whose explicit schedules and choices interact through a shared network and limited destination capacity. The aggregate result emerges from those individual actions. It does not infer a daily routine from demographic labels or generate continuous pedestrian physics.
Foundations at a glance
| Concept | Meaning in grABM | Read more |
|---|---|---|
| Agent | One resolved individual, with preferences, placement, and a daily schedule. | Profiles |
| Profile and cohort | A profile defines behavior; a cohort creates a count of people using that profile and placement rules. | Population and inheritance |
| Graph and facility | The graph supplies movement connectivity; a facility supplies activities at an access node. | Space and routing |
| Agenda and decision | An agenda specifies scheduled activities; a decision asks whether and where to do an activity at a particular time. | Schedules and decisions |
| Event | A timed state change, such as arrival, processed in a stable queue. | Event-based simulation |
| Occupancy and reservation | A person physically present versus a slot committed to an incoming or returning person. | Capacity |
| Observation | An aggregate of recorded activity within a reporting interval. | Reading results |
| Seed and provenance | Reproducible random choices and metadata identifying the executed input and result. | Determinism |
Scenario and run
Scenario holds immutable population, demographic profiles, mobility, and behavior configuration. Simulation combines it with a graph and facilities. Each call to run() supplies seed and time settings and starts fresh execution state.
RunResult contains input: { graph, facilities, scenario, run }, resolved agents, trips, observations, diagnostics, warnings, and provenance. Analytics, playback, and storage use this self-contained data without needing a running simulation.
Units and topology
- Positions and edge lengths use metres; speeds use metres/second.
- Schedules, run times, penalties, dwell, and playback time use minutes.
- Edge throughput capacity uses persons/hour; facility capacity uses persons.
- Facilities reference an access node. Edges explicitly specify direction and modes.
- A drawn geometric crossing does not imply a connected graph. Scenario creation determines topology.
Population and needs
Population may contain explicit agents, synthetic cohorts, or both. Cohorts resolve into agents deterministically, using explicit profiles, schedules, and home/gateway tags. Household membership and authored activity needs are supported contracts. A household record does not by itself synthesize linked tours or escort behavior. Hosts author needs and decisions; recorded need outcomes distinguish fulfillment from movement.
Time and capacity
The engine advances between events rather than stepping every person every minute. Fixed protected anchors constrain discretionary decisions. Free-flow travel, dwell, and the next anchor must fit; capacity is reserved before departure and occupied on arrival.
Nominal capacity is used for utilization. Hard commitment capacity uses the configured maximum ratio; absent a ratio, the default is 1.0. Values above 100% represent reported overload, not extra nominal capacity.
Playback advances over already recorded results. Its speed does not change simulation outcomes. At five simulated minutes per real second, a 24-hour result takes 288 seconds at 1× speed.
Ownership
| Concern | Owner |
|---|---|
| Source parsing, units, population assumptions | Scenario creation |
| Event execution, deterministic result | Engine |
| Canvas, camera, renderer, render loop | Host application |
| Replay scene objects and their disposal | Replay layer |
| Database, authentication, storage policy | Host application |
Continue with event-based simulation, reading results, and library architecture.