Class GetAggregateStatistics

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetAggregateStatistics

public class GetAggregateStatistics extends DAO
A Data Access Object to read aggregated Flight Report statistics.
Since:
6.2
Version:
12.4
Author:
Luke
  • Constructor Details

    • GetAggregateStatistics

      public GetAggregateStatistics(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • getSimStatistics

      public Collection<FlightStatsEntry> getSimStatistics(FlightStatsSort s, FlightStatsGroup grp) throws DAOException
      Retrieves aggregated approved Flight Report statistics.
      Parameters:
      s - the statistics sorting option
      grp - the statistics grouping option
      Returns:
      a Collection of FlightStatsEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • getAirportStatistics

      public Collection<FlightStatsEntry> getAirportStatistics(FlightStatsSort s, int apType) throws DAOException
      Retrieves aggregated approved Flight Report statistics.
      Parameters:
      s - the sorting option
      apType - the airport type, 1 for departure and 2 for arrival, 0 for all
      Returns:
      a Collection of FlightStatsEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • getOnlineStatistics

      public Collection<OnlineStatsEntry> getOnlineStatistics(FlightStatsSort srt, FlightStatsGroup grp) throws DAOException
      Returns online network flight statstics by date.
      Parameters:
      srt - the FlightStatsSort option
      grp - the FlightStatsGroup option
      Returns:
      a Collection of OnlineStatsEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • getPIREPStatistics

      public Collection<FlightStatsEntry> getPIREPStatistics(FlightStatsSort s, FlightStatsGroup grp) throws DAOException
      Retrieves aggregated Flight Report statistics.
      Parameters:
      s - the statistics sorting option
      grp - the statistics grouping option
      Returns:
      a Collection of FlightStatsEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • getRunwayLandingStats

      public List<RunwayLandingStats> getRunwayLandingStats(Airport a, String rw, String dbName) throws DAOException
      Loads aggregate landing score statistics from the database.
      Parameters:
      a - the Airport
      rw - the Runway name
      dbName - the database name
      Returns:
      a Collection of RunwayLandingStats beans
      Throws:
      DAOException - if a JDBC error occurs
    • getChalleningRunways

      public List<RunwayLandingStats> getChalleningRunways(int minLandings) throws DAOException
      Returns the most challenging Runways, with the lowest average landing score.
      Parameters:
      minLandings - the minimum number of landings
      Returns:
      a List of Tuples, with Airport and Runway name
      Throws:
      DAOException