Changeset 123 in tmcsimulator for trunk/src/tmcsim/cadsimulator/managers
- Timestamp:
- 10/15/2017 03:59:42 PM (9 years ago)
- Location:
- trunk/src/tmcsim/cadsimulator/managers
- Files:
-
- 2 edited
- 1 moved
-
IncidentManager.java (modified) (3 diffs)
-
MediaManager.java (modified) (3 diffs)
-
SimulationClockManager.java (moved) (moved from trunk/src/tmcsim/cadsimulator/managers/SimulationControlManager.java) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/cadsimulator/managers/IncidentManager.java
r2 r123 7 7 import tmcsim.cadmodels.IncidentInquiryModel_obj; 8 8 import tmcsim.cadmodels.IncidentSummaryModel_obj; 9 import tmcsim.cadsimulator.CADS imulator;9 import tmcsim.cadsimulator.CADServer; 10 10 import tmcsim.cadsimulator.Coordinator; 11 11 import tmcsim.cadsimulator.SoundPlayer; … … 247 247 248 248 for(IncidentEvent event : inc.getCompletedEvents()) { 249 event.finalizeEvent(currentSimTime, CADS imulator.getCADTime());249 event.finalizeEvent(currentSimTime, CADServer.getCADTime()); 250 250 updateIncident(inc.getLogNumber(), event); 251 251 theCoordinator.updateIncidentInGUI(inc.getLogNumber(), event); … … 311 311 if(targetIncident == null) { 312 312 completedEvent.eventInfo.getHeader().logStatus = "A"; 313 completedEvent.eventInfo.getHeader().incidentDate = CADS imulator.getCADDate().substring(0,4);314 completedEvent.eventInfo.getHeader().incidentTime = CADS imulator.getCADTime();313 completedEvent.eventInfo.getHeader().incidentDate = CADServer.getCADDate().substring(0,4); 314 completedEvent.eventInfo.getHeader().incidentTime = CADServer.getCADTime(); 315 315 316 316 targetIncident = new IncidentInquiryModel_obj(completedEvent.eventInfo); -
trunk/src/tmcsim/cadsimulator/managers/MediaManager.java
r44 r123 19 19 import tmcsim.cadsimulator.videocontrol.DVDStatusUpdate; 20 20 import tmcsim.cadsimulator.videocontrol.DVDTitleUpdate; 21 import tmcsim.cadsimulator.viewer.model.CADSimulator Model;21 import tmcsim.cadsimulator.viewer.model.CADSimulatorState; 22 22 import tmcsim.common.CCTVDirections; 23 23 import tmcsim.common.CCTVInfo; … … 74 74 75 75 /** Reference to the CADSimulatorModel. */ 76 private CADSimulator ModeltheModel;76 private CADSimulatorState theModel; 77 77 78 78 /** Properties object for the Media portion of the CAD. */ … … 90 90 */ 91 91 public MediaManager(String propertiesFile, ATMSManager theATMSManager, 92 CADSimulator Modelmodel) {92 CADSimulatorState model) { 93 93 theDVD_DB = new DVDPlayerDB(); 94 94 theImage_DB = new StillImagesDB(); -
trunk/src/tmcsim/cadsimulator/managers/SimulationClockManager.java
r2 r123 8 8 import tmcsim.common.CADEnums.SCRIPT_STATUS; 9 9 10 public class SimulationControlManager { 10 /** Manage the simulation clock, "the heartbeat of the simulation". */ 11 public class SimulationClockManager { 11 12 12 13 /** 13 * 14 * Define what happens every second. 14 15 */ 15 16 private class ClockTask extends TimerTask { … … 39 40 40 41 41 public SimulationC ontrolManager(Coordinator coor) {42 public SimulationClockManager(Coordinator coor) { 42 43 43 44 theCoordinator = coor; … … 59 60 60 61 public void startSimulation() { 61 62 /** Start the clock running */ 62 63 simTimer = new Timer(); 63 64 simTimer.scheduleAtFixedRate(new ClockTask(), 0, 1000);
Note: See TracChangeset
for help on using the changeset viewer.
