|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.data.independent.AbstractSampleData
de.unikassel.android.sdcframework.data.independent.LocationSampleData
public class LocationSampleData
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 |
---|
private Double longitude
private Double latitude
private Double altitude
private Float speed
private Float accuracy
Constructor Detail |
---|
public LocationSampleData()
public LocationSampleData(LocationSampleData sampleData)
sampleData
- the sample data to copy fromMethod Detail |
---|
public SampleData doClone()
SampleData
public final boolean equals(Object o)
equals
in class Object
public final Double getLongitude()
public final void setLongitude(Double longitude)
longitude
- the longitude to setpublic final Double getLatitude()
public final void setLatitude(Double latitude)
latitude
- the latitude to setpublic final Double getAltitude()
public final void setAltitude(Double altitude)
altitude
- the altitude to setpublic final Float getSpeed()
public final void setSpeed(Float speed)
speed
- the speed to setpublic final Float getAccuracy()
public final void setAccuracy(Float accuracy)
accuracy
- the accuracy to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |