@openhps/core
Version:
Open Hybrid Positioning System - Core component
30 lines (29 loc) • 509 B
JavaScript
/**
* 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;
}
}
export default Pipeline;