Class OnlineStatsEntry
- All Implemented Interfaces:
Serializable
A bean to store online flight statistics entries.
- Since:
- 10.2
- Version:
- 10.3
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Returns the statistics label.int
Returns the total number of miles flown across all networks during this period.double
Returns the total number of flight hours flown across all networks during this period.int
Returns the total number of flight legs flown across all networks during this period.int
Returns the total number of legs flown during this period.int
hashCode()
void
setNetwork
(OnlineNetwork net, int legs, int distance, double hours) Sets online network statistics.void
setTotalLegs
(int legs) Updates the total number of legs flown during this period.Methods inherited from class org.deltava.beans.stats.LegHoursStatsEntry
getDistance, getHours, getKeys, getLegs, getMaxKey, inc, set
-
Constructor Details
-
OnlineStatsEntry
-
-
Method Details
-
getOnlineLegs
public int getOnlineLegs()Returns the total number of flight legs flown across all networks during this period.- Returns:
- the number of legs
-
getOnlineHours
public double getOnlineHours()Returns the total number of flight hours flown across all networks during this period.- Returns:
- the number of hours
-
getOnlineDistance
public int getOnlineDistance()Returns the total number of miles flown across all networks during this period.- Returns:
- the number of miles
-
getTotalLegs
public int getTotalLegs()Returns the total number of legs flown during this period.- Returns:
- the number of legs
-
getLabel
-
setNetwork
Sets online network statistics.- Parameters:
net
- the OnlineNetworklegs
- the number of legsdistance
- the flight distance in mileshours
- the number of hours
-
setTotalLegs
public void setTotalLegs(int legs) Updates the total number of legs flown during this period.- Parameters:
legs
- the number of legs
-
hashCode
-