Class StageStatsEntry

All Implemented Interfaces:
Serializable

public class StageStatsEntry extends LegHoursDateStatsEntry<Integer>
A bean to store Equipment Stage statistics entries.
Since:
8.1
Version:
10.3
Author:
Luke
See Also:
  • Constructor Details

    • StageStatsEntry

      public StageStatsEntry(Instant dt)
      Creates the bean.
      Parameters:
      dt - the date/time
  • Method Details

    • getLegs

      public int getLegs(int stage)
      Returns the number of flight legs for a particular stage.
      Parameters:
      stage - the stage number
      Returns:
      the number of legs
    • getDistance

      public int getDistance(int stage)
      Returns the flight distance for a particular stage.
      Parameters:
      stage - the stage number
      Returns:
      the distance in miles
    • getHours

      public double getHours(int stage)
      Returns the number of flight hours for a particular stage.
      Parameters:
      stage - the stage number
      Returns:
      the number of hours
    • getMaxStage

      public int getMaxStage()
      Returns the maximum stage number in this bean.
      Returns:
      the highest stage
    • setStage

      public void setStage(int stage, int legs, int distance, double hours)
      Sets stage statistics.
      Parameters:
      stage - the stage number
      legs - the number of legs
      distance - the flight distance in miles
      hours - the number of hours