Class CallGranularityHandler

java.lang.Object
tethys.detection.GranularityHandler
tethys.detection.CallGranularityHandler
Direct Known Subclasses:
GroupedGranularityHandler

public class CallGranularityHandler extends GranularityHandler
  • 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.
      Specified by:
      prepare in class GranularityHandler
    • 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
      Specified by:
      addDataUnit in class GranularityHandler
      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.

      Specified by:
      cleanup in class GranularityHandler
      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.