org.opengts.db.tables
Class Device.NearbyDevice

java.lang.Object
  extended by org.opengts.db.tables.Device.NearbyDevice
Enclosing class:
Device

public static class Device.NearbyDevice
extends java.lang.Object

Container class for a detected nearby device


Constructor Summary
Device.NearbyDevice(Account acct, java.lang.String targID, java.lang.String devID, GeoPoint gp, double kph, double dir, long timestamp, double distM)
           
 
Method Summary
 Account getAccount()
           
 java.lang.String getAccountID()
           
 java.lang.String getAddress()
           
 Device getDevice()
           
 java.lang.String getDeviceDescription()
           
 java.lang.String getDeviceID()
           
 double getDistanceKM()
           
 double getDistanceMeters()
           
 GeoPoint getGeoPoint()
           
 long getGpsAge()
           
 double getHeading()
           
 double getLatitude()
           
 double getLongitude()
           
 double getSpeedKPH()
           
 int getStatusCode()
           
 java.lang.String getTargetDeviceID()
           
 long getTimestamp()
           
 boolean hasGeoPoint()
           
 boolean isTargetDevice()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Device.NearbyDevice

public Device.NearbyDevice(Account acct,
                           java.lang.String targID,
                           java.lang.String devID,
                           GeoPoint gp,
                           double kph,
                           double dir,
                           long timestamp,
                           double distM)
Method Detail

getAccount

public Account getAccount()

getAccountID

public java.lang.String getAccountID()

getTargetDeviceID

public java.lang.String getTargetDeviceID()

getDeviceID

public java.lang.String getDeviceID()

isTargetDevice

public boolean isTargetDevice()

getDevice

public Device getDevice()
                 throws DBException
Throws:
DBException

getDeviceDescription

public java.lang.String getDeviceDescription()

getTimestamp

public long getTimestamp()

getStatusCode

public int getStatusCode()

hasGeoPoint

public boolean hasGeoPoint()

getGeoPoint

public GeoPoint getGeoPoint()

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getGpsAge

public long getGpsAge()

getSpeedKPH

public double getSpeedKPH()

getHeading

public double getHeading()

getDistanceMeters

public double getDistanceMeters()

getDistanceKM

public double getDistanceKM()

getAddress

public java.lang.String getAddress()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object