aos.util.timer
Class BaseClock
java.lang.Object
aos.util.timer.BaseClock
- All Implemented Interfaces:
- Timer
- Direct Known Subclasses:
- DilatedClock, RTClock, SimClock
- public abstract class BaseClock
- extends java.lang.Object
- implements Timer
This is the base implementation for clocks.
Constructor Summary |
BaseClock(java.lang.String n)
|
Method Summary |
boolean |
cancel(TimerHandle h)
|
protected void |
dumpq()
|
java.lang.String |
getName()
|
long |
getNextWhen()
|
abstract long |
getTime()
|
protected void |
notifyExpired()
|
protected abstract void |
reschedule()
|
TimerHandle |
schedule(TimerClient c,
long t,
java.lang.Object o)
|
TimerHandle |
schedule(TimerClient c,
long t,
java.lang.Object o,
TimerHandle h)
|
TimerHandle |
scheduleAt(TimerClient c,
long t,
java.lang.Object o)
|
TimerHandle |
scheduleAt(TimerClient c,
long t,
java.lang.Object o,
TimerHandle h)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseClock
public BaseClock(java.lang.String n)
getTime
public abstract long getTime()
- Specified by:
getTime
in interface Timer
getName
public java.lang.String getName()
getNextWhen
public long getNextWhen()
- Specified by:
getNextWhen
in interface Timer
notifyExpired
protected void notifyExpired()
dumpq
protected void dumpq()
reschedule
protected abstract void reschedule()
schedule
public TimerHandle schedule(TimerClient c,
long t,
java.lang.Object o)
- Specified by:
schedule
in interface Timer
schedule
public TimerHandle schedule(TimerClient c,
long t,
java.lang.Object o,
TimerHandle h)
- Specified by:
schedule
in interface Timer
scheduleAt
public TimerHandle scheduleAt(TimerClient c,
long t,
java.lang.Object o)
- Specified by:
scheduleAt
in interface Timer
scheduleAt
public TimerHandle scheduleAt(TimerClient c,
long t,
java.lang.Object o,
TimerHandle h)
- Specified by:
scheduleAt
in interface Timer
cancel
public boolean cancel(TimerHandle h)
- Specified by:
cancel
in interface Timer
Copyright (C) 1999-2008, Agent Oriented Software Pty. Ltd. 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.
Agent Oriented Software Pty. Ltd. http://www.aosgrp.com
PO Box 639, Carlton South, Victoria 3053, Australia
Phone: +61 3 9349 5055, Fax: +61 3 9349 5088