server
Class Timer

java.lang.Object
  extended byjava.util.Observable
      extended byserver.Timer
All Implemented Interfaces:
java.lang.Runnable

public class Timer
extends java.util.Observable
implements java.lang.Runnable

Observable class to interrupt the DeviceThread every second.

Version:
0.1
Author:
gswalters
See Also:
DeviceThread

Constructor Summary
Timer(long deviceID)
          Construct a Timer object for the given Device, via the deviceID.
 
Method Summary
 void run()
          Sleep for one second, wake, and notify the DeviceThread who spawned us.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer(long deviceID)
Construct a Timer object for the given Device, via the deviceID.

Parameters:
deviceID - int value of the Device's deviceID
Method Detail

run

public void run()
Sleep for one second, wake, and notify the DeviceThread who spawned us.

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()