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 TypeMethodDescriptionint
compareTo
(ScheduleStatsEntry sse2) int
Returns the number of domestic arrival legs.int
Returns the number of domestic departure legs.int
getHour()
Returns the hour of the day.int
Returns the number of international arrival legs.int
Returns the number of international departure legs.void
setArrivalLegs
(int domestic, int intl) Updates the number of arrival flights.void
setDepartureLegs
(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:
compareTo
in interfaceComparable<ScheduleStatsEntry>
-