code: @SuppressWarnings("unchecked")
       public static void addNotification(Event e, String interaction) {
          NotificationManager.notifications.add(new InteractionNotification(getNotificationID(),
                                          NotificationManager.sim.getSchedule().getSteps(), e.getLauncher(), 
                                          interaction, (List<Object>) e.getAffected()));
          logger.fine("New notification added to notifications list. There is currently: " +
                      notifications.size()+" notifications\n Notification added: "
                      +NotificationManager.notifications.get(NotificationManager.notifications.size()-1));
      }
docs: Whenever a new event triggers it will use this method to add the corresponding notification
  to the notification lists.
  
  @param e
  the event that for the notification.
  @param interaction