|
JanosVM v1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.utah.janosvm.sys.List
|
+--edu.utah.janosvm.sys.EventQueue
An internal queue/dispatcher for events.
EventHandler,
Event| Fields inherited from class edu.utah.janosvm.sys.List |
head, tail |
| Constructor Summary | |
(package private) |
EventQueue()
|
| Method Summary | |
(package private) Event |
dequeue()
Fetch (and remove) the head event from this queue. |
void |
enqueue(Event event,
EventHandler eh,
int type)
Enqueue an event. |
void |
run()
Run the handler thread for this event queue. |
java.lang.String |
toString()
|
| Methods inherited from class edu.utah.janosvm.sys.List |
addHead, addTail, count, isEmpty, remHead, remTail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
| Constructor Detail |
EventQueue()
| Method Detail |
public void enqueue(Event event,
EventHandler eh,
int type)
event - An appropriately typed Event object to queue.eh - The target of the event.type - The type of event.Event dequeue()
Event from the front of the queue.public void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class List
|
JanosVM v1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||