org.deltava.beans.acars
Class ACARSMapEntry

java.lang.Object
  extended by org.deltava.beans.DatabaseBean
      extended by org.deltava.beans.acars.ACARSMapEntry
All Implemented Interfaces:
Serializable, Comparable<Object>, GeoLocation, MapEntry, MarkerMapEntry, Cacheable
Direct Known Subclasses:
DispatchMapEntry, RouteEntry

public abstract class ACARSMapEntry
extends DatabaseBean
implements MarkerMapEntry

An abstract class to describe ACARS Pilot/Dispatcher map entries.

Since:
2.2
Version:
2.8
Author:
Luke
See Also:
Serialized Form

Field Summary
protected  int _betaBuild
           
protected  boolean _busy
           
protected  int _clientBuild
           
protected  GeoLocation _pos
           
protected  Pilot _usr
           
 
Fields inherited from interface org.deltava.beans.MapEntry
BLUE, BROWN, COLORS, GREEN, GREY, LINECOLORS, ORANGE, PURPLE, RED, WHITE, YELLOW
 
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE
 
Constructor Summary
protected ACARSMapEntry(GeoLocation loc)
          Creates the map entry.
 
Method Summary
 double getLatitude()
          Returns the latitude of this location.
 GeoLocation getLocation()
          Returns the entry's position.
 double getLongitude()
          Returns the longitude of this location.
 Pilot getPilot()
          Returns the Pilot.
 boolean isBusy()
          Returns whether the user is marked Busy.
abstract  boolean isDispatch()
          Returns whether this entry is a Dispatcher.
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deltava.beans.MarkerMapEntry
getIconColor
 
Methods inherited from interface org.deltava.beans.MapEntry
getInfoBox
 

Field Detail

_pos

protected GeoLocation _pos

_usr

protected Pilot _usr

_clientBuild

protected int _clientBuild

_betaBuild

protected int _betaBuild

_busy

protected boolean _busy
Constructor Detail

ACARSMapEntry

protected ACARSMapEntry(GeoLocation loc)
Creates the map entry.

Parameters:
loc - the entry location
Method Detail

getLocation

public GeoLocation getLocation()
Returns the entry's position.

Returns:
the position

getLatitude

public final double getLatitude()
Description copied from interface: GeoLocation
Returns the latitude of this location.

Specified by:
getLatitude in interface GeoLocation
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 interface GeoLocation
Returns:
the longitude in degrees

getPilot

public Pilot getPilot()
Returns the Pilot.

Returns:
the Pilot bean, or null if not populated

isBusy

public boolean isBusy()
Returns whether the user is marked Busy.

Returns:
TRUE if Busy, otherwise FALSE

isDispatch

public abstract boolean isDispatch()
Returns whether this entry is a Dispatcher.

Returns:
TRUE if a Dispatcher, otherwise FALSE

setClientBuild

public void setClientBuild(int buildNumber,
                           int beta)
Sets the ACARS client version used.

Parameters:
buildNumber - the client build number
beta - the beta version number

setBusy

public void setBusy(boolean isBusy)
Marks the user as Busy.

Parameters:
isBusy - TRUE if Busy, otherwise FALSE


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.