UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

29 lines 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SourceMergeNode = void 0; const FrameMergeNode_1 = require("./FrameMergeNode"); /** * Source merge node. This node merges the data frames from multiple sources into one. * * ## Usage * Merging is done by determining the incoming edges, once the amount of received frames from unique sources is * the same as the incoming edges, the frames are merged and pushed. * * It is possible to set a timeout, when this timeout is reached the frames that are received are merged and pushed. * * When frames of the same source are received they are overridden. * @rdf {@link http://purl.org/poso/HighLevelFusion} * @category Flow shape */ class SourceMergeNode extends FrameMergeNode_1.FrameMergeNode { constructor(options) { super((frame) => { if (frame.source === undefined) { return null; } return frame.source.uid; }, (frame) => frame.uid, options); } } exports.SourceMergeNode = SourceMergeNode; //# sourceMappingURL=SourceMergeNode.js.map