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


Ignore:
Timestamp:
03/27/2019 03:01:27 PM (7 years ago)
Author:
jdalbey
Message:

tmcsim.common package: Added class TimeUtils?.java and moved longtotime() into it from SimulationManagerView?.

File:
1 edited

Legend:

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

    r347 r349  
    6767import tmcsim.common.SimulationException; 
    6868import tmcsim.common.XMLIncident; 
     69import tmcsim.common.TimeUtils; 
    6970import tmcsim.interfaces.CADClientInterface; 
    7071import tmcsim.interfaces.CoordinatorInterface; 
     
    9596     * The name of the file where the simulation clock time is written 
    9697     */ 
    97     public static final String kSimClockFilename = "webapps/sim_clock.json"; 
     98    public static final String kSimClockFilename = "webapps" +  
     99            System.getProperty("file.separator") + "sim_clock.json"; 
    98100    /** 
    99101     * Error logger. 
     
    717719                        // Format output as json 
    718720                        String lineout =  "{\"clock\":\""  
    719                                 + SimulationManagerView.longToTime(currentSimTime) + "\"}"; 
     721                                + TimeUtils.longToTime(currentSimTime) + "\"}"; 
    720722                        writer.println(lineout); 
    721723                        writer.close(); 
Note: See TracChangeset for help on using the changeset viewer.