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.TypeNested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl -
Field Summary
Fields inherited from class org.deltava.beans.servinfo.ConnectedUser
_positionFields 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 TypeMethodDescriptionvoidAdds a point to the collection of waypoints.voidAdds multiple waypoints to the collection of waypoints.Returns the arrival Airport.Returns the departure Airport.intReturns the altitude of the location above MSL.Returns the User's Flight Plan comments.Returns the User's equipment code.intReturns the User's ground speed.intReturns 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 RatingReturns the Controller's rating.getRoute()Returns the Pilot's filed route.final NetworkUser.TypegetType()Returns the user type.Returns the flight waypoints.booleanReturns if this Pilot should be highlighted.booleanReturns whether both airports are populated.booleanReturns if the waypoint collection has been populated.voidsetAirportA(Airport aa) Updates the destination Airport.voidsetAirportD(Airport ad) Updates the origin Airport.voidsetAltitude(int alt) Updates the Pilot's altitude.voidsetComments(String comments) Updates the Pilot's flight plan comments.voidsetEquipmentCode(String eqCode) Updates the Pilot's equipment code.voidsetGroundSpeed(int gSpeed) Updates the Pilot's ground speed.voidsetHeading(int hdg) Updates the Pilot's heading.voidsetHighlighted(boolean isHighlighted) Marks this online Pilot as highlighted.final voidSets the Users's rating.voidUpdates the Pilot's filed waypoints.Methods inherited from class org.deltava.beans.servinfo.ConnectedUser
getCallsign, getLatitude, getLoginTime, getLongitude, getPosition, getServer, hasLocation, setCallsign, setLoginTime, setPosition, setServerMethods inherited from class org.deltava.beans.servinfo.NetworkUser
compareTo, equals, getFirstName, getID, getLastName, getName, getNetwork, getPilotID, getRowClassName, hashCode, setFirstName, setLastName, setName, setPilotID, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo, getLatitude, getLongitudeMethods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, matches, midPoint
-
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:RoutePairReturns the arrival Airport.- Specified by:
getAirportAin interfaceRoutePair- Returns:
- the arrival Airport
-
getAirportD
Description copied from interface:RoutePairReturns the departure Airport.- Specified by:
getAirportDin interfaceRoutePair- Returns:
- the departure Airport
-
getAltitude
public int getAltitude()Description copied from interface:GeospaceLocationReturns the altitude of the location above MSL.- Specified by:
getAltitudein interfaceGeospaceLocation- Returns:
- the altitude in feet
-
isPopulated
public boolean isPopulated()Description copied from interface:RoutePairReturns whether both airports are populated.- Specified by:
isPopulatedin 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:NetworkUserReturns the user type.- Specified by:
getTypein classNetworkUser- Returns:
- the Type
-
getRating
Description copied from class:NetworkUserReturns the Controller's rating.- Overrides:
getRatingin 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:NetworkUserSets the Users's rating.- Overrides:
setRatingin classNetworkUser- Parameters:
r- the Rating- See Also:
-
getWaypoints
Returns the flight waypoints.- Returns:
- a List of GeoLocations
-
getIconColor
Description copied from interface:MarkerMapEntryReturns the icon color for this entry if displayed in a Google Map.- Specified by:
getIconColorin interfaceMarkerMapEntry- Returns:
- the icon color
-
getInfoBox
Description copied from interface:MapEntryReturns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBoxin interfaceMapEntry- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-