Class ScheduleSearchEntry

All Implemented Interfaces:
Serializable, Comparable<Object>, FlightNumber, IDBean, FlightTimes, RoutePair, ViewEntry, Cacheable

public class ScheduleSearchEntry extends ScheduleEntry
A class to store Schedule Entry information with Dispatch route counts.
Since:
2.3
Version:
10.1
Author:
Luke
See Also:
  • Constructor Details

  • 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

      public Instant 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

      public void setLastFlownOn(Instant dt)
      Updates the last date the route was flown on.
      Parameters:
      dt - the date/time of the last flight
    • getRowClassName

      public String getRowClassName()
      Returns the row CSS class name if displayed in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Overrides:
      getRowClassName in class ScheduleEntry
      Returns:
      the CSS class name