Tuesday, February 13, 2007

Pedestrian Fire Evacuation Model

I found this model a few months ago, its quite good as it shows how pedestrians exit a building when a fire is spreading through it. The model is written in Repast and makes use of .xml and txt files. While it is extremely basic, the model highlights how ABM can be utilized to examine emergency egress from a building. On a side note, CASA has a long history of pedestrian modelling using ABM (Click here to see more along with checking out the CASA working papers)


Unfortunately I don’t remember where the original source code came from but if you wrote it please let me know so I can give you full credit.

The model can be run by clicking here (Sorry it will only work in Windows). For instructions on how to run a Repast model see the Repast website. Alternatively the original source code can be downloaded from here.

7 comments:

Anonymous said...

this looks really useful! any tip on how to get it running? the repast link is broken. thanks!

Andrew Crooks said...

Due to the reorganisation of the Repast Site, Repast 3 links can be found here: http://repast.sourceforge.net/repast_3/

For the link to this post it can be found t http://repast.sourceforge.net/repast_3/how-to/interact.html

Anonymous said...

Thanks for the revised links. Im still having trouble running the executable. I have repast 3 installed but I do not no how to get the model working. When running the executable this error occurs:

java.lang.NullPointerException
at fire.ConfigReader.readMap(ConfigReader.java:131)
at fire.ConfigReader.readConfig(ConfigReader.java:37)
at fire.Model.main(Model.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)

sorry im new to java and repast. i would much appreciate some ideas. thanks!

Andrew Crooks said...

I will have a look into it and get back to you if that is OK.

Andrew Crooks said...

I can run the model via eclipse, have you changed the file paths etc?

Anonymous said...

Thanks for the link!
But when I try to run it I get "java.lang.ClassNotFoundException" error. What is the main class in this model? Tanks in advance.
Oh, and when I try to run the .exe it gives me the same error as Anonymous said.

Andrew Crooks said...

For the main class, I cant remember, best to look at the source code.