|
|||||||||||
| 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.output.Output
edu.berkeley.guir.ptk.output.PhidgetInterfaceKitOutput
edu.berkeley.guir.ptk.apps.busmobile.BusLEDOutput
Example Output that extends the PhidgetIntefaceKitOutput library element. Also, is Animatable.
| Field Summary | |
static int |
NUM_STEPS
|
| Fields inherited from class edu.berkeley.guir.ptk.output.PhidgetInterfaceKitOutput |
kit, KIT, manager, my_serial_num |
| Fields inherited from class edu.berkeley.guir.ptk.output.Output |
animatable, d_queue, data_ids_I_want, history, ITEMS_LENGTH, metadata_I_want, num_ids, num_metadata, output_cycle_time, transition |
| Fields inherited from class edu.berkeley.guir.ptk.PTK |
debug, MAX_DEBUG, MED_DEBUG, MIN_DEBUG, NO_DEBUG |
| Fields inherited from interface Phidgets._IPhidgetManagerEvents |
event_package, id_1, id_2, id_3 |
| Constructor Summary | |
BusLEDOutput(int serial,
Metadata metadata_I_want)
|
|
| Method Summary | |
Event |
alternateStep(Event prev_event,
Event new_event,
int step)
Returns an event that represents the "alternate" or "opposite" of what is displayed by the other transition methods in order to create a "flashing" effect. |
Event |
changeblindTransStep(Event prev_event,
Event new_event,
int step_num)
Returns an event that is somewhere between the start and end points of a change blind transition, depending on the display_step and the number of steps involved in the transition. |
protected void |
displayEvent(Event e)
This code needs to actually display the event (e.g. |
Event |
endTransition(Event prev_event,
Event new_event,
int step)
Returns an event representative of the end state of a transition. |
void |
initialize()
Called when the interface kit with serial number SERVO is attached. |
Event |
interruptTransStep(Event prev_event,
Event new_event,
int step_num)
Returns an event that is somewhere between the start and end points of a interrupt transition, depending on the display_step and the number of steps involved in the transition. |
Event |
makeawareTransStep(Event prev_event,
Event new_event,
int step_num)
Returns an event that is somewhere between the start and end points of a make aware transition, depending on the display_step and the number of steps involved in the transition. |
Event |
startTransition(Event prev_event,
Event new_event,
int step)
Returns an event representative of the beginning of a transition. |
protected int |
translateTime2Lights(double time)
|
| Methods inherited from class edu.berkeley.guir.ptk.output.PhidgetInterfaceKitOutput |
initManager, OnAttach, OnDetach, OnError |
| Methods inherited from class edu.berkeley.guir.ptk.output.Output |
addDataID, addMetadataIWant, checkAction, doIWant, getAllMetadata, getDataIDs, getFirstMetadata, getHistory, handleEvent, interDisplayEvent, isAnimatable, printMetadataIWant, run, setChangeblindTransitionSteps, setDataIDsIWant, setInterruptTransitionSteps, setMakeawareTransitionSteps, setTimeBetweenDisplayEvents, setTransition, setUnsetNotification |
| 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 static final int NUM_STEPS
| Constructor Detail |
public BusLEDOutput(int serial,
Metadata metadata_I_want)
| Method Detail |
public void initialize()
initialize in class PhidgetInterfaceKitOutputprotected void displayEvent(Event e)
Output
displayEvent in class Outpute - This event to be displayedprotected int translateTime2Lights(double time)
public Event startTransition(Event prev_event,
Event new_event,
int step)
Animatable
startTransition in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event endTransition(Event prev_event,
Event new_event,
int step)
Animatable
endTransition in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event changeblindTransStep(Event prev_event,
Event new_event,
int step_num)
Animatable
changeblindTransStep in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step_num - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event makeawareTransStep(Event prev_event,
Event new_event,
int step_num)
Animatable
makeawareTransStep in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step_num - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event interruptTransStep(Event prev_event,
Event new_event,
int step_num)
Animatable
interruptTransStep in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step_num - a number indicating the display order of the event
returned if the Transition is creating a set of events.
public Event alternateStep(Event prev_event,
Event new_event,
int step)
Animatable
alternateStep in interface Animatableprev_event - the previous event sent to this Output (null if the
new event is the first).new_event - the new event to be displayed on the Output.step - a number indicating the display order of the event
returned if the Transition is creating a set of events.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||