Changeset 187 in tmcsimulator for trunk/src/tmcsim/cadsimulator/managers/TrafficModelViewer.java
- Timestamp:
- 10/29/2017 12:56:40 PM (9 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/cadsimulator/managers/TrafficModelViewer.java
r183 r187 1 package tmcsim.client; 2 1 package tmcsim.cadsimulator.managers; 2 3 import tmcsim.client.*; 3 4 import atmsdriver.model.TrafficEvent; 4 5 import java.text.ParseException; … … 12 13 13 14 /** 14 * 15 * GUI for the Traffic Model Manager. 15 16 * @author jdalbey 16 17 */ 17 public class ATMSBatchViewer extends javax.swing.JFrame18 public class TrafficModelViewer extends javax.swing.JFrame 18 19 { 19 20 … … 21 22 * Reference to the driver associated with this GUI 22 23 */ 23 private ATMSBatchDriver driver;24 private TrafficModelManager driver; 24 25 private final List<String> incidents; 25 26 … … 29 30 * @param incidents a list of incidents to show in a list. 30 31 */ 31 public ATMSBatchViewer(ATMSBatchDriver driver, List<String> incidentList)32 public TrafficModelViewer(TrafficModelManager driver, List<String> incidentList) 32 33 { 33 34 initComponents(); … … 243 244 catch (ClassNotFoundException ex) 244 245 { 245 java.util.logging.Logger.getLogger( ATMSBatchViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);246 java.util.logging.Logger.getLogger(TrafficModelViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 246 247 } 247 248 catch (InstantiationException ex) 248 249 { 249 java.util.logging.Logger.getLogger( ATMSBatchViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);250 java.util.logging.Logger.getLogger(TrafficModelViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 250 251 } 251 252 catch (IllegalAccessException ex) 252 253 { 253 java.util.logging.Logger.getLogger( ATMSBatchViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);254 java.util.logging.Logger.getLogger(TrafficModelViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 254 255 } 255 256 catch (javax.swing.UnsupportedLookAndFeelException ex) 256 257 { 257 java.util.logging.Logger.getLogger(ATMSBatchViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 258 } 258 java.util.logging.Logger.getLogger(TrafficModelViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 259 } 260 //</editor-fold> 261 //</editor-fold> 262 //</editor-fold> 259 263 //</editor-fold> 260 264 … … 275 279 items.add("180"); 276 280 items.add("1291"); 277 ATMSBatchViewer view = new ATMSBatchViewer(null, items);281 TrafficModelViewer view = new TrafficModelViewer(null, items); 278 282 view.setVisible(true); 279 283 view.update("01", "02", sample); … … 281 285 catch (ParseException ex) 282 286 { 283 Logger.getLogger( ATMSBatchViewer.class.getName()).log(Level.SEVERE, null, ex);287 Logger.getLogger(TrafficModelViewer.class.getName()).log(Level.SEVERE, null, ex); 284 288 } 285 289
Note: See TracChangeset
for help on using the changeset viewer.
