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 GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in miles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintReturns the altitude of the location above MSL.Returns the user's callsign.Returns the radio frequncy.doubleReturns the latitude of this location.doubleReturns the longitude of this location.intinthashCode()voidsetPosition(double lat, double lng, int alt) Updates the transceiver location.toString()Methods inherited from interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.
-
Constructor Details
-
RadioPosition
-
-
Method Details
-
getCallsign
-
getFrequency
-
getSequence
public int getSequence() -
getLatitude
public double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-
getAltitude
public int getAltitude()Description copied from interface:GeospaceLocationReturns the altitude of the location above MSL.- Specified by:
getAltitudein 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:
compareToin interfaceComparable<RadioPosition>
-