Package b4j.report

Class ManagementTrackingReport.WeekStats

java.lang.Object
b4j.report.ManagementTrackingReport.WeekStats
Enclosing class:
ManagementTrackingReport

protected class ManagementTrackingReport.WeekStats
extends java.lang.Object
Object for collecting statistics based on a week. The class collects also data based on severities.
Author:
Ralph Schuster
  • Constructor Summary

    Constructors 
    Constructor Description
    WeekStats​(int week)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    long getAverageFixTime()
    Returns the average fix time for bugs of this week.
    int getClosedCount()
    Returns the number of closed bugs from this week.
    int getOpenCount()
    Returns the number of bugs still open from this week.
    java.util.Map<java.lang.String,​ManagementTrackingReport.SeverityStats> getSeverityWeekStats()
    Returns the severity statistics for this week.
    int getTotalCount()
    Returns the number of bugs opened in this week.
    int getWeek()
    Returns the week no.
    void registerBug​(Issue bug)
    Registers the bug.

    Methods inherited from class java.lang.Object

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

    • WeekStats

      public WeekStats​(int week)
      Constructor.
      Parameters:
      week - - week no
  • Method Details

    • registerBug

      public void registerBug​(Issue bug)
      Registers the bug.
      Parameters:
      bug - - the bug to collect data from.
    • getAverageFixTime

      public long getAverageFixTime()
      Returns the average fix time for bugs of this week.
      Returns:
      average fix time in calendar days.
    • getOpenCount

      public int getOpenCount()
      Returns the number of bugs still open from this week.
      Returns:
      the openCount
      See Also:
      Issue.isOpen()
    • getClosedCount

      public int getClosedCount()
      Returns the number of closed bugs from this week.
      Returns:
      the closedCount
      See Also:
      Issue.isClosed()
    • getTotalCount

      public int getTotalCount()
      Returns the number of bugs opened in this week.
      Returns:
      the totalCount
    • getSeverityWeekStats

      public java.util.Map<java.lang.String,​ManagementTrackingReport.SeverityStats> getSeverityWeekStats()
      Returns the severity statistics for this week.
      Returns:
      the severityWeekStats
    • getWeek

      public int getWeek()
      Returns the week no.
      Returns:
      the week