예제 #1
0
 @Override
 public synchronized void start() {
   if (this.simulation.getState() != EngineState.STOPPED
       && this.simulation.getState() != EngineState.CRASHED) return;
   if (!this.scenarioLoaded) {
     this.loadScenario(this.currentScenario);
   }
   this.updateScenarioParameters();
   simulation.runSimulation();
   this.scenarioLoaded = false;
   logger.info("Starting new simulation");
 }
예제 #2
0
 @Override
 public synchronized void resume() {
   simulation.resumeSimulation();
 }
예제 #3
0
 @Override
 public synchronized void pause() {
   simulation.pauseSimulation();
 }
예제 #4
0
 @Override
 public synchronized void stop() {
   simulation.stopSimulation();
 }