Package tethys.detection
Class GroupedGranularityHandler
java.lang.Object
tethys.detection.GranularityHandler
tethys.detection.CallGranularityHandler
tethys.detection.GroupedGranularityHandler
-
Field Summary
Fields inherited from class tethys.detection.GranularityHandler
dataBlock, streamExportParams, tethysControl, tethysExportParams
-
Constructor Summary
ConstructorsConstructorDescriptionGroupedGranularityHandler
(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.CallGranularityHandler
autoEffortFix
Methods inherited from class tethys.detection.GranularityHandler
addChannelsToMap, contractDetection, effortOverlap, expandEffort, finaliseChannels, getCallGroupName, getHandler, toDetectionArray
-
Constructor Details
-
GroupedGranularityHandler
public GroupedGranularityHandler(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.- Overrides:
prepare
in classCallGranularityHandler
- Parameters:
timeMillis
-
-
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- Overrides:
addDataUnit
in classCallGranularityHandler
- Parameters:
dataUnit
-- 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 classCallGranularityHandler
- 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.
-