コード例 #1
0
 @Override
 public void eventOccurred(SimEvent event) {
   super.eventOccurred(event);
   if (event instanceof RoundFinishedEvent) {
     onWeekFinished();
   } else if (event instanceof RoundStartingEvent) {
     onWeekStarting();
   }
 }
コード例 #2
0
 @Override
 public void subscribeToEvents(EventScheduler scheduler) {
   super.subscribeToEvents();
   scheduler.addListener(RoundFinishedEvent.class, this);
   scheduler.addListener(RoundStartingEvent.class, this);
 }