コード例 #1
0
  @Override
  public boolean process(Event event) {
    switch (event.getType()) {
      case SIMULATION_END:
        return false;

      case DISPLAY_RUNNING_STATE:
        System.out.println("simulator running for " + (int) State.getTime() + "s!");
        EventHandler.scheduleSystemEvent(State.getTime() + 10, DISPLAY_RUNNING_STATE);

        return true;
    }

    return false;
  }