Class ACARSMapEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSMapEntry
- All Implemented Interfaces:
Serializable, Comparable<Object>, GeoLocation, IDBean, MapEntry, MarkerMapEntry, Cacheable
- Direct Known Subclasses:
GroundMapEntry, RouteEntry
An abstract class to describe ACARS map entries.
- Since:
- 2.2
- Version:
- 7.2
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier 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.
-
Field Details
-
_pos
-
_usr
-
_clientBuild
protected int _clientBuild -
_betaBuild
protected int _betaBuild -
_busy
protected boolean _busy
-
-
Constructor Details
-
ACARSMapEntry
Creates the map entry.- Parameters:
loc- the entry location
-
-
Method Details
-
getLocation
-
getLatitude
public final double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public final double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-
getPilot
-
isBusy
public boolean isBusy()Returns whether the user is marked Busy.- Returns:
- TRUE if Busy, otherwise FALSE
-
getType
Returns the map entry type.- Returns:
- the EntryType
-
setClientBuild
public void setClientBuild(int buildNumber, int beta) Sets the ACARS client version used.- Parameters:
buildNumber- the client build numberbeta- the beta version number
-
setBusy
public void setBusy(boolean isBusy) Marks the user as Busy.- Parameters:
isBusy- TRUE if Busy, otherwise FALSE
-