Class GpsMonitor

java.lang.Object
  |
  +--GpsMonitor

public class GpsMonitor
extends java.lang.Object

This class is for running the GpsMonitor iPAQ Application.


Field Summary
private  gps_monitor.util.Position chart_pos
           
private  gps_monitor.util.ChartData chartdata
           
private  gps_monitor.gps.GpsGenerator gps
           
private  gps_monitor.gui.GpsMonitorUI monitorUI
           
 
Constructor Summary
GpsMonitor(java.lang.String user, java.lang.String inputPort, boolean sim, int port)
          Constructor that creates an instance of GpsMonitor.
 
Method Summary
private  gps_monitor.util.Position calcPred(gps_monitor.util.Position pos)
          Calculate where we will be in seconds with current speed and direction.
static void main(java.lang.String[] argv)
          The main method that creates an instance of GpsMontior according to a command-line argument.
private  void pollGps()
          This method updates the GUI with the latest values available from the GPS.
private  void readData(java.lang.String file_name)
          Read calibration data from file.
private  void runMonitor()
          This loop continues polling the widget until the application is shut down.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monitorUI

private gps_monitor.gui.GpsMonitorUI monitorUI

gps

private gps_monitor.gps.GpsGenerator gps

chart_pos

private gps_monitor.util.Position chart_pos

chartdata

private gps_monitor.util.ChartData chartdata
Constructor Detail

GpsMonitor

public GpsMonitor(java.lang.String user,
                  java.lang.String inputPort,
                  boolean sim,
                  int port)
Constructor that creates an instance of GpsMonitor. This is achieved by creating a NmeaSerialGps object to deal with input from the GPS receiver, and creating a GUI (GpsMonitorUI) that will display the results.

Parameters:
user - The object/gps device we are monitoring
See Also:
locationUtils.GpsMonitorUI, NmeaSerialGps
Method Detail

runMonitor

private void runMonitor()
This loop continues polling the widget until the application is shut down.


pollGps

private void pollGps()
This method updates the GUI with the latest values available from the GPS.


main

public static void main(java.lang.String[] argv)
The main method that creates an instance of GpsMontior according to a command-line argument. The argument specifies the name of the object that is being tracked.


readData

private void readData(java.lang.String file_name)
Read calibration data from file.


calcPred

private gps_monitor.util.Position calcPred(gps_monitor.util.Position pos)
Calculate where we will be in seconds with current speed and direction.