|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.runtime.Scheduler
abstract class Scheduler
Event scheduler interface and implementations.
| Nested Class Summary | |
|---|---|
(package private) static class |
Scheduler.Calendar
Implementation of calendar queue event scheduler. |
(package private) static class |
Scheduler.Heap
Implements an array-based heap of Events. |
| Constructor Summary | |
|---|---|
Scheduler()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear all events in the queue. |
abstract void |
insert(Event ev)
Insert event into event queue. |
abstract boolean |
isEmpty()
Return whether event queue is empty. |
static void |
main(java.lang.String[] args)
Test various schedular implementations. |
abstract Event |
peekFirst()
Peek at first event in queue. |
abstract Event |
removeFirst()
Remove first event in queue. |
abstract int |
size()
Return size of event queue. |
private static void |
test(Scheduler s)
Simple scheduler test... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Scheduler()
| Method Detail |
|---|
public abstract int size()
public abstract boolean isEmpty()
public abstract void insert(Event ev)
ev - event to insertpublic abstract Event removeFirst()
public abstract Event peekFirst()
public void clear()
private static void test(Scheduler s)
s - scheduler to testpublic static void main(java.lang.String[] args)
args - command-line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||