|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dinopolis.gpstool.gpsinput.GPSPosition
Holds information about a position (latitude/longitude/altitude).
Constructor Summary | |
GPSPosition()
Default Constructor |
|
GPSPosition(double latitude,
double longitude)
Constructing a GPSPosition. |
|
GPSPosition(double latitude,
double longitude,
double altitude)
Constructing a GPSPosition. |
|
GPSPosition(double latitude,
double longitude,
double altitude,
java.lang.String name)
Constructing a GPSPosition. |
|
GPSPosition(double latitude_wgs84,
java.lang.String north_south,
double longitude_wgs84,
java.lang.String east_west)
Constructing a GPSPosition. |
|
GPSPosition(double latitude_wgs84,
java.lang.String north_south,
double longitude_wgs84,
java.lang.String east_west,
double altitude)
Constructing a GPSPosition. |
|
GPSPosition(double latitude_wgs84,
java.lang.String north_south,
double longitude_wgs84,
java.lang.String east_west,
double altitude,
java.lang.String name)
Constructing a GPSPosition. |
|
GPSPosition(double latitude_wgs84,
java.lang.String north_south,
double longitude_wgs84,
java.lang.String east_west,
java.lang.String name)
Constructing a GPSPosition. |
|
GPSPosition(GPSPosition gpsposition)
Copy Constructor |
Method Summary | |
boolean |
equals(java.lang.Object pos)
|
double |
getAltitude()
Returns the altitude of the gps position or Double.NaN if
the altitude is unknown (not set). |
double |
getLatitude()
Returns the latitude of the gps position. |
double |
getLongitude()
Returns the longitude of the gps position. |
void |
setAltitude(double altitude)
Sets the altitude of the gps position. |
void |
setLatitude(double latitude)
Sets the latitude of the gps position. |
void |
setLongitude(double longitude)
Sets the longitude of the gps position. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GPSPosition()
public GPSPosition(double latitude_wgs84, java.lang.String north_south, double longitude_wgs84, java.lang.String east_west) throws java.lang.IllegalArgumentException
latitude_wgs84
- the latitude in wgs84 format (degree).north_south
- longitude_wgs84
- the longitude in wgs84 format (degree).east_west
-
java.lang.IllegalArgumentException
- if north_south or east_west are
neither "N","S" resp. "E", "W" or the latitude/longitude are
incorrect.public GPSPosition(double latitude_wgs84, java.lang.String north_south, double longitude_wgs84, java.lang.String east_west, double altitude) throws java.lang.IllegalArgumentException
latitude_wgs84
- the latitude in wgs84 format (degree).north_south
- longitude_wgs84
- the longitude in wgs84 format (degree).east_west
- altitude
-
java.lang.IllegalArgumentException
- if north_south or east_west are
neither "N","S" resp. "E", "W" or the latitude/longitude are
incorrect.public GPSPosition(double latitude_wgs84, java.lang.String north_south, double longitude_wgs84, java.lang.String east_west, java.lang.String name) throws java.lang.IllegalArgumentException
latitude_wgs84
- the latitude in wgs84 format (degree).north_south
- longitude_wgs84
- the longitude in wgs84 format (degree).east_west
- name
- the name of the position
java.lang.IllegalArgumentException
- if north_south or east_west are
neither "N","S" resp. "E", "W" or the latitude/longitude are
incorrect.public GPSPosition(double latitude_wgs84, java.lang.String north_south, double longitude_wgs84, java.lang.String east_west, double altitude, java.lang.String name) throws java.lang.IllegalArgumentException
latitude_wgs84
- the latitude in wgs84 format (degree).north_south
- longitude_wgs84
- the longitude in wgs84 format (degree).east_west
- altitude
- name
- the name of the position
java.lang.IllegalArgumentException
- if north_south or east_west are
neither "N","S" resp. "E", "W" or the latitude/longitude are
incorrect.public GPSPosition(double latitude, double longitude)
latitude
- the latitude (pos for north, negativ for south)longitude
- the longitude (pos for east, negativ for west).public GPSPosition(double latitude, double longitude, double altitude)
latitude
- the latitude (pos for north, negativ for south)longitude
- the longitude (pos for east, negativ for west).altitude
- public GPSPosition(double latitude, double longitude, double altitude, java.lang.String name)
latitude
- the latitude (pos for north, negativ for south)longitude
- the longitude (pos for east, negativ for west).altitude
- public GPSPosition(GPSPosition gpsposition)
gpsposition
- Method Detail |
public double getLongitude()
public void setLongitude(double longitude)
longitude
- the longitude of the gps position.public double getLatitude()
public void setLatitude(double latitude)
latitude
- the latitude of the gps position.public double getAltitude()
Double.NaN
if
the altitude is unknown (not set).
Double.NaN
if
the altitude is unknown (not set).public void setAltitude(double altitude)
altitude
- the altitude of the gps position.public java.lang.String toString()
public boolean equals(java.lang.Object pos)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |