Ignore:
Timestamp:
10/29/2017 12:56:40 PM (9 years ago)
Author:
jdalbey
Message:

TrafficModelManager?.java: Initial refactoring to put the traffic model as a manager within CAD Server. Compiles, but not functioning yet.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/managers/TrafficModelViewer.java

    r183 r187  
    1 package tmcsim.client; 
    2  
     1package tmcsim.cadsimulator.managers; 
     2 
     3import tmcsim.client.*; 
    34import atmsdriver.model.TrafficEvent; 
    45import java.text.ParseException; 
     
    1213 
    1314/** 
    14  * 
     15 * GUI for the Traffic Model Manager. 
    1516 * @author jdalbey 
    1617 */ 
    17 public class ATMSBatchViewer extends javax.swing.JFrame 
     18public class TrafficModelViewer extends javax.swing.JFrame 
    1819{ 
    1920 
     
    2122     * Reference to the driver associated with this GUI 
    2223     */ 
    23     private ATMSBatchDriver driver; 
     24    private TrafficModelManager driver; 
    2425    private final List<String> incidents; 
    2526 
     
    2930     * @param incidents a list of incidents to show in a list. 
    3031     */ 
    31     public ATMSBatchViewer(ATMSBatchDriver driver, List<String> incidentList) 
     32    public TrafficModelViewer(TrafficModelManager driver, List<String> incidentList) 
    3233    { 
    3334        initComponents(); 
     
    243244        catch (ClassNotFoundException ex) 
    244245        { 
    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); 
    246247        } 
    247248        catch (InstantiationException ex) 
    248249        { 
    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); 
    250251        } 
    251252        catch (IllegalAccessException ex) 
    252253        { 
    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); 
    254255        } 
    255256        catch (javax.swing.UnsupportedLookAndFeelException ex) 
    256257        { 
    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> 
    259263        //</editor-fold> 
    260264 
     
    275279                    items.add("180"); 
    276280                    items.add("1291"); 
    277                     ATMSBatchViewer view = new ATMSBatchViewer(null, items); 
     281                    TrafficModelViewer view = new TrafficModelViewer(null, items); 
    278282                    view.setVisible(true); 
    279283                    view.update("01", "02", sample); 
     
    281285                catch (ParseException ex) 
    282286                { 
    283                     Logger.getLogger(ATMSBatchViewer.class.getName()).log(Level.SEVERE, null, ex); 
     287                    Logger.getLogger(TrafficModelViewer.class.getName()).log(Level.SEVERE, null, ex); 
    284288                } 
    285289 
Note: See TracChangeset for help on using the changeset viewer.