Class Pilot
java.lang.Object
org.deltava.beans.servinfo.NetworkUser
org.deltava.beans.servinfo.ConnectedUser
org.deltava.beans.servinfo.Pilot
- All Implemented Interfaces:
Serializable
,Comparable<NetworkUser>
,GeoLocation
,GeospaceLocation
,MapEntry
,MarkerMapEntry
,RoutePair
,ViewEntry
A bean to store online Pilot information.
- Since:
- 1.0
- Version:
- 10.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.deltava.beans.servinfo.NetworkUser
NetworkUser.Type
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Field Summary
Fields inherited from class org.deltava.beans.servinfo.ConnectedUser
_position
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 TypeMethodDescriptionvoid
Adds a point to the collection of waypoints.void
Adds multiple waypoints to the collection of waypoints.Returns the arrival Airport.Returns the departure Airport.int
Returns the altitude of the location above MSL.Returns the User's Flight Plan comments.Returns the User's equipment code.int
Returns the User's ground speed.int
Returns the Pilot's heading.Returns the icon color for this entry if displayed in a Google Map.Returns the text to display in this marker's infobox if displayed in a Google Map.final Rating
Returns the Controller's rating.getRoute()
Returns the Pilot's filed route.final NetworkUser.Type
getType()
Returns the user type.Returns the flight waypoints.boolean
Returns if this Pilot should be highlighted.boolean
Returns whether both airports are populated.boolean
Returns if the waypoint collection has been populated.void
setAirportA
(Airport aa) Updates the destination Airport.void
setAirportD
(Airport ad) Updates the origin Airport.void
setAltitude
(int alt) Updates the Pilot's altitude.void
setComments
(String comments) Updates the Pilot's flight plan comments.void
setEquipmentCode
(String eqCode) Updates the Pilot's equipment code.void
setGroundSpeed
(int gSpeed) Updates the Pilot's ground speed.void
setHeading
(int hdg) Updates the Pilot's heading.void
setHighlighted
(boolean isHighlighted) Marks this online Pilot as highlighted.final void
Sets the Users's rating.void
Updates the Pilot's filed waypoints.Methods inherited from class org.deltava.beans.servinfo.ConnectedUser
getCallsign, getLatitude, getLoginTime, getLongitude, getPosition, getServer, hasLocation, setCallsign, setLoginTime, setPosition, setServer
Methods inherited from class org.deltava.beans.servinfo.NetworkUser
compareTo, equals, getFirstName, getID, getLastName, getName, getNetwork, getPilotID, getRowClassName, hashCode, setFirstName, setLastName, setName, setPilotID, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo, getLatitude, getLongitude
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, matches
-
Constructor Details
-
Pilot
Initializes the bean with a given user ID.- Parameters:
id
- the user IDnet
- the OnlineNetwork
-
-
Method Details
-
getAirportA
Description copied from interface:RoutePair
Returns the arrival Airport.- Specified by:
getAirportA
in interfaceRoutePair
- Returns:
- the arrival Airport
-
getAirportD
Description copied from interface:RoutePair
Returns the departure Airport.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the departure Airport
-
getAltitude
public int getAltitude()Description copied from interface:GeospaceLocation
Returns the altitude of the location above MSL.- Specified by:
getAltitude
in interfaceGeospaceLocation
- Returns:
- the altitude in feet
-
isPopulated
public boolean isPopulated()Description copied from interface:RoutePair
Returns whether both airports are populated.- Specified by:
isPopulated
in interfaceRoutePair
- Returns:
- TRUE if both Airports are set, otherwise FALSE
-
getComments
Returns the User's Flight Plan comments.- Returns:
- the comments
- See Also:
-
getEquipmentCode
Returns the User's equipment code.- Returns:
- the equipment code
- See Also:
-
getGroundSpeed
public int getGroundSpeed()Returns the User's ground speed.- Returns:
- the ground speed in knots
- See Also:
-
getHeading
public int getHeading()Returns the Pilot's heading.- Returns:
- the heading in degrees
- See Also:
-
getType
Description copied from class:NetworkUser
Returns the user type.- Specified by:
getType
in classNetworkUser
- Returns:
- the Type
-
getRating
Description copied from class:NetworkUser
Returns the Controller's rating.- Overrides:
getRating
in classNetworkUser
- Returns:
- the Rating
- See Also:
-
getRoute
-
isRoutePopulated
public boolean isRoutePopulated()Returns if the waypoint collection has been populated.- Returns:
- TRUE if the waypoints have been loaded, otherwise FALSE
-
isHighlighted
public boolean isHighlighted()Returns if this Pilot should be highlighted.- Returns:
- TRUE if the Pilot is highlighted, otherwise FALSE
- See Also:
-
setAltitude
public void setAltitude(int alt) Updates the Pilot's altitude.- Parameters:
alt
- the altitude in feet above Mean Sea Level- See Also:
-
setAirportA
Updates the destination Airport.- Parameters:
aa
- the destination Airport- See Also:
-
setAirportD
Updates the origin Airport.- Parameters:
ad
- the origin Airport- See Also:
-
setComments
Updates the Pilot's flight plan comments.- Parameters:
comments
- the flight plan comments- See Also:
-
setEquipmentCode
Updates the Pilot's equipment code.- Parameters:
eqCode
- the equipment code- See Also:
-
setGroundSpeed
public void setGroundSpeed(int gSpeed) Updates the Pilot's ground speed.- Parameters:
gSpeed
- the ground speed in knots- See Also:
-
setHeading
public void setHeading(int hdg) Updates the Pilot's heading.- Parameters:
hdg
- the heading in degrees- See Also:
-
setRoute
Updates the Pilot's filed waypoints.- Parameters:
route
- a space-delimited string- Throws:
NullPointerException
- if route is null- See Also:
-
addWaypoints
Adds multiple waypoints to the collection of waypoints.- Parameters:
nds
- a Collection of NavigationDataBeans
-
setHighlighted
public void setHighlighted(boolean isHighlighted) Marks this online Pilot as highlighted.- Parameters:
isHighlighted
- TRUE if the Pilot is highlighted, otherwise FALSE- See Also:
-
setRating
Description copied from class:NetworkUser
Sets the Users's rating.- Overrides:
setRating
in classNetworkUser
- Parameters:
r
- the Rating- See Also:
-
getWaypoints
Returns the flight waypoints.- Returns:
- a List of GeoLocations
-
getIconColor
Description copied from interface:MarkerMapEntry
Returns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColor
in interfaceMarkerMapEntry
- Returns:
- the icon color
-
getInfoBox
Description copied from interface:MapEntry
Returns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBox
in interfaceMapEntry
- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-