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