de.unikassel.android.sdcframework.data.independent
Class LocationSampleData

Package class diagram package LocationSampleData
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.independent.AbstractSampleData
      extended by de.unikassel.android.sdcframework.data.independent.LocationSampleData
All Implemented Interfaces:
SampleData, SerializableData
Direct Known Subclasses:
GPSSampleData, NetworkLocationSampleData

public class LocationSampleData
extends AbstractSampleData

Base class for location specific sample data (GPS, Cell Info OR Wifif based) are the longitude, latitude, altitude and speed over ground information as provided by the Android API.


Field Summary
private  Float accuracy
          The accuracy of the GPS fix
private  Double altitude
          The altitude
private  Double latitude
          The latitude
private  Double longitude
          The longitude
private  Float speed
          The speed over ground in m/s
 
Constructor Summary
LocationSampleData()
          Constructor
LocationSampleData(LocationSampleData sampleData)
          Copy Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 Float getAccuracy()
          Getter for the accuracy
 Double getAltitude()
          Getter for the altitude
 Double getLatitude()
          Getter for the latitude
 Double getLongitude()
          Getter for the longitude
 Float getSpeed()
          Getter for the speed
 void setAccuracy(Float accuracy)
          Setter for the accuracy
 void setAltitude(Double altitude)
          Setter for the altitude
 void setLatitude(Double latitude)
          Setter for the latitude
 void setLongitude(Double longitude)
          Setter for the longitude
 void setSpeed(Float speed)
          Setter for the speed
 
Methods inherited from class de.unikassel.android.sdcframework.data.independent.AbstractSampleData
clone, getRelatedData, toXML, updateRelatedData
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

longitude

private Double longitude
The longitude


latitude

private Double latitude
The latitude


altitude

private Double altitude
The altitude


speed

private Float speed
The speed over ground in m/s


accuracy

private Float accuracy
The accuracy of the GPS fix

Constructor Detail

LocationSampleData

public LocationSampleData()
Constructor


LocationSampleData

public LocationSampleData(LocationSampleData sampleData)
Copy Constructor

Parameters:
sampleData - the sample data to copy from
Method Detail

doClone

public SampleData doClone()
Description copied from interface: SampleData
Method to clone sample data

Returns:
a copy of the sample data

equals

public final boolean equals(Object o)
Overrides:
equals in class Object

getLongitude

public final Double getLongitude()
Getter for the longitude

Returns:
the longitude

setLongitude

public final void setLongitude(Double longitude)
Setter for the longitude

Parameters:
longitude - the longitude to set

getLatitude

public final Double getLatitude()
Getter for the latitude

Returns:
the latitude

setLatitude

public final void setLatitude(Double latitude)
Setter for the latitude

Parameters:
latitude - the latitude to set

getAltitude

public final Double getAltitude()
Getter for the altitude

Returns:
the altitude

setAltitude

public final void setAltitude(Double altitude)
Setter for the altitude

Parameters:
altitude - the altitude to set

getSpeed

public final Float getSpeed()
Getter for the speed

Returns:
the speed

setSpeed

public final void setSpeed(Float speed)
Setter for the speed

Parameters:
speed - the speed to set

getAccuracy

public final Float getAccuracy()
Getter for the accuracy

Returns:
the accuracy

setAccuracy

public final void setAccuracy(Float accuracy)
Setter for the accuracy

Parameters:
accuracy - the accuracy to set