public EventGenerator(Simulator sim, RoadMap map, TimeHorizon T, int probPeople, int probParcel) { this.map = map; this.T = T; R = new Random(); r_id = 0; this.probPeople = probPeople; this.probParcel = probParcel; this.sim = sim; used = new HashMap<Integer, Boolean>(); for (int i = 0; i < sim.lstDepots.size(); i++) { int v = sim.lstDepots.get(i); used.put(v, true); } for (int i = 0; i < sim.lstParkings.size(); i++) { Parking p = sim.lstParkings.get(i); used.put(p.locationID, true); } WM = new WindowManager(map); WM.generateWindows(5, 5); }