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 ( ) ) ; }
Add a new notification of the ElementValueNotification type . The ones that are defined by the user .