Changeset 246 in tmcsimulator


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

TrafficEventsAnimator?: elaborated status message in load method.

Location:
trunk/src
Files:
2 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 
  • trunk/src/tmcsim/application.properties

    r242 r246  
    1 #Wed, 20 Dec 2017 05:21:29 -0800 
     1#Thu, 07 Feb 2019 15:47:33 -0800 
    22 
    3 Application.revision=240 
     3Application.revision=242 
    44 
    5 Application.buildnumber=88 
     5Application.buildnumber=91 
Note: See TracChangeset for help on using the changeset viewer.