Changeset 123 in tmcsimulator for trunk/src/tmcsim/cadsimulator/managers/SimulationClockManager.java
- Timestamp:
- 10/15/2017 03:59:42 PM (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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.
