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 int
protected boolean
protected int
protected GeoLocation
protected Pilot
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 TypeMethodDescriptionfinal double
Returns the latitude of this location.Returns the entry's position.final double
Returns the longitude of this location.getPilot()
Returns the Pilot.abstract ACARSMapEntry.EntryType
getType()
Returns the map entry type.boolean
isBusy()
Returns whether the user is marked Busy.void
setBusy
(boolean isBusy) Marks the user as Busy.void
setClientBuild
(int buildNumber, int beta) Sets the ACARS client version used.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
Methods inherited from interface org.deltava.beans.MapEntry
getInfoBox
Methods inherited from interface org.deltava.beans.MarkerMapEntry
getIconColor
-
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:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public final double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in 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
-