Skip to content

Source Code Introducation

Peng Wang edited this page Aug 2, 2023 · 4 revisions

Introduction to Source Code Version 2.2

The software is mainly made up of four components: Simulation, Startpage(User Interface), Visulization, DataTool

agent.py This is the agent class which defines the model of evacuee pedestrians.

obst.py This is the obstruction class whcih defines the model of walls, doors and exits.

data_func.py It is used to read in data from input files to initialize models for computation, and also to dump simulation data to files.

draw_func.py This file includes functions to draw agents, walls, doors and exits by using pygame.

math_func.py This file includes mathematical functions which are useful to core computation.

simulation.py This is the simulation class. The computation core is implemented by integrating individual models of agents, walls, doors and exits.