Class: DataProcessor
(abstract) PathBuilding.Pipeline.DataProcessor()
An abstract base class for pipeline stages that process data based on a single input item
Constructor
(abstract) new DataProcessor()
Since:
- version 3.0
Methods
add(phase, addition, prediction) → PathBuilding.Pipeline.DataOutput
Inputs stroke data in the pipeline stage and processes it
Parameters:
Name | Type | Description |
---|---|---|
phase | PathBuilding.Pipeline.Phase | Specifies the phase of the stroke |
addition | PathBuilding.Pipeline.Input | Newly added stroke data that must be processed and accumulated |
prediction | PathBuilding.Pipeline.Input | Predicted continuation of the stroke data. Can be used temporarily before the next data addition occurs. |
Returns:
Plain object containing added and predicted data of the output type
Type
PathBuilding.Pipeline.DataOutput
(abstract) addImpl(addition, prediction) → PathBuilding.Pipeline.DataOutput
Parameters:
Name | Type | Description |
---|---|---|
addition | PathBuilding.Pipeline.Input | Newly added stroke data that must be processed and accumulated |
prediction | PathBuilding.Pipeline.Input | Predicted continuation of the stroke data. Can be used temporarily before the next data addition occurs. |
Returns:
Plain object containing added and predicted data of the output type
Type
PathBuilding.Pipeline.DataOutput
reset()
Resets the processor to its initial state