location.generators
Class FakeGPSMonitor.LocationTimer

java.lang.Object
  extended byjava.util.TimerTask
      extended bylocation.generators.FakeGPSMonitor.LocationTimer
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
FakeGPSMonitor

private class FakeGPSMonitor.LocationTimer
extends java.util.TimerTask

This class is responsible for firing the location changed events at a periodic interval.


Field Summary
(package private)  FakeGPSMonitor fgm
           
 
Fields inherited from class java.util.TimerTask
 
Constructor Summary
FakeGPSMonitor.LocationTimer(FakeGPSMonitor fgm)
          Creates a LocationTimer for the specified location generator.
 
Method Summary
 void run()
          Fires a location change event if a location reading exists.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fgm

FakeGPSMonitor fgm
Constructor Detail

FakeGPSMonitor.LocationTimer

public FakeGPSMonitor.LocationTimer(FakeGPSMonitor fgm)
Creates a LocationTimer for the specified location generator.

Parameters:
fgm - the FakeGPSMonitor that should be monitored.
Method Detail

run

public void run()
Fires a location change event if a location reading exists.