Class RadioPosition
java.lang.Object
org.deltava.beans.servinfo.RadioPosition
- All Implemented Interfaces:
Serializable
,Comparable<RadioPosition>
,GeoLocation
,GeospaceLocation
public class RadioPosition
extends Object
implements Serializable, GeospaceLocation, Comparable<RadioPosition>
A bean to store VATSIM transceiver data.
- Since:
- 10.0
- Version:
- 10.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
Returns the altitude of the location above MSL.Returns the user's callsign.Returns the radio frequncy.double
Returns the latitude of this location.double
Returns the longitude of this location.int
int
hashCode()
void
setPosition
(double lat, double lng, int alt) Updates the transceiver location.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
RadioPosition
-
-
Method Details
-
getCallsign
-
getFrequency
-
getSequence
public int getSequence() -
getLatitude
public double getLatitude()Description copied from interface:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in interfaceGeoLocation
- Returns:
- the longitude in degrees
-
getAltitude
public int getAltitude()Description copied from interface:GeospaceLocation
Returns the altitude of the location above MSL.- Specified by:
getAltitude
in interfaceGeospaceLocation
- Returns:
- the altitude in feet
-
setPosition
public void setPosition(double lat, double lng, int alt) Updates the transceiver location.- Parameters:
lat
- the latitude in degreeslng
- the longitude in degreesalt
- the altitude in feet above MSL
-
hashCode
-
toString
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RadioPosition>
-