Class OnTimeStatsEntry
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RouteOnTime
A bean to provide on-time statistics by date.
- Since:
- 10.3
- Version:
- 10.3
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the total number of on-time flight legs during this period.int
Returns the total number of flight legs during this period.void
Adds a statistics entry.Methods inherited from class org.deltava.beans.stats.LegHoursDateStatsEntry
getDate, hashCode
Methods inherited from class org.deltava.beans.stats.LegHoursStatsEntry
getDistance, getHours, getKeys, getLegs, getMaxKey, inc
-
Constructor Details
-
OnTimeStatsEntry
-
-
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
Adds a statistics entry.- Overrides:
set
in classLegHoursStatsEntry<OnTime>
- Parameters:
ot
- the OnTime entrylegs
- the number of legsdistance
- the flight distance in mileshours
- the number of hours
-