Changeset 123 in tmcsimulator for trunk/src/tmcsim/cadsimulator/managers


Ignore:
Timestamp:
10/15/2017 03:59:42 PM (9 years ago)
Author:
jdalbey
Message:

Multiple renaming of classes to improve clarity. Remove check for Paramics running before starting sim.

Location:
trunk/src/tmcsim/cadsimulator/managers
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/managers/IncidentManager.java

    r2 r123  
    77import tmcsim.cadmodels.IncidentInquiryModel_obj; 
    88import tmcsim.cadmodels.IncidentSummaryModel_obj; 
    9 import tmcsim.cadsimulator.CADSimulator; 
     9import tmcsim.cadsimulator.CADServer; 
    1010import tmcsim.cadsimulator.Coordinator; 
    1111import tmcsim.cadsimulator.SoundPlayer; 
     
    247247                 
    248248            for(IncidentEvent event : inc.getCompletedEvents()) { 
    249                 event.finalizeEvent(currentSimTime, CADSimulator.getCADTime()); 
     249                event.finalizeEvent(currentSimTime, CADServer.getCADTime()); 
    250250                updateIncident(inc.getLogNumber(), event); 
    251251                theCoordinator.updateIncidentInGUI(inc.getLogNumber(), event); 
     
    311311        if(targetIncident == null) { 
    312312            completedEvent.eventInfo.getHeader().logStatus    = "A";              
    313             completedEvent.eventInfo.getHeader().incidentDate = CADSimulator.getCADDate().substring(0,4);   
    314             completedEvent.eventInfo.getHeader().incidentTime = CADSimulator.getCADTime(); 
     313            completedEvent.eventInfo.getHeader().incidentDate = CADServer.getCADDate().substring(0,4);   
     314            completedEvent.eventInfo.getHeader().incidentTime = CADServer.getCADTime(); 
    315315             
    316316            targetIncident = new IncidentInquiryModel_obj(completedEvent.eventInfo); 
  • trunk/src/tmcsim/cadsimulator/managers/MediaManager.java

    r44 r123  
    1919import tmcsim.cadsimulator.videocontrol.DVDStatusUpdate; 
    2020import tmcsim.cadsimulator.videocontrol.DVDTitleUpdate; 
    21 import tmcsim.cadsimulator.viewer.model.CADSimulatorModel; 
     21import tmcsim.cadsimulator.viewer.model.CADSimulatorState; 
    2222import tmcsim.common.CCTVDirections; 
    2323import tmcsim.common.CCTVInfo; 
     
    7474     
    7575    /** Reference to the CADSimulatorModel. */ 
    76     private CADSimulatorModel theModel; 
     76    private CADSimulatorState theModel; 
    7777 
    7878    /** Properties object for the Media portion of the CAD. */ 
     
    9090     */ 
    9191    public MediaManager(String propertiesFile, ATMSManager theATMSManager,  
    92             CADSimulatorModel model) { 
     92            CADSimulatorState model) { 
    9393        theDVD_DB   = new DVDPlayerDB();         
    9494        theImage_DB = new StillImagesDB(); 
  • trunk/src/tmcsim/cadsimulator/managers/SimulationClockManager.java

    r2 r123  
    88import tmcsim.common.CADEnums.SCRIPT_STATUS; 
    99 
    10 public class SimulationControlManager  { 
     10/** Manage the simulation clock, "the heartbeat of the simulation". */ 
     11public class SimulationClockManager  { 
    1112 
    1213    /**  
    13      *  
     14     * Define what happens every second. 
    1415     */ 
    1516    private class ClockTask extends TimerTask {      
     
    3940     
    4041     
    41     public SimulationControlManager(Coordinator coor) { 
     42    public SimulationClockManager(Coordinator coor) { 
    4243         
    4344        theCoordinator    = coor;        
     
    5960     
    6061    public void startSimulation() { 
    61              
     62        /** Start the clock running */     
    6263        simTimer = new Timer();      
    6364        simTimer.scheduleAtFixedRate(new ClockTask(), 0, 1000); 
Note: See TracChangeset for help on using the changeset viewer.