UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

36 lines (34 loc) 633 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** * Abstract class for representing pipelines. * * @private * @abstract */ class Pipeline { /** * Constructs a new pipeline. * * @param {string} cacheKey - The pipeline's cache key. */ constructor(cacheKey) { /** * The pipeline's cache key. * * @type {string} */ this.cacheKey = cacheKey; /** * How often the pipeline is currently in use. * * @type {number} * @default 0 */ this.usedTimes = 0; } } var _default = exports.default = Pipeline;