Changeset 407 in tmcsimulator for trunk/src/tmcsim/cadsimulator/Coordinator.java


Ignore:
Timestamp:
05/16/2019 01:02:37 PM (7 years ago)
Author:
jdalbey
Message:

Fix for #155 to make simulation time filename configurable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/Coordinator.java

    r376 r407  
    3131import tmcsim.cadsimulator.managers.ParamicsSimulationManager; 
    3232import tmcsim.cadsimulator.managers.SimulationClockManager; 
     33import tmcsim.cadsimulator.managers.TrafficModelManager; 
     34import static tmcsim.cadsimulator.managers.TrafficModelManager.loadProperties; 
    3335import tmcsim.cadsimulator.viewer.model.CADSimulatorState; 
    3436import tmcsim.client.cadclientgui.CardfileReader; 
     
    9698     * The name of the file where the simulation clock time is written 
    9799     */ 
    98     public static final String kSimClockFilename = "webapps" +  
     100    private String kSimClockFilename = "webapps" +  
    99101            System.getProperty("file.separator") + "dynamicdata" +  
    100             System.getProperty("file.separator") + "sim_elapsedtime.json"; 
     102            System.getProperty("file.separator") + "sim_elapsedtime.json";         
    101103    /** 
    102104     * Error logger. 
     
    119121    private static CardfileData cardfileData; 
    120122    private CADSimulatorState cadModel; 
    121  
     123     
    122124    /** 
    123125     * Constructor. Call UnicastRemoteObject constructor and call 
     
    126128     * @throws RemoteException 
    127129     */ 
    128     public Coordinator(CADSimulatorState model) throws RemoteException 
     130    public Coordinator(CADSimulatorState model, String simTimeFilename) throws RemoteException 
    129131    { 
    130132        super(); 
    131133        cadModel = model; 
     134        kSimClockFilename = simTimeFilename; 
    132135        clientList = new LinkedList<CADClientInterface>(); 
    133136        cadData = new CADData(); 
Note: See TracChangeset for help on using the changeset viewer.