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 TypeMethodDescriptionint
Returns the number of ACARS dispatch routes available between these airports.int
Returns 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.void
setDispatchRoutes
(int routes) Updates the number of ACARS dispatch routes available between these airports.void
setFlightCount
(int cnt) Updates the number of times the route has been flown.void
Updates 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, toString
Methods 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, setLeg
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, getHexID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.schedule.FlightTimes
hasFlightTimes
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getFlightType, includes, isPopulated, matches
-
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:
getRowClassName
in interfaceViewEntry
- Overrides:
getRowClassName
in classScheduleEntry
- Returns:
- the CSS class name
-