@Override public void eventOccurred(SimEvent event) { super.eventOccurred(event); if (event instanceof RoundFinishedEvent) { onWeekFinished(); } else if (event instanceof RoundStartingEvent) { onWeekStarting(); } }
@Override public void subscribeToEvents(EventScheduler scheduler) { super.subscribeToEvents(); scheduler.addListener(RoundFinishedEvent.class, this); scheduler.addListener(RoundStartingEvent.class, this); }