Class ScheduleStatsEntry

java.lang.Object
org.deltava.beans.schedule.ScheduleStatsEntry
All Implemented Interfaces:
Comparable<ScheduleStatsEntry>

public class ScheduleStatsEntry extends Object implements Comparable<ScheduleStatsEntry>
A bean storing Flight Schedule departure/arrival statistcs.
Since:
8.6
Version:
8.6
Author:
Luke
  • Constructor Details

    • ScheduleStatsEntry

      public ScheduleStatsEntry(int hour)
      Creates the bean
      Parameters:
      hour - the hour of day
  • Method Details

    • getHour

      public int getHour()
      Returns the hour of the day.
      Returns:
      the hour of day
    • getDomesticDepartureLegs

      public int getDomesticDepartureLegs()
      Returns the number of domestic departure legs.
      Returns:
      the number of legs
    • getInternationalDepartureLegs

      public int getInternationalDepartureLegs()
      Returns the number of international departure legs.
      Returns:
      the number of legs
    • getDomesticArrivalLegs

      public int getDomesticArrivalLegs()
      Returns the number of domestic arrival legs.
      Returns:
      the number of legs
    • getInternationalArrivalLegs

      public int getInternationalArrivalLegs()
      Returns the number of international arrival legs.
      Returns:
      the number of legs
    • setDepartureLegs

      public void setDepartureLegs(int domestic, int intl)
      Updates the number of departure flights.
      Parameters:
      domestic - the number of domestic legs
      intl - the number of international legs
    • setArrivalLegs

      public void setArrivalLegs(int domestic, int intl)
      Updates the number of arrival flights.
      Parameters:
      domestic - the number of domestic legs
      intl - the number of international legs
    • compareTo

      public int compareTo(ScheduleStatsEntry sse2)
      Specified by:
      compareTo in interface Comparable<ScheduleStatsEntry>