Package tethys.detection
Class CallGranularityHandler
java.lang.Object
tethys.detection.GranularityHandler
tethys.detection.CallGranularityHandler
- Direct Known Subclasses:
GroupedGranularityHandler
-
Constructor Summary
ConstructorDescriptionCallGranularityHandler
(TethysControl tethysControl, PamDataBlock dataBlock, TethysExportParams tethysExportParams, StreamExportParams streamExportParams) -
Method Summary
Modifier and TypeMethodDescriptionnilus.Detection[]
addDataUnit
(PamDataUnit dataUnit) Put a data unit into a Detection object.nilus.Detection[]
cleanup
(long timeMillis) Called after end end of all data units to get the last bin / encounter.void
prepare
(long timeMillis) Prepare to start, passing the start time of the effort or of the first time bin for binned granularity types.Methods inherited from class tethys.detection.GranularityHandler
getCallGroupName, getHandler
-
Constructor Details
-
CallGranularityHandler
public CallGranularityHandler(TethysControl tethysControl, PamDataBlock dataBlock, TethysExportParams tethysExportParams, StreamExportParams streamExportParams)
-
-
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 classGranularityHandler
-
addDataUnit
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 classGranularityHandler
- 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 classGranularityHandler
- 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.
-