|
|||||||||||
| 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.transition.Transition
The transition() method is the entry and exit point for this class, which calls
state machine methods to create the transition. The transition consists of a
chain of events. The chain of events is passed to the output, which displays
each in turn.
To create this chain of events, the transition calls the Animatable methods
in a certain order. This order is implemented by the state machine methods.
A transition from one notification level to another may need to be unique.
The state machine methods include actions for all permutations of one
notification level to another (e.g., changeblind2ignore,
changeblind2changeblind, changeblind2makeaware,
etc.). The default Transition class implements only the following
methods, which are called by the state machine methods based on a new event's
notification level. These events call the Animatable methods, creating varying
chains of events.
ignoreTrans:
returns no events (null); event is not displayed.
changeblindTrans:
creates a chain of events that is
Transition.num_steps_changeblind long (this data field is
specified by the developer, by calling
Output.setChangeblindTransitionSteps). First it calls
transitionStep (potentially) multiple times, and finishes
with a call to endTransition.
makeawareTrans:
by default, returns a single event: the new event. Is capable of creating
a chain of events that is Transition.num_steps_makeaware
long (this data field is
specified by the developer, by calling
Output.setMakeawareTransitionSteps). First it calls
transitionStep (potentially) multiple times, and finishes
with a call to endTransition.
interruptTrans:
creates a chain of events that is Transition.num_steps_interrupt
long. First it calls alternateStep, then
endTransition, then it repeats these calls as many times as is
necessary.
demandactionTrans:
creates a chain of events by calling interruptTrans. The output reacts by
repeatedly displaying this chain until a certain action is performed.
| Field Summary | |
DisplayInfo |
display_info
Contains application-specific event display information, such as the color of text of pacing information. |
int |
num_steps_changeblind
The number of steps a changeblind transition will have (default = 30). |
int |
num_steps_interrupt
The number of steps an interrupt transition will have (default = 10). |
int |
num_steps_makeaware
The number of steps a make aware transition will have (default = 1). |
| Fields inherited from class edu.berkeley.guir.ptk.PTK |
debug, MAX_DEBUG, MED_DEBUG, MIN_DEBUG, NO_DEBUG |
| Constructor Summary | |
Transition()
Default constructor: sets this.display_info to a new
DisplayInfo object. |
|
Transition(DisplayInfo di)
Parameterized constructor: sets this.display_info to the given
DisplayInfo object. |
|
| Method Summary | |
protected Event[] |
changeblind2changeblind(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
changeblind2demandaction(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
changeblind2ignore(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
changeblind2interrupt(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
changeblind2makeaware(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
changeblindTrans(Animatable out,
Event prev_event,
Event new_event)
Function used to create a change blind transition. |
protected Event[] |
demandaction2changeblind(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
demandaction2demandaction(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
demandaction2ignore(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
demandaction2interrupt(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
demandaction2makeaware(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
demandactionTrans(Animatable out,
Event prev_event,
Event new_event)
Function that creates the array of events for a demand action transition. |
protected Event[] |
ignore2changeblind(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
ignore2demandaction(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
ignore2ignore(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
ignore2interrupt(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
ignore2makeaware(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
ignoreTrans(Animatable out,
Event prev_event,
Event new_event)
Function used to create an ignore transition (which just returns null). |
protected Event[] |
interrupt2changeblind(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
interrupt2demandaction(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
interrupt2ignore(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
interrupt2interrupt(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
interrupt2makeaware(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
interruptTrans(Animatable out,
Event prev_event,
Event new_event)
Function used to create in interrupt transition. |
protected Event[] |
makeaware2changeblind(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
makeaware2demandaction(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
makeaware2ignore(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
makeaware2interrupt(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
makeaware2makeaware(Animatable a,
Event prev_event,
Event new_event)
|
protected Event[] |
makeawareTrans(Animatable out,
Event prev_event,
Event new_event)
Function used to create a make aware transition. |
Event[] |
transition(Animatable a,
Event new_event)
This is the entry and exit point of an event to the Transition object. |
| 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 DisplayInfo display_info
public int num_steps_changeblind
public int num_steps_makeaware
public int num_steps_interrupt
| Constructor Detail |
public Transition()
this.display_info to a new
DisplayInfo object.
public Transition(DisplayInfo di)
this.display_info to the given
DisplayInfo object.
di - DisplayInfo| Method Detail |
public Event[] transition(Animatable a,
Event new_event)
This method provides the full range of calls corresponding to every pair of new event and old event notification levels. The default functionality is to reduce the function calls to ones that only consider the new event's notification level. These in turn are given a default functionality described in the class comments above.
protected Event[] ignore2ignore(Animatable a,
Event prev_event,
Event new_event)
protected Event[] ignore2changeblind(Animatable a,
Event prev_event,
Event new_event)
protected Event[] ignore2makeaware(Animatable a,
Event prev_event,
Event new_event)
protected Event[] ignore2interrupt(Animatable a,
Event prev_event,
Event new_event)
protected Event[] ignore2demandaction(Animatable a,
Event prev_event,
Event new_event)
protected Event[] changeblind2ignore(Animatable a,
Event prev_event,
Event new_event)
protected Event[] changeblind2changeblind(Animatable a,
Event prev_event,
Event new_event)
protected Event[] changeblind2makeaware(Animatable a,
Event prev_event,
Event new_event)
protected Event[] changeblind2interrupt(Animatable a,
Event prev_event,
Event new_event)
protected Event[] changeblind2demandaction(Animatable a,
Event prev_event,
Event new_event)
protected Event[] makeaware2ignore(Animatable a,
Event prev_event,
Event new_event)
protected Event[] makeaware2changeblind(Animatable a,
Event prev_event,
Event new_event)
protected Event[] makeaware2makeaware(Animatable a,
Event prev_event,
Event new_event)
protected Event[] makeaware2interrupt(Animatable a,
Event prev_event,
Event new_event)
protected Event[] makeaware2demandaction(Animatable a,
Event prev_event,
Event new_event)
protected Event[] interrupt2ignore(Animatable a,
Event prev_event,
Event new_event)
protected Event[] interrupt2changeblind(Animatable a,
Event prev_event,
Event new_event)
protected Event[] interrupt2makeaware(Animatable a,
Event prev_event,
Event new_event)
protected Event[] interrupt2interrupt(Animatable a,
Event prev_event,
Event new_event)
protected Event[] interrupt2demandaction(Animatable a,
Event prev_event,
Event new_event)
protected Event[] demandaction2ignore(Animatable a,
Event prev_event,
Event new_event)
protected Event[] demandaction2changeblind(Animatable a,
Event prev_event,
Event new_event)
protected Event[] demandaction2makeaware(Animatable a,
Event prev_event,
Event new_event)
protected Event[] demandaction2interrupt(Animatable a,
Event prev_event,
Event new_event)
protected Event[] demandaction2demandaction(Animatable a,
Event prev_event,
Event new_event)
protected Event[] ignoreTrans(Animatable out,
Event prev_event,
Event new_event)
protected Event[] changeblindTrans(Animatable out,
Event prev_event,
Event new_event)
protected Event[] makeawareTrans(Animatable out,
Event prev_event,
Event new_event)
protected Event[] interruptTrans(Animatable out,
Event prev_event,
Event new_event)
protected Event[] demandactionTrans(Animatable out,
Event prev_event,
Event new_event)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||