Example #1
0
 @Override
 public void stop() {
   try {
     O killer = createO();
     Pilot pilot = new Pilot();
     pilot.setExtinguisher(true);
     killer.setPilot(pilot);
     for (Link<O> exit : exits) {
       exit.getQueue().putFirst(killer);
     }
   } catch (Exception e) {
     logger.log(Level.SEVERE, "Impossible to instanciate O", e);
   }
   this.stop = true;
 }