|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j4me.bluetoothgps.Coordinates
org.j4me.bluetoothgps.QualifiedCoordinates
public class QualifiedCoordinates
The QualifiedCoordinates
class represents coordinates as
latitude-longitude-altitude values that are associated with an accuracy
value.
Field Summary |
---|
Fields inherited from class org.j4me.bluetoothgps.Coordinates |
---|
DD_MM, DD_MM_SS |
Constructor Summary | |
---|---|
QualifiedCoordinates(double latitude,
double longitude,
float altitude,
float horizontalAccuracy,
float verticalAccuracy)
Constructs a new QualifiedCoordinates object with the values
specified. |
Method Summary | |
---|---|
float |
getHorizontalAccuracy()
Returns the horizontal accuracy of the location in meters (1-sigma standard deviation). |
float |
getVerticalAccuracy()
Returns the accuracy of the location in meters in vertical direction (orthogonal to ellipsoid surface, 1-sigma standard deviation). |
void |
setHorizontalAccuracy(float horizontalAccuracy)
Sets the horizontal accuracy of the location in meters (1-sigma standard deviation). |
void |
setVerticalAccuracy(float verticalAccuracy)
Sets the accuracy of the location in meters in vertical direction (orthogonal to ellipsoid surface, 1-sigma standard deviation). |
java.lang.String |
toString()
Provides a string representation of the qualified coordinates. |
Methods inherited from class org.j4me.bluetoothgps.Coordinates |
---|
azimuthTo, distance, equals, getAltitude, getLatitude, getLongitude, setAltitude, setLatitude, setLongitude |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QualifiedCoordinates(double latitude, double longitude, float altitude, float horizontalAccuracy, float verticalAccuracy)
QualifiedCoordinates
object with the values
specified. The latitude and longitude parameters are expressed in degrees
using floating point values. The degrees are in decimal values (rather
than minutes/seconds).
The coordinate values always apply to the WGS84 datum.
The Float.Nan
value can be used for altitude to indicate that
altitude is not known.
latitude
- - the latitude of the location. Valid range: [-90.0,
90.0]. Positive values indicate northern latitude and negative
values southern latitude.longitude
- - the longitude of the location. Valid range: [-180.0,
180.0). Positive values indicate eastern longitude and negative
values western longitudealtitude
- - the altitude of the location in meters, defined as
height above WGS84 ellipsoid. Float.Nan
can be used to
indicate that altitude is not known.horizontalAccuracy
- - the horizontal accuracy of this location
result in meters. Float.Nan
can be used to indicate that
the accuracy is not known. Must be greater or equal to 0.verticalAccuracy
- - the vertical accuracy of this location result
in meters. Float.Nan
can be used to indicate that the
accuracy is not known. Must be greater or equal to 0.
java.lang.IllegalArgumentException
- - if an input parameter is out
of the valid rangeMethod Detail |
---|
public float getHorizontalAccuracy()
Float.Nan
means the horizontal
accuracy could not be determined.
The horizontal accuracy is the RMS (root mean square) of east accuracy (latitudinal error in meters, 1-sigma standard deviation), north accuracy (longitudinal error in meters, 1-sigma).
Float.Nan
if this is
not knownpublic void setHorizontalAccuracy(float horizontalAccuracy)
Float.Nan
means the horizontal accuracy
could be determined.
The horizontal accuracy is the RMS (root mean square) of east accuracy (latitudinal error in meters, 1-sigma standard deviation), north accuracy (longitudinal error in meters, 1-sigma).
horizontalAccuracy
- - the horizontal accuracy of this location
result in meters. Float.Nan
means the horizontal accuracy
could not be determined. Must be greater or equal to 0.
java.lang.IllegalArgumentException
- - if an input parameter is out
of the valid rangepublic float getVerticalAccuracy()
Float.Nan
means the vertical accuracy could not be determined.
Float.Nan
if this is not
known.public void setVerticalAccuracy(float verticalAccuracy)
Float.Nan
means the vertical accuracy could be determined.
verticalAccuracy
- - the vertical accuracy of this location result
in meters. Float.Nan
means the horizontal accuracy could
not be determined. Must be greater or equal to 0.
java.lang.IllegalArgumentException
- - if an input parameter is out
of the valid rangepublic java.lang.String toString()
toString
in class Coordinates
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |