Class OnlineStatsEntry

All Implemented Interfaces:
Serializable

public class OnlineStatsEntry extends LegHoursStatsEntry<OnlineNetwork>
A bean to store online flight statistics entries.
Since:
10.2
Version:
10.3
Author:
Luke
See Also:
  • Constructor Details

    • OnlineStatsEntry

      public OnlineStatsEntry(String label)
      Creates the bean.
      Parameters:
      label - the date/time
  • 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

      public String getLabel()
      Returns the statistics label.
      Returns:
      the label
    • setNetwork

      public void setNetwork(OnlineNetwork net, int legs, int distance, double hours)
      Sets online network statistics.
      Parameters:
      net - the OnlineNetwork
      legs - the number of legs
      distance - the flight distance in miles
      hours - 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

      public int hashCode()
      Overrides:
      hashCode in class Object