edu.berkeley.guir.ptk.notification
Class AnyChangesNotificationSetter

java.lang.Object
  extended byedu.berkeley.guir.ptk.PTK
      extended byedu.berkeley.guir.ptk.notification.NotificationSetter
          extended byedu.berkeley.guir.ptk.notification.AnyChangesNotificationSetter

public class AnyChangesNotificationSetter
extends NotificationSetter

All InputSource objects check that an event has changed before dispatching it. Therefore, this Notification Setter should never be needed, unless the developer modifies InputSource.

Compares the new event to the previous event with the same metadata and determines if it has changed. If the event has changed, sets the notification level to make aware.

Author:
tmatthew Created: Mar 2, 2003

Field Summary
 
Fields inherited from class edu.berkeley.guir.ptk.notification.NotificationSetter
data_id, translate
 
Fields inherited from class edu.berkeley.guir.ptk.PTK
debug, MAX_DEBUG, MED_DEBUG, MIN_DEBUG, NO_DEBUG
 
Constructor Summary
AnyChangesNotificationSetter()
           
 
Method Summary
 int set(Event e, History h)
          Sets the notification level to make aware if there has been a changed since the previous event with the same metadata.
 
Methods inherited from class edu.berkeley.guir.ptk.notification.NotificationSetter
addMetadataIWant, canISetNotification, getAllMetadata, getEventData, getEventDataAsDouble, getFirstMetadata
 
Methods inherited from class edu.berkeley.guir.ptk.PTK
getMAX, getMED, getMIN, getNO, printDebug, printDebug, printError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyChangesNotificationSetter

public AnyChangesNotificationSetter()
Method Detail

set

public int set(Event e,
               History h)
Sets the notification level to make aware if there has been a changed since the previous event with the same metadata.

Specified by:
set in class NotificationSetter
Parameters:
e - The event that may have its notification set.
h - The history of events that have been passed to this application.
Returns:
The notification level to which it set the event.