Class OnTimeStatsEntry

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RouteOnTime

public class OnTimeStatsEntry extends LegHoursDateStatsEntry<OnTime>
A bean to provide on-time statistics by date.
Since:
10.3
Version:
10.3
Author:
Luke
See Also:
  • Constructor Details

    • OnTimeStatsEntry

      public OnTimeStatsEntry(Instant dt)
      Creates the bean.
      Parameters:
      dt - the date
  • Method Details

    • getTotalLegs

      public int getTotalLegs()
      Returns the total number of flight legs during this period.
      Returns:
      the number of legs
    • getOnTimeLegs

      public int getOnTimeLegs()
      Returns the total number of on-time flight legs during this period.
      Returns:
      the number of legs
    • set

      public void set(OnTime ot, int legs, int distance, double hours)
      Adds a statistics entry.
      Overrides:
      set in class LegHoursStatsEntry<OnTime>
      Parameters:
      ot - the OnTime entry
      legs - the number of legs
      distance - the flight distance in miles
      hours - the number of hours