Research Article
Floor Field Model Based on Cellular Automata for Simulating Indoor Pedestrian Evacuation
public void AddAllPedestrianAndExitToList(ArrayList mapList, int row, int column) | | int i, j; | for (i = 0; i < row; i++) | | for (j = 0; j < column; j++) | | ArrayList columnList = (ArrayList)mapList[i]; | FloorFieldModel floorFieldModel = (FloorFieldModel)columnList[j]; | if (floorFieldModel.mapObject == 2) //2 is pedestrian | | pedestrianList.Add(new PedestrianModel(i + 1, j + 1)); | | else if (floorFieldModel.mapObject == 3) //3 is exit | | exitList.Add(new ExitModel(i + 1, j + 1)); | | | | |
|