Class GroupedGranularityHandler


public class GroupedGranularityHandler extends CallGranularityHandler
  • Constructor Details

  • Method Details

    • prepare

      public void prepare(long timeMillis)
      Description copied from class: GranularityHandler
      Prepare to start, passing the start time of the effort or of the first time bin for binned granularity types.
      Overrides:
      prepare in class CallGranularityHandler
    • addDataUnit

      public nilus.Detection[] addDataUnit(PamDataUnit dataUnit)
      Description copied from class: GranularityHandler
      Put a data unit into a Detection object. for Call granularity this will probably return every time. For binned and encounter types this will only return at the end of a bin / encounter
      Overrides:
      addDataUnit in class CallGranularityHandler
      Returns:
      Detection object, but only when ready to be added to Detections
    • cleanup

      public nilus.Detection[] cleanup(long timeMillis)
      Description copied from class: GranularityHandler
      Called after end end of all data units to get the last bin / encounter.

      Overrides:
      cleanup in class CallGranularityHandler
      Parameters:
      timeMillis - end time of effort or last bin in milliseconds.
      Returns:
      null for Call granularity, otherwise may be non null for binned or encounter.