Class ScheduleStatsEntry
java.lang.Object
org.deltava.beans.schedule.ScheduleStatsEntry
- All Implemented Interfaces:
Comparable<ScheduleStatsEntry>
A bean storing Flight Schedule departure/arrival statistcs.
- Since:
- 8.6
- Version:
- 8.6
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ScheduleStatsEntry sse2) intReturns the number of domestic arrival legs.intReturns the number of domestic departure legs.intgetHour()Returns the hour of the day.intReturns the number of international arrival legs.intReturns the number of international departure legs.voidsetArrivalLegs(int domestic, int intl) Updates the number of arrival flights.voidsetDepartureLegs(int domestic, int intl) Updates the number of departure flights.
-
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 legsintl- 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 legsintl- the number of international legs
-
compareTo
- Specified by:
compareToin interfaceComparable<ScheduleStatsEntry>
-