Пример #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();
 }