How spades1404/abmcovid works
ABMC19 is an agent-based COVID-19 simulation. The visible model setup initializes a grid, scheduler, hubs, and agents; the repository also includes agent behavior, data collection, batch execution, and interactive visualization. Source excerpts are limited, so several domain links are shown as unverified rather than asserted as confirmed calls.
Main entry points: model.py COVID model · agent.py Person agent · runIDLE.py Desktop entry · visualisation.py Simulation visualization
Components 20
Application entry
- Desktop entry
runIDLE.py - GUI
ABMC19/GUI/gui.py - Batch runner
ABMC19/batchrun.py
Simulation model
- COVID model
ABMC19/Model/model.py - Activation scheduler
ABMC19/Libs/Mesa/time.py - Spatial grid
ABMC19/Libs/Mesa/space.py - Special areas
- Coordinate generation
ABMC19/Model/CoordinateScripts/generateHubs.py
Agent behavior
- Person agent
ABMC19/Agents/agent.py - Agent characteristics
ABMC19/Agents/Characteristics/characteristics.py - Movement
ABMC19/Agents/Actions/movementUpdate.py - Pathfinding
ABMC19/Agents/Actions/Pathfinding/pathmaster.py - Neighbour comparison
ABMC19/Agents/Actions/Comparisons/grabNeighbourAgents.py - Disease progression
ABMC19/Agents/Actions/progressionCheck.py - Infection trails
ABMC19/Agents/Actions/infectionTrails.py - Contact trails
ABMC19/Agents/Actions/contactTrails.py
Visualization and data
- Data collection
ABMC19/Model/DataCollectors/collectors.py - Simulation visualization
ABMC19/Visualisation/visualisation.py - Grid visualization
ABMC19/Libs/Mesa/visualization/modules/CanvasGridVisualization.py
Other components
- User
Connections 21
- User → Desktop entry: starts
- Desktop entry → GUI: references
runIDLE.py - Desktop entry → COVID model: references
runIDLE.py - Desktop entry → Simulation visualization: references
runIDLE.py - Desktop entry → Batch runner: references
runIDLE.py - COVID model → Activation scheduler: uses
ABMC19/Model/model.py - COVID model → Spatial grid: uses
ABMC19/Model/model.py - COVID model → Person agent: imports
ABMC19/Model/model.py - COVID model → Special areas: imports
ABMC19/Model/model.py - COVID model → Coordinate generation: generates hubs
ABMC19/Model/model.py - COVID model → Person agent: generates agents
ABMC19/Model/model.py - COVID model → Data collection: collects data
ABMC19/Model/model.py - Person agent → Agent characteristics: uses
- Person agent → Movement: updates movement
- Person agent → Pathfinding: delegates routing
- Person agent → Neighbour comparison: checks neighbours
- Person agent → Disease progression: checks progression
- Person agent → Infection trails: tracks infection
- Person agent → Contact trails: tracks contacts
- Simulation visualization → COVID model: imports
ABMC19/Visualisation/visualisation.py - Simulation visualization → Grid visualization: uses grid view
ABMC19/Visualisation/visualisation.py