|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.jack.jak.util.Watchable
aos.jack.jak.cursor.Cursor
aos.jack.jak.cursor.TimeCursor
Implements a cursor that triggers at a particular time.
Field Summary |
Fields inherited from class aos.jack.jak.cursor.Cursor |
FALSE, falseCursor, TRUE, trueCursor, UNKNOWN |
Constructor Summary | |
TimeCursor(long at,
Timer t)
Construct a TimeCursor. |
Method Summary | |
void |
expired(TimerHandle h,
java.lang.Object o)
|
void |
finished()
This informs the cursor that it is not going to be used again. |
boolean |
isTriggered()
Used by JACK to determine if the cursor provides triggering. |
boolean |
next()
Used to test if the Cursor is true. |
void |
register(java.util.Observer o)
|
Cursor |
reset(aos.jack.jak.core.Generator g,
int index)
Resets the cursor so a call to next() will return if the correct time has passed. |
java.lang.String |
toString()
|
boolean |
unRegister(java.util.Observer o)
|
Methods inherited from class aos.jack.jak.cursor.Cursor |
negate, undo |
Methods inherited from class aos.jack.jak.util.Watchable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TimeCursor(long at, Timer t)
at
- The time at which to trigger.t
- The timer used to measure the time.Method Detail |
public java.lang.String toString()
public boolean next()
next
in class Cursor
public Cursor reset(aos.jack.jak.core.Generator g, int index)
reset
in class Cursor
g
- Not used, as there is no need to generate a new cursor.index
- Not used, as there is no need to generate a new cursor.
public void finished()
Cursor
finished
in class Cursor
public boolean isTriggered()
Cursor
isTriggered
in class Cursor
public void register(java.util.Observer o)
register
in class Cursor
public boolean unRegister(java.util.Observer o)
unRegister
in class Cursor
public void expired(TimerHandle h, java.lang.Object o)
expired
in interface TimerClient
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.