public class GpsPosition extends Position
| Constructor and Description |
|---|
GpsPosition() |
GpsPosition(double lat,
double lon,
double alt) |
GpsPosition(Position input) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
static GpsPosition |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static GpsPosition |
fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
double |
getAltitude()
Returns the altitude
|
double |
getLatitude()
Returns the latitude
|
double |
getLongitude()
Returns the longitude
|
void |
setAltitude(double input)
Sets the altitude
|
void |
setLatitude(double input)
Sets the latitude
|
void |
setLongitude(double input)
Sets the longitude
|
String |
toString()
Converts the position into a string
|
public GpsPosition()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic GpsPosition(double lat,
double lon,
double alt)
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic GpsPosition(Position input) throws GamsDeadObjectException
GamsDeadObjectExceptionpublic String toString()
public double getLatitude()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic double getLongitude()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic double getAltitude()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic void setLatitude(double input)
throws GamsDeadObjectException
input - the new latitudeGamsDeadObjectExceptionpublic void setLongitude(double input)
throws GamsDeadObjectException
input - the new longitudeGamsDeadObjectExceptionpublic void setAltitude(double input)
throws GamsDeadObjectException
input - the new altitudeGamsDeadObjectExceptionpublic static GpsPosition fromPointer(long cptr) throws GamsDeadObjectException
cptr - C pointer to the objectGamsDeadObjectExceptionpublic static GpsPosition fromPointer(long cptr, boolean shouldManage) throws GamsDeadObjectException
cptr - C pointer to the objectshouldManage - if true, manage the pointerGamsDeadObjectExceptionpublic void free()
throws GamsDeadObjectException
free in class PositionGamsDeadObjectExceptionCopyright © 2018. All rights reserved.