Class FlightStatsEntry
java.lang.Object
org.deltava.beans.stats.FlightStatsEntry
- All Implemented Interfaces:
Serializable
,Comparable<FlightStatsEntry>
A bean to store Flight statistics entries.
- Since:
- 1.0
- Version:
- 10.4
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlightStatsEntry
(String entryLabel, int legs, double hours, int miles) Creates a new statistics entry. -
Method Summary
Modifier and TypeMethodDescriptionint
Compares the entries by using the natural sort order of the labels.int
Returns the number of ACARS legs linked to this entry.double
Returns the percentage of flights logged using ACARS.double
Returns the average distance for this entry.double
Returns the average number of flight hours per leg for this entry.int
Returns the number of Dispatch legs linked to this entry.int
Returns the distance linked to this entry.getHexID()
int
Returns the number of Historic legs linked to this entry.double
getHours()
Returns the number of flight hours linked to this entry.getLabel()
Returns the entry label.int
getLegs()
Returns the number of legs linked to this entry.double
Returns the average load factor linked to this entry.int
Returns the number of Online legs linked to this entry.int
getPax()
Returns the number of passengers linked to this entry.int
Returns the number of distinct Pilots flying legs in this period.int
Returns the number of SimBrief legs linked to this entry.Returns the simulators used in this stats period.int
Returns the number of Flight Tour legs linked to this entry.Returns the Map displaying flight legs by Flight Simulator verison.int
hashCode()
void
setACARSLegs
(int legs) Updates the number of ACARS legs linked to this entry.void
setDispatchLegs
(int legs) Updates the number of Dispatch legs linked to this entry.void
setFSVersionLegs
(Simulator s, int legs) Sets the legs for a specific Simulator version.void
setHistoricLegs
(int legs) Updates the number of Historic legs linked to this entry.void
setLoadFactor
(double lf) Updates the average load factor linked to this entry.void
setOnlineLegs
(int legs) Updates the number of online legs linked to this entry.void
setPax
(int pax) Updates the number of passengers linked to this entry.void
setPilotIDs
(int ids) Updates the number of Pilots flying legs during this period.void
setSimBriefLegs
(int legs) Updates the number of SimBrief legs linked to this entry.void
setTourLegs
(int legs) Updates the number of Flight Tour legs linked to this entry.toString()
-
Constructor Details
-
FlightStatsEntry
Creates a new statistics entry.- Parameters:
entryLabel
- the entry label, which can be a Date, Number or Stringlegs
- the number of legs for this entryhours
- the number of hours for this entry multiplied by 10miles
- the number of miles for this entry
-
-
Method Details
-
getLabel
-
getLegs
public int getLegs()Returns the number of legs linked to this entry.- Returns:
- the number of legs
-
getACARSLegs
public int getACARSLegs()Returns the number of ACARS legs linked to this entry.- Returns:
- the number of legs using ACARS
- See Also:
-
getDispatchLegs
public int getDispatchLegs()Returns the number of Dispatch legs linked to this entry.- Returns:
- the number of legs using ACARS Dispatch
- See Also:
-
getSimBriefLegs
public int getSimBriefLegs()Returns the number of SimBrief legs linked to this entry.- Returns:
- the number of legs plotted using SimBrief
- See Also:
-
getTourLegs
public int getTourLegs()Returns the number of Flight Tour legs linked to this entry.- Returns:
- the number of Flight Tour legs
- See Also:
-
getHistoricLegs
public int getHistoricLegs()Returns the number of Historic legs linked to this entry.- Returns:
- the number of legs using historic equipment
- See Also:
-
getPilotIDs
public int getPilotIDs()Returns the number of distinct Pilots flying legs in this period.- Returns:
- the number of pilots flying legs
- See Also:
-
getOnlineLegs
public int getOnlineLegs()Returns the number of Online legs linked to this entry.- Returns:
- the number of legs flown online
-
getHours
public double getHours()Returns the number of flight hours linked to this entry.- Returns:
- the number of hours
- See Also:
-
getDistance
public int getDistance()Returns the distance linked to this entry.- Returns:
- the distance in statute miles
- See Also:
-
getPax
public int getPax()Returns the number of passengers linked to this entry.- Returns:
- the number of passengers
-
getLoadFactor
public double getLoadFactor()Returns the average load factor linked to this entry.- Returns:
- the average load factor
-
getAvgHours
public double getAvgHours()Returns the average number of flight hours per leg for this entry.- Returns:
- the average hours per leg
- See Also:
-
getAvgDistance
public double getAvgDistance()Returns the average distance for this entry.- Returns:
- the average distance in statute miles per leg
- See Also:
-
getACARSPercent
public double getACARSPercent()Returns the percentage of flights logged using ACARS.- Returns:
- the percentage of ACARS flights
- See Also:
-
getVersionLegs
-
getSimulators
Returns the simulators used in this stats period.- Returns:
- a Collection of Simulators
-
setFSVersionLegs
Sets the legs for a specific Simulator version.- Parameters:
s
- the Simulator valuelegs
- the number of legs
-
setACARSLegs
public void setACARSLegs(int legs) Updates the number of ACARS legs linked to this entry.- Parameters:
legs
- the number of legs logged using ACARS- See Also:
-
setDispatchLegs
public void setDispatchLegs(int legs) Updates the number of Dispatch legs linked to this entry.- Parameters:
legs
- the number of legs logged using ACARS Dispatch- See Also:
-
setSimBriefLegs
public void setSimBriefLegs(int legs) Updates the number of SimBrief legs linked to this entry.- Parameters:
legs
- the number of legs planned using SimBrief- See Also:
-
setTourLegs
public void setTourLegs(int legs) Updates the number of Flight Tour legs linked to this entry.- Parameters:
legs
- the number of Tour legs- See Also:
-
setHistoricLegs
public void setHistoricLegs(int legs) Updates the number of Historic legs linked to this entry.- Parameters:
legs
- the number of legs flown using Historic equipment- See Also:
-
setOnlineLegs
public void setOnlineLegs(int legs) Updates the number of online legs linked to this entry.- Parameters:
legs
- the number of legs flown on an OnlineNetwork- See Also:
-
setPilotIDs
public void setPilotIDs(int ids) Updates the number of Pilots flying legs during this period.- Parameters:
ids
- the number of pilots- See Also:
-
setPax
public void setPax(int pax) Updates the number of passengers linked to this entry.- Parameters:
pax
- the number of passeengers- See Also:
-
setLoadFactor
public void setLoadFactor(double lf) Updates the average load factor linked to this entry.- Parameters:
lf
- the average load factor- See Also:
-
getHexID
-
toString
-
hashCode
-
compareTo
Compares the entries by using the natural sort order of the labels.- Specified by:
compareTo
in interfaceComparable<FlightStatsEntry>
- See Also:
-