Class FlightStatsEntry

java.lang.Object
org.deltava.beans.stats.FlightStatsEntry
All Implemented Interfaces:
Serializable, Comparable<FlightStatsEntry>

public class FlightStatsEntry extends Object implements Serializable, Comparable<FlightStatsEntry>
A bean to store Flight statistics entries.
Since:
1.0
Version:
10.4
Author:
Luke
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlightStatsEntry(String entryLabel, int legs, double hours, int miles)
    Creates a new statistics entry.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.
     
    int
    Returns the number of Historic legs linked to this entry.
    double
    Returns the number of flight hours linked to this entry.
    Returns the entry label.
    int
    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
    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
     
    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
    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.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FlightStatsEntry

      public FlightStatsEntry(String entryLabel, int legs, double hours, int miles)
      Creates a new statistics entry.
      Parameters:
      entryLabel - the entry label, which can be a Date, Number or String
      legs - the number of legs for this entry
      hours - the number of hours for this entry multiplied by 10
      miles - the number of miles for this entry
  • Method Details

    • getLabel

      public String getLabel()
      Returns the entry label.
      Returns:
      the label
    • 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

      public Map<String,Integer> getVersionLegs()
      Returns the Map displaying flight legs by Flight Simulator verison.
      Returns:
      a Map of legs, keyed by version
    • getSimulators

      public Collection<Simulator> getSimulators()
      Returns the simulators used in this stats period.
      Returns:
      a Collection of Simulators
    • setFSVersionLegs

      public void setFSVersionLegs(Simulator s, int legs)
      Sets the legs for a specific Simulator version.
      Parameters:
      s - the Simulator value
      legs - 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

      public String getHexID()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(FlightStatsEntry e2)
      Compares the entries by using the natural sort order of the labels.
      Specified by:
      compareTo in interface Comparable<FlightStatsEntry>
      See Also: