|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.util.timer.BaseClock
aos.jack.jak.util.timer.DilatedClock
A timer filter that provides time dilation. It can allow time to pass at normal pace, but it can also slow down, speed up or pause time if required.
Constructor Summary | |
DilatedClock(double d,
Timer t)
Constructs a DilatedClock with given initial dilation factor and source timer. |
|
DilatedClock(java.lang.String s,
double d,
Timer t)
Constructs a DilatedClock with given name, initial dilation factor and source timer. |
Method Summary | |
long |
adjustTime(long t)
Advances dilated time. |
void |
expired(TimerHandle h,
java.lang.Object o)
|
double |
getDilation()
Gets current dilation factor. |
long |
getTime()
Returns dilated timer reading. |
void |
go()
Continues the dilated time. |
boolean |
isRunning()
Tells whether the dilated time is running or not. |
protected void |
reschedule()
|
void |
setController(TimerClient c)
Sets new controller for this DilatedClock. |
void |
setDilation(double d)
Changes dilation factor. |
void |
setTime(long t)
Changes dilated time. |
void |
stop()
Stops the dilated time. |
Methods inherited from class aos.util.timer.BaseClock |
cancel, dumpq, getName, getNextWhen, notifyExpired, schedule, schedule, scheduleAt, scheduleAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface aos.util.timer.Timer |
cancel, getNextWhen, schedule, schedule, scheduleAt, scheduleAt |
Constructor Detail |
public DilatedClock(double d, Timer t)
d
- The dilation factor.t
- The Timer what will be used to specify this clock.public DilatedClock(java.lang.String s, double d, Timer t)
s
- The name for the clock.d
- The dilation factor.t
- The Timer that will be used to specify this clock.Method Detail |
public long getTime()
getTime
in interface Timer
getTime
in class BaseClock
public void stop()
public void go()
public boolean isRunning()
public void setDilation(double d)
d
- The new dilation factor.public double getDilation()
public void setController(TimerClient c)
protected void reschedule()
reschedule
in class BaseClock
public void expired(TimerHandle h, java.lang.Object o)
expired
in interface TimerClient
public void setTime(long t)
setTime
in interface Timer
public long adjustTime(long t)
adjustTime
in interface Timer
|
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.