Changeset 152 in tmcsimulator for trunk/src/tmcsim/client/ATMSBatchDriver.java
- Timestamp:
- 10/20/2017 09:18:44 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/tmcsim/client/ATMSBatchDriver.java (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/client/ATMSBatchDriver.java
r140 r152 32 32 import javax.swing.Timer; 33 33 import javax.swing.UIManager; 34 import tmcsim.cadsimulator.CADServer; 34 35 import tmcsim.common.SimulationException; 35 36 import tmcsim.interfaces.CADClientInterface; … … 158 159 theView = new ATMSBatchViewer(this, new ArrayList<String>(incidents.keySet())); 159 160 theView.setVisible(true); 160 theView.update("0:00", eventQueue);161 theView.update("0:00", "1:11", eventQueue); 161 162 162 163 // Create a timer that fetches the simulation time every second. … … 167 168 { 168 169 String currentClock = ""; 170 String currentATMStime = ""; 169 171 Date simClock = new Date(); 170 172 // Obtain the simulation time from the CAD server … … 173 175 long simtime = theCoorInt.getCurrentSimulationTime(); 174 176 currentClock = formatInterval(simtime); 177 long ATMStime = theCoorInt.getATMStime(); 178 Date atmsdate = new Date(ATMStime); 179 currentATMStime = formatter.format(atmsdate); 175 180 try { 176 181 simClock = formatter.parse(currentClock); … … 231 236 } 232 237 } 233 theView.update(currentClock, eventQueue); 238 239 theView.update(currentClock, currentATMStime, eventQueue); 234 240 } 235 241 } … … 322 328 } 323 329 // Now refresh the view with the updated queue of events 324 theView.update("0:00", eventQueue);330 theView.update("0:00", "0:00", eventQueue); 325 331 } 326 332
Note: See TracChangeset
for help on using the changeset viewer.
