Class GroundMapEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSMapEntry
org.deltava.beans.acars.GroundMapEntry
- All Implemented Interfaces:
Serializable, Comparable<Object>, GeoLocation, IDBean, MapEntry, MarkerMapEntry, Cacheable
- Direct Known Subclasses:
ATCMapEntry, DispatchMapEntry
An ACARS Map Entry bean for ground connections.
- Since:
- 4.0
- Version:
- 4.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ACARSMapEntry
ACARSMapEntry.EntryType -
Field Summary
Fields inherited from class ACARSMapEntry
_betaBuild, _busy, _clientBuild, _pos, _usrModifier and TypeFieldDescriptionprotected intprotected booleanprotected intprotected GeoLocationprotected PilotFields 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.Fields inherited from interface MapEntry
BLUE, BROWN, COLORS, GREEN, GREY, ORANGE, PURPLE, RED, WHITE, YELLOWModifier and TypeFieldDescriptionstatic final StringBlue Google Maps icon, displayed as $static/img/maps/point_blue.pngstatic final StringBrown Google Maps icon, displayed as $static/img/maps/point_brown.pngstatic final String[]All Google Maps icon colors.static final StringGreen Google Maps icon, displayed as $static/img/maps/point_green.pngstatic final StringGrey Google Maps icon, displayed as $static/img/maps/point_grey.pngstatic final StringOrange Google Maps icon, displayed as $static/img/maps/point_orange.pngstatic final StringPurple Google Maps icon, displayed as $static/img/maps/point_purple.pngstatic final StringRed Google Maps icon, displayed as $static/img/maps/point_red.pngstatic final StringWhite Google Maps icon, displayed as $static/img/maps/point_white.pngstatic final StringYellow Google Maps icon, displayed as $static/img/maps/point_yellow.png -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGroundMapEntry(Pilot usr, GeoLocation loc) Creates the bean. -
Method Summary
Methods inherited from class ACARSMapEntry
getLatitude, getLocation, getLongitude, getPilot, getType, isBusy, setBusy, setClientBuildModifier and TypeMethodDescriptionfinal doubleReturns the latitude of this location.Returns the entry's position.final doubleReturns the longitude of this location.getPilot()Returns the Pilot.abstract ACARSMapEntry.EntryTypegetType()Returns the map entry type.booleanisBusy()Returns whether the user is marked Busy.voidsetBusy(boolean isBusy) Marks the user as Busy.voidsetClientBuild(int buildNumber, int beta) Sets the ACARS client version used.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.Methods inherited from interface MapEntry
getInfoBoxModifier and TypeMethodDescriptionReturns the text to display in this marker's infobox if displayed in a Google Map.Methods inherited from interface MarkerMapEntry
getIconColorModifier and TypeMethodDescriptionReturns the icon color for this entry if displayed in a Google Map.
-
Constructor Details
-
GroundMapEntry
Creates the bean.- Parameters:
usr- the connected Pilotloc- the location
-
-
Method Details
-
getRange
public int getRange()Returns the service range.- Returns:
- the range in miles
-
setRange
public void setRange(int range) Updates the service range.- Parameters:
range- the range radius in miles
-