new DeltaFeatureExtractor()
Creates a new feature extractor that identifies differences between sequential events containing Grids
Extends
Methods
-
createDelta(newGrid) → {Array.<object>|null}
-
Creates a difference map between the current Grid and the previous one. Typically triggered by an event and not called directly.
Parameters:
Name Type Description newGrid
Grid The current grid.
Returns:
Array.<object> | null -Returns the output of Grid.diff. Returns 'null' if this is the first event or if there was no difference between Grids.
-
listen(sourceName)
-
Listens for
data
events from another ComponentParameters:
Name Type Description sourceName
string The name of the component to listen to
- Overrides:
-
sendEvent(type, data)
-
Emits an event using the specified eventClass
Parameters:
Name Type Description type
string The event type to emit
data
* The data to emit
- Overrides: