org.iu.gps
Class TriggerInfo

java.lang.Object
  |
  +--org.iu.gps.TriggerInfo
Direct Known Subclasses:
RegionTriggerInfo, TimeTriggerInfo

public class TriggerInfo
extends java.lang.Object

Trigger information base class. Contains information common for all triggers, trigger id, the receiver of the trigger, and whether the trigger is persistant or a one-shot trigger.


Field Summary
 int id
          Unique ID for the trigger.
 boolean persistant
          Specifies one-shot (false) or persistant (true) trigger.
 VRMITriggerListener receiver
          Receiver to whom this trigger will be reported.
 
Constructor Summary
TriggerInfo()
           
 
Method Summary
 void trigger(GPSInfo gi)
          Sends a trigger to the receiver, along with the current GPSInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
Unique ID for the trigger.

receiver

public VRMITriggerListener receiver
Receiver to whom this trigger will be reported.

persistant

public boolean persistant
Specifies one-shot (false) or persistant (true) trigger.
Constructor Detail

TriggerInfo

public TriggerInfo()
Method Detail

trigger

public void trigger(GPSInfo gi)
Sends a trigger to the receiver, along with the current GPSInfo.
Parameters:
gi - Current GPSInfo.