Class ScheduleSearchEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.Flight
org.deltava.beans.schedule.ScheduleEntry
org.deltava.beans.schedule.ScheduleSearchEntry
- All Implemented Interfaces:
Serializable,Comparable<Object>,FlightNumber,IDBean,FlightTimes,RoutePair,ViewEntry,Cacheable
A class to store Schedule Entry information with Dispatch route counts.
- Since:
- 2.3
- Version:
- 10.1
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl -
Field Summary
Fields inherited from class org.deltava.beans.schedule.ScheduleEntry
_arrivalPlusDays, EQ_VARIES -
Constructor Summary
ConstructorsConstructorDescriptionScheduleSearchEntry(Airline a, int number, int leg) Creates a new Schedule Entry object with a given flight. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of ACARS dispatch routes available between these airports.intReturns the number of times the route has been flown.Returns the last date the route was flown on.Returns the row CSS class name if displayed in a view table.voidsetDispatchRoutes(int routes) Updates the number of ACARS dispatch routes available between these airports.voidsetFlightCount(int cnt) Updates the number of times the route has been flown.voidUpdates the last date the route was flown on.Methods inherited from class org.deltava.beans.schedule.ScheduleEntry
adjustForDST, getAcademy, getArrivalPlusDays, getCodeShare, getDuration, getHasDSTAdjustment, getHistoric, getID, getLength, getRemarks, getSource, getTimeA, getTimeD, hashCode, isVariable, setAcademy, setCodeShare, setHistoric, setID, setLength, setRemarks, setSource, setTimeA, setTimeD, toStringMethods inherited from class org.deltava.beans.Flight
compareTo, equals, getAirline, getAirportA, getAirportD, getCallsign, getDistance, getEquipmentType, getFlightCode, getFlightNumber, getLeg, getLegCode, getShortCode, setAirline, setAirportA, setAirportD, setEquipmentType, setFlightNumber, setLegMethods inherited from class org.deltava.beans.DatabaseBean
cacheKey, getHexID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.schedule.FlightTimes
hasFlightTimesMethods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getFlightType, includes, isPopulated, matches, midPoint
-
Constructor Details
-
ScheduleSearchEntry
Creates a new Schedule Entry object with a given flight.- Parameters:
a- the Airlinenumber- the Flight Numberleg- the Leg Number- Throws:
NullPointerException- if the Airline Code is nullIllegalArgumentException- if the Flight Report is zero or negativeIllegalArgumentException- if the Leg is less than 1 or greater than 5- See Also:
-
-
Method Details
-
getDispatchRoutes
public int getDispatchRoutes()Returns the number of ACARS dispatch routes available between these airports.- Returns:
- the number of routes
-
getFlightCount
public int getFlightCount()Returns the number of times the route has been flown.- Returns:
- the number of flights
-
getLastFlownOn
Returns the last date the route was flown on.- Returns:
- the date/time of the last flight
-
setDispatchRoutes
public void setDispatchRoutes(int routes) Updates the number of ACARS dispatch routes available between these airports.- Parameters:
routes- the number of routes
-
setFlightCount
public void setFlightCount(int cnt) Updates the number of times the route has been flown.- Parameters:
cnt- the number of flights
-
setLastFlownOn
Updates the last date the route was flown on.- Parameters:
dt- the date/time of the last flight
-
getRowClassName
Returns the row CSS class name if displayed in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Overrides:
getRowClassNamein classScheduleEntry- Returns:
- the CSS class name
-