Changeset 246 in tmcsimulator for trunk/src/atmsdriver


Ignore:
Timestamp:
02/07/2019 03:13:59 PM (7 years ago)
Author:
jdalbey
Message:

TrafficEventsAnimator?: elaborated status message in load method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/TrafficEventsAnimator.java

    r232 r246  
    5353    private List<String> history; 
    5454    /** 
     55     * name of events file obtained from properties 
     56     */ 
     57    private String events_file = "";  
     58    /** 
    5559     * Creates the JPanel and builds the highways and events.  
    5660     */ 
     
    6973                 + CONFIG_FILE_NAME; 
    7074        Properties props = TrafficModelManager.loadProperties(propertiesFile); 
    71  
     75        events_file = props.getProperty("Events_File"); 
    7276        FileInputStream fis = null; 
    7377        try 
    7478        { 
    75             fis = new FileInputStream(props.getProperty("Events_File")); 
     79            fis = new FileInputStream(events_file); 
    7680        } catch (FileNotFoundException ex) 
    7781        { 
    7882            Logger.getLogger(TrafficModelManager.class.getName()).log(Level.SEVERE, null,  
    79                     "Missing Traffic Events file " + props.getProperty("Events_File")); 
     83                    "Missing Traffic Events file " + events_file); 
    8084            System.exit(-1); 
    8185        } 
     
    8791    public void load() 
    8892    { 
    89         txtDisplay.setText("Loading ..."); 
     93        txtDisplay.setText("Loading traffic events from: " + events_file); 
    9094        history = new ArrayList<String>(); 
    9195        // If we have any events left to process 
Note: See TracChangeset for help on using the changeset viewer.