|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.berkeley.guir.ptk.PTK
edu.berkeley.guir.ptk.notification.NotificationSetter
edu.berkeley.guir.ptk.notification.ExactMatchNotificationSetter
Determines if a given event is exactly the same Data value as the values specified by any of the notification level Data parameters and sets the level accordingly.
Only the value of the Data has to be the same - not the ids or metadata items. For example, if you set the makeaware parameter to a DataRange, the input must be a DataRange with the same data value, min, max, and step for there to be an exact match. The ids of the DataRange or the metadata do not have to match for there to be an "exact match."
Takes either five or six parameters (parameter (1) is optional):
| Field Summary | |
Data |
value_changeblind
|
Data |
value_demandaction
|
Data |
value_ignore
These data fields indicate the value to check for equality for each notification level. |
Data |
value_interrupt
|
Data |
value_makeaware
|
| 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 | |
ExactMatchNotificationSetter()
Default constructor. |
|
ExactMatchNotificationSetter(Data ignore,
Data changeblind,
Data makeaware,
Data interrupt,
Data demandaction)
Same as the previous two, except no data IDs. |
|
ExactMatchNotificationSetter(java.lang.String[] data_ids_to_check,
Data ignore,
Data changeblind,
Data makeaware,
Data interrupt,
Data demandaction)
Same as previous constructor, except the first parameter is an array. |
|
ExactMatchNotificationSetter(java.lang.String data_id_to_check,
Data ignore,
Data changeblind,
Data makeaware,
Data interrupt,
Data demandaction)
Constructor. |
|
| Method Summary | |
int |
set(Event e,
History h)
Determines if the event data is equal to one of the data fields of this Notification Setter. |
| 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 |
| Field Detail |
public Data value_ignore
The setter will simply not set the notification level to any level for which a change value is not specified.
public Data value_changeblind
public Data value_makeaware
public Data value_interrupt
public Data value_demandaction
| Constructor Detail |
public ExactMatchNotificationSetter()
public ExactMatchNotificationSetter(java.lang.String data_id_to_check,
Data ignore,
Data changeblind,
Data makeaware,
Data interrupt,
Data demandaction)
data_id_to_check - The data ID in the input event that this
notification setter will check when setting the notification level.
For example, if the setter is sets the notification level depending
on the volume of an audio input, then this would be set to
PTKConstants.VOLUME_ID.ignore - This is a Data object that will be compared to the input
event. If the two have equal data values, then the notification level
will be set to ignore.changeblind - This is a Data object that will be compared to the input
event. If the two have equal data values, then the notification level
will be set to changeblind.makeaware - This is a Data object that will be compared to the input
event. If the two have equal data values, then the notification level
will be set to makeaware.interrupt - This is a Data object that will be compared to the input
event. If the two have equal data values, then the notification level
will be set to interrupt.demandaction - This is a Data object that will be compared to the input
event. If the two have equal data values, then the notification level
will be set to demandaction.
public ExactMatchNotificationSetter(java.lang.String[] data_ids_to_check,
Data ignore,
Data changeblind,
Data makeaware,
Data interrupt,
Data demandaction)
data_ids_to_check - an array of data IDs that the setter will check in the
input event. The notification level will be set based upon the same parameters
for each data item. Each data item specified in the event has to match. For example,
each data item in data_id has to exactly match the makeaware Data in order for
the notification level to be set to MAKEAWARE.ignore - changeblind - makeaware - interrupt - demandaction -
public ExactMatchNotificationSetter(Data ignore,
Data changeblind,
Data makeaware,
Data interrupt,
Data demandaction)
| Method Detail |
public int set(Event e,
History h)
set in class NotificationSettere - The event that may have its notification set.h - The history of events that have been passed to this
application.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||