code: private static void addNotification(Notifable n) {
          NotificationManager.notifications.add(new ValueNotification(
                  getNotificationID(),
                  NotificationManager.sim.getSchedule().getSteps(), 
                  n.getSource(), 
                  n.getID(), 
                  n.getElementValue()));
          logger.fine("Notification added. Element: "+ n.getID()+". Value ="+n.getElementValue());
      }
docs: Add a new notification of the ElementValueNotification type. The ones that are defined
  by the user.
  
  @param n
  the notifable element to be recorded as a notification.