JACK 5.4 Application Interface

aos.util.timer
Class RTClock

java.lang.Object
  extended byaos.util.timer.BaseClock
      extended byaos.util.timer.RTClock
All Implemented Interfaces:
java.lang.Runnable, Timer

public class RTClock
extends BaseClock
implements java.lang.Runnable, Timer

This is the base implementation for the System real time Clock class.


Field Summary
static Timer timer
          This timer member is the JACK universal real-time clock.
 
Constructor Summary
RTClock()
           
RTClock(java.lang.String s)
           
 
Method Summary
 long adjustTime(long t)
           
 long getTime()
          Method to return the clock's current time.
protected  void reschedule()
           
 void run()
           
 void setTime(long t)
           
 
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
 

Field Detail

timer

public static Timer timer
This timer member is the JACK universal real-time clock. It is initialised from the operating system's real-time clock.

Constructor Detail

RTClock

public RTClock()

RTClock

public RTClock(java.lang.String s)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

getTime

public long getTime()
Method to return the clock's current time.

Specified by:
getTime in interface Timer
Specified by:
getTime in class BaseClock
Returns:
The current time in milliseconds.

setTime

public void setTime(long t)
Specified by:
setTime in interface Timer

adjustTime

public long adjustTime(long t)
Specified by:
adjustTime in interface Timer

reschedule

protected void reschedule()
Specified by:
reschedule in class BaseClock

JACK 5.4 Application Interface

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