@Override
  public void stop() {

    logger.debug("Stopping simulation executor.");
    simulationExecutor.stop();
    try {
      logger.debug("Waiting for future to end.");
      future.get(); // wait for end
    } catch (ExecutionException | InterruptedException e) {
      logger.error(
          "Error occured while stopping simulation with parameters: " + getParameters(), e);
    }
  }
 @Override
 public SimulationExecutorParameters getParameters() {
   return simulationExecutor.getParameters();
 }