Example #1
0
  @Override
  protected void end() {
    super.end();
    if (timer != null) {
      timer = null; // stops the timer from within its run
    }
    if (isMadkitPropertyTrue(TurtleKit.Option.cuda)) {
      CudaEngine.stop();
      if (logger != null) logger.fine("cuda freed");
    }
    //		pause(10000);

    //		killAgent(model.getEnvironment());
    //		CudaEngine.stop();
    //		sendMessage(
    //				LocalCommunity.NAME,
    //				Groups.SYSTEM,
    //				Organization.GROUP_MANAGER_ROLE,
    //				new KernelMessage(KernelAction.EXIT));//TODO work with AA but this is probably worthless
  }