Skip to main content

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:
NameTypeDescription
phasePathBuilding.Pipeline.PhaseSpecifies the phase of the stroke
additionPathBuilding.Pipeline.InputNewly added stroke data that must be processed and accumulated
predictionPathBuilding.Pipeline.InputPredicted 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:
NameTypeDescription
additionPathBuilding.Pipeline.InputNewly added stroke data that must be processed and accumulated
predictionPathBuilding.Pipeline.InputPredicted 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

Home