|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Scheduler
Scheduler
is a class that allows
addition, removal, and retrieval of a list of events, sorted
by their occurrence time.
Constructor Summary | |
Scheduler()
This will initialize the storage. |
Method Summary | |
boolean |
addEvent(java.lang.String eventName,
java.util.Date eventTime)
This will add the requested event. |
java.util.Vector |
getListOfEvents()
This will return the current listing of events. |
boolean |
removeEvent(java.lang.String eventName)
This will remove the requested event. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Scheduler()
This will initialize the storage.
Method Detail |
public boolean addEvent(java.lang.String eventName, java.util.Date eventTime)
This will add the requested event.
eventName
- String
name of event to add.eventTime
- Date
of event.boolean
- indication of if event was added.public boolean removeEvent(java.lang.String eventName)
This will remove the requested event.
eventName
- String
name of event to remove.boolean
- indication of if event was removed.public java.util.Vector getListOfEvents()
This will return the current listing of events.
Vector
- list of events.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |