Changeset 559 in tmcsimulator


Ignore:
Timestamp:
01/16/2020 12:13:15 PM (6 years ago)
Author:
jdalbey
Message:

Change hardcoded "scripts" as name of folder to a constant in SimulationManager?. See #228.

Location:
trunk/src/tmcsim/simulationmanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/simulationmanager/SimulationManager.java

    r507 r559  
    4747 
    4848    private static final String CONFIG_FILE_NAME = "sim_manager_config.properties"; 
     49    /* 
     50     * Name of filesystem folder that contains Scenario xml files.   
     51    */ 
     52    public static final String kScenarioFolder = "Scenarios"; 
    4953    /** 
    5054     * Error logger. 
     
    225229            { 
    226230                arg1 = args[0]; 
    227                 File scriptFile = new File("scripts"+ System.getProperty("file.separator") + arg1); 
     231                File scriptFile = new File(kScenarioFolder+ System.getProperty("file.separator") + arg1); 
    228232                // if the script file exists, load it and show name in title bar 
    229233                if (scriptFile.exists()) 
     
    233237                    app.theSimManagerView.setTitle("Simulation Manager: " + arg1); 
    234238                    simManLogger.logp(Level.INFO,"SimulationManager","Main", 
    235                             "Sim Mgr starting with script file: " + arg1 + "."); 
     239                            "Sim Mgr starting with scenario file: " + arg1 + "."); 
    236240                } 
    237241                else 
    238242                { 
    239243                    simManLogger.logp(Level.INFO,"SimulationManager","Main", 
    240                             "Script file not found: " + arg1 + 
    241                             ". Starting with no script."); 
     244                            "Scenario file not found: " + arg1 + 
     245                            ". Starting with no scenario."); 
    242246                } 
    243247            } 
  • trunk/src/tmcsim/simulationmanager/actions/GotoTimeIndexAction.java

    r2 r559  
    1919 * to ensure the current simulation is paused, to clear all current 
    2020 * incident info from the view, and then to reset the simulation time. 
     21 * Currently this action is invoked from "File>GoTo" menu. 
    2122 * @author Matthew Cechini 
    2223 */ 
Note: See TracChangeset for help on using the changeset viewer.