Class DisposalQueueStats
java.lang.Object
org.deltava.beans.stats.DisposalQueueStats
- All Implemented Interfaces:
Serializable
A bean to store Flight Report disposal queue statistics.
- Since:
- 5.0
- Version:
- 10.1
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getDate()
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
getSize()
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.
-
Constructor Details
-
DisposalQueueStats
Creates the bean.- Parameters:
dt
- the effective date/timetotal
- the total number of pending Flight ReportsavgAge
- the average pending time of non-held flight reports in hours
-
-
Method Details
-
getDate
-
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 hoursmax
- the maximum age in hours
-
addCount
Adds an equipment-specific pending flight report count.- Parameters:
eqType
- the equipment typecnt
- the number of pending flight reports
-
getCounts
-