|
OSGi™ Service Platform Release 3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osgi.util.position.Position
Position represents a geographic location, based on the WGS84 System (World Geodetic System 1984).
The org.osgi.util.measurement.Measurement class is used to represent the values that make up a position.
A given position object may lack any of it's components, i.e. the altitude may not be known. Such missing values will be represented by null.
Position does not override the implementation of either equals() or hashCode() because it is not clear how missing values should be handled. It is up to the user of a position to determine how best to compare two position objects. A Position object is immutable.
Constructor Summary | |
Position(Measurement lat,
Measurement lon,
Measurement alt,
Measurement speed,
Measurement track)
Contructs a Position object with the given values. |
Method Summary | |
Measurement |
getAltitude()
Returns the altitude of this position in meters. |
Measurement |
getLatitude()
Returns the latitude of this position in radians. |
Measurement |
getLongitude()
Returns the longitude of this position in radians. |
Measurement |
getSpeed()
Returns the ground speed of this position in meters per second. |
Measurement |
getTrack()
Returns the track of this position in radians as a compass heading. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Position(Measurement lat, Measurement lon, Measurement alt, Measurement speed, Measurement track)
lat
- a Measurement object specifying the latitude in radians, or nulllon
- a Measurement object specifying the longitude in radians, or nullalt
- a Measurement object specifying the altitude in meters, or nullspeed
- a Measurement object specifying the speed in meters per second, or nulltrack
- a Measurement object specifying the track in radians, or nullMethod Detail |
public Measurement getAltitude()
public Measurement getLongitude()
public Measurement getLatitude()
public Measurement getSpeed()
public Measurement getTrack()
|
OSGi™ Service Platform Release 3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |