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 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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: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>
-