Class DispatchLogEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.DispatchLogEntry
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,RoutePair
,Cacheable
A bean to store ACARS Dispatch flight data log entries.
- Since:
- 9.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the arrival Airport.Returns the departure Airport.Returns the creation date of this dispatch log entry.Returns the cruise altitude.int
Returns the database ID of the Dispatcher who created this log entry.Returns the equipment type used in this flight data.int
Returns the database ID of the ACARS flight associated with this Dispatch entry.int
Returns the total fuel load for this dispatch entry.int
Returns the database ID of the Pilot who received this flight data.getRoute()
Returns the Route for this dispatch entry.getSID()
Returns the SID for this dispatch entry.Returns the simulator for this dispatch log entry.getSTAR()
Returns the STAR for this dispatch entry.void
Updates the arrival airport of this dipsatch entry.void
Updates the departure airport of this dipsatch entry.void
setCreatedOn
(Instant dt) Updates the creation date of this log entry.void
setCruiseAltitude
(String alt) Updates the cruise altitude for this dispatch log entry.void
setDispatcherID
(int id) void
setEquipmentType
(String eqType) Updates the equipment used in this dispatch log entry.void
setFlightID
(int id) void
setFuelLoad
(int fuel) Updates the fuel load for this dispatch entry.void
setPilotID
(int id) void
Updates the Route for this dispatch entry.void
Updates the SID for this dispatch entry.void
setSimulator
(Simulator sim) Updates the simulator for this dispatch log entry.void
Updates the STAR for this dispatch entry.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.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
Constructor Details
-
DispatchLogEntry
public DispatchLogEntry(int id) Creates the bean.- Parameters:
id
- the database ID
-
-
Method Details
-
getCreatedOn
Returns the creation date of this dispatch log entry.- Returns:
- the creation date/time
-
getFlightID
public int getFlightID()Returns the database ID of the ACARS flight associated with this Dispatch entry.- Returns:
- the database ID, or zero if none
-
getDispatcherID
public int getDispatcherID()Returns the database ID of the Dispatcher who created this log entry.- Returns:
- the Dispatcher's database ID
-
getPilotID
public int getPilotID()Returns the database ID of the Pilot who received this flight data.- Returns:
- the Pilot's database ID
-
getFuelLoad
public int getFuelLoad()Returns the total fuel load for this dispatch entry.- Returns:
- the total fuel load in pounds
-
getEquipmentType
Returns the equipment type used in this flight data.- Returns:
- the equipment type
-
getCruiseAltitude
-
getSimulator
Returns the simulator for this dispatch log entry.- Returns:
- the Simulator
-
getAirportD
Description copied from interface:RoutePair
Returns the departure Airport.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePair
Returns the arrival Airport.- Specified by:
getAirportA
in interfaceRoutePair
- Returns:
- the arrival Airport
-
getSID
Returns the SID for this dispatch entry.- Returns:
- the SID ID, or null if none
-
getSTAR
Returns the STAR for this dispatch entry.- Returns:
- the STAR ID, or null if none
-
getRoute
-
setCreatedOn
Updates the creation date of this log entry.- Parameters:
dt
- the creation date/time
-
setFlightID
public void setFlightID(int id) -
setDispatcherID
public void setDispatcherID(int id) -
setPilotID
public void setPilotID(int id) -
setSimulator
Updates the simulator for this dispatch log entry.- Parameters:
sim
- the Simulator
-
setAirportD
Updates the departure airport of this dipsatch entry.- Parameters:
a
- the Airport
-
setAirportA
Updates the arrival airport of this dipsatch entry.- Parameters:
a
- the Airport
-
setEquipmentType
Updates the equipment used in this dispatch log entry.- Parameters:
eqType
- the equipment type.
-
setCruiseAltitude
Updates the cruise altitude for this dispatch log entry.- Parameters:
alt
- the initial cruise altitude
-
setFuelLoad
public void setFuelLoad(int fuel) Updates the fuel load for this dispatch entry.- Parameters:
fuel
- the total fuel load in pounds
-
setSID
Updates the SID for this dispatch entry.- Parameters:
sid
- the SID ID
-
setSTAR
Updates the STAR for this dispatch entry.- Parameters:
star
- the STAR ID
-
setRoute
Updates the Route for this dispatch entry.- Parameters:
rt
- the route waypoints
-