Class DisposalQueueStats

java.lang.Object
org.deltava.beans.stats.DisposalQueueStats
All Implemented Interfaces:
Serializable

public class DisposalQueueStats extends Object implements Serializable
A bean to store Flight Report disposal queue statistics.
Since:
5.0
Version:
10.1
Author:
Luke
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    DisposalQueueStats(Instant dt, int total, double avgAge)
    Creates the bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCount(String eqType, int cnt)
    Adds an equipment-specific pending flight report count.
    double
    Returns the average age of a non-held flight report, excluding the outliers.
    double
    Returns the average age of non-held flight reports.
    Returns equipment-specific pending flight report counts.
    Returns the effective date.
    double
    Returns the maximum age of a non-held flight report.
    double
    Returns the minimum age of a non-held flight report.
    int
    Returns the total number of pending Flight Reports.
    void
    setMinMax(double min, double max)
    Sets the minimum and maximum age of non-held flight reports.

    Methods inherited from class java.lang.Object

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

    • DisposalQueueStats

      public DisposalQueueStats(Instant dt, int total, double avgAge)
      Creates the bean.
      Parameters:
      dt - the effective date/time
      total - the total number of pending Flight Reports
      avgAge - the average pending time of non-held flight reports in hours
  • Method Details

    • getDate

      public Instant getDate()
      Returns the effective date.
      Returns:
      the effective date/time
    • getSize

      public int getSize()
      Returns the total number of pending Flight Reports.
      Returns:
      the number of flight reports
    • getAverageAge

      public double getAverageAge()
      Returns the average age of non-held flight reports.
      Returns:
      the average age in hours
    • getMaxAge

      public double getMaxAge()
      Returns the maximum age of a non-held flight report.
      Returns:
      the age in hours
    • getMinAge

      public double getMinAge()
      Returns the minimum age of a non-held flight report.
      Returns:
      the age in hours
    • getAdjustedAge

      public double getAdjustedAge()
      Returns the average age of a non-held flight report, excluding the outliers.
      Returns:
      the adjusted average age in hours, or zero if less than two flight reports
    • setMinMax

      public void setMinMax(double min, double max)
      Sets the minimum and maximum age of non-held flight reports.
      Parameters:
      min - the minimum age in hours
      max - the maximum age in hours
    • addCount

      public void addCount(String eqType, int cnt)
      Adds an equipment-specific pending flight report count.
      Parameters:
      eqType - the equipment type
      cnt - the number of pending flight reports
    • getCounts

      public Map<String,Integer> getCounts()
      Returns equipment-specific pending flight report counts.
      Returns:
      a Map of pending counts, keyed by equipment type