org.android.activityminer.model.devices
Class NetworkLocationData

Package class diagram package NetworkLocationData
java.lang.Object
  extended by org.android.activityminer.model.devices.NetworkLocationData
All Implemented Interfaces:
DeviceData

public final class NetworkLocationData
extends Object
implements DeviceData

Data structure for raw location data.


Field Summary
 double lat
          The longitude
 double lon
          The longitude
 double speed
          The speed over ground in m/s
 long ts
          The original time stamp
static Double UNKNOWN_LATITUDE
          Value for an unknown latitude
static NetworkLocationData UNKNOWN_LOCATION
          Constant for unknown location data
static Double UNKNOWN_LONGITUDE
          Value for an unknown longitude
 
Constructor Summary
NetworkLocationData(double lon, double lat, double speed, long ts)
          Constructor
NetworkLocationData(Double lon, Double lat, Double speed, long ts)
          Constructor
NetworkLocationData(Location location, long ts)
          Constructor
NetworkLocationData(NetworkLocationData sample)
          Copy-Constructor
 
Method Summary
 void setTs(long ts)
          Setter for the time stamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_LONGITUDE

public static final Double UNKNOWN_LONGITUDE
Value for an unknown longitude


UNKNOWN_LATITUDE

public static final Double UNKNOWN_LATITUDE
Value for an unknown latitude


UNKNOWN_LOCATION

public static final NetworkLocationData UNKNOWN_LOCATION
Constant for unknown location data


lon

public final double lon
The longitude


lat

public final double lat
The longitude


speed

public final double speed
The speed over ground in m/s


ts

public long ts
The original time stamp

Constructor Detail

NetworkLocationData

public NetworkLocationData(Location location,
                           long ts)
Constructor

Parameters:
location - the android location fix
ts - the original time stamp

NetworkLocationData

public NetworkLocationData(Double lon,
                           Double lat,
                           Double speed,
                           long ts)
Constructor

Parameters:
lon - the longitude
lat - the latitude
speed - the speed
ts - the original time stamp

NetworkLocationData

public NetworkLocationData(double lon,
                           double lat,
                           double speed,
                           long ts)
Constructor

Parameters:
lon - the longitude
lat - the latitude
speed - the speed
ts - the original time stamp

NetworkLocationData

public NetworkLocationData(NetworkLocationData sample)
Copy-Constructor

Parameters:
sample - the sample to create from
Method Detail

setTs

public final void setTs(long ts)
Setter for the time stamp

Parameters:
ts - the new time stamp