org.iu.gps
Class VRMITest

java.lang.Object
  |
  +--org.iu.gps.VRMITest
All Implemented Interfaces:
VRMITriggerListener

public class VRMITest
extends java.lang.Object
implements VRMITriggerListener

VRMITest is the test class for the VRMI module. VRMI is a higher layer above the GPSDriver and allows for different kinds of triggers: - periodic reporting - distance-based reporting - region-based reporting


Constructor Summary
VRMITest(GPSDriver gpsd)
          Create new instance of VRMITest.
 
Method Summary
static void main(java.lang.String[] argv)
          Main method.
 void trigger(TriggerInfo ti, GPSInfo gi)
          Trigger callback from VRMI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VRMITest

public VRMITest(GPSDriver gpsd)
         throws java.lang.Exception
Create new instance of VRMITest. Installs periodic, distance and region triggers.
Parameters:
gpsd - Parameter
Throws:
java.lang.Exception - Exception
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Main method. VRMI test method. Creates a new map display, and installs VRMITest with several triggers that print diagnostical information to stdout.
Parameters:
argv - User arguments (ignored).
Throws:
java.lang.Exception - Exception

trigger

public void trigger(TriggerInfo ti,
                    GPSInfo gi)
Trigger callback from VRMI. Handles all the different callbacks.
Specified by:
trigger in interface VRMITriggerListener
Parameters:
ti - Parameter
gi - Parameter