taxisrus.implementation.CabConsole
Class GPS
java.lang.Object
|
+--taxisrus.implementation.CabConsole.GPS
- public class GPS
- extends Object
- Author:
- The Masters
The GPS simulation to generate coordinates
|
Constructor Summary |
GPS()
Generates a new GPS with default x,y limits |
GPS(float valX,
float valY)
Generates a new GPS with x,y coordinates |
|
Method Summary |
float |
getGPSX()
Generates a float representing the current GPS longitude location |
float |
getGPSY()
Generates float integer representing the current GPS latitude location |
float |
getRandomGPSX(float start,
float end)
Generates a random float representing the current GPS latitude location |
float |
getRandomGPSY(float start,
float end)
Generates an random float representing the current GPS longitude location |
static float |
GPStoDecimal(float degree,
float minute,
float second)
Generates standard GPS coords into a decimal form |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPS
public GPS(float valX,
float valY)
- Generates a new GPS with x,y coordinates
GPS
public GPS()
- Generates a new GPS with default x,y limits
GPStoDecimal
public static float GPStoDecimal(float degree,
float minute,
float second)
- Generates standard GPS coords into a decimal form
getGPSX
public float getGPSX()
- Generates a float representing the current GPS longitude location
getGPSY
public float getGPSY()
- Generates float integer representing the current GPS latitude location
getRandomGPSX
public float getRandomGPSX(float start,
float end)
- Generates a random float representing the current GPS latitude location
getRandomGPSY
public float getRandomGPSY(float start,
float end)
- Generates an random float representing the current GPS longitude location
API documentation for build 958