Changeset 474 in tmcsimulator for trunk/src/tmcsim/highwaymodel/TrafficEventsAnimator.java
- Timestamp:
- 08/21/2019 02:09:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/highwaymodel/TrafficEventsAnimator.java
r457 r474 45 45 private final LinkedList<TrafficEvent> eventQueue; 46 46 /** 47 * Map of incidents to events48 */49 private Map<String, List<TrafficEvent>> incidents;50 /**51 47 * Highway history 52 48 */ … … 64 60 65 61 // Initialize the highway model 66 incidents = new HashMap<String, List<TrafficEvent>>();67 62 highways = new Highways( 68 "config/vds_data/ highways_fullmap.txt");63 "config/vds_data/postmile_coordinates.txt"); 69 64 final String CONFIG_FILE_NAME = "traffic_model_config.properties"; 70 65 String propertiesFile = "config" + System.getProperty("file.separator") 71 + CONFIG_FILE_NAME;66 + "traffic_model_config" + System.getProperty("file.separator") + CONFIG_FILE_NAME; 72 67 Properties props = TrafficModelManager.loadProperties(propertiesFile); 73 68 events_file = props.getProperty("Events_File"); … … 86 81 eventQueue = TrafficModelManager.readBatchFile(fileScanner); 87 82 } 88 /** Load the traffic events into a history buffer */83 /** Load the traffic events into a history buffer. This */ 89 84 public void load() 90 85 { … … 100 95 highways.applyColorToHighwayStretch(nextEvent.routeNumber, nextEvent.dir, 101 96 nextEvent.postmile, nextEvent.range, nextEvent.color); 97 // get the highwys as a string and add to the history list 102 98 history.add(highways.toString()+"\n"+nextEvent.eventTime); 103 99 // Remove this event from the queue, we're done with it.
Note: See TracChangeset
for help on using the changeset viewer.
