@bacnet-js/device
Version:
A TypeScript library for implementing BACnet IP devices in Node.js.
36 lines • 1.04 kB
JavaScript
import {} from '@bacnet-js/client';
import { AsyncEventEmitter, } from '../events.js';
import {} from './types.js';
import { TaskQueue, } from '../taskqueue.js';
const defaultTaskQueue = new TaskQueue();
/**
* Abstract base class for all types of properties.
*/
export class BDAbstractProperty extends AsyncEventEmitter {
/**
* Whether the property representes a single value or an array (or list) of
* values.
*
* @see {@link BDPropertyType}
*/
type;
/**
* The BACnet identifier for this property. Must be unique within the
* properties added to the same object.
*/
identifier;
/**
* The task queue that consumer-facing methods use to execute tasks.
* This is set via {@link this.___setTaskQueue} by object instances.
*
* @internal
*/
___queue;
constructor(type, identifier) {
super();
this.type = type;
this.identifier = identifier;
this.___queue = defaultTaskQueue;
}
}
//# sourceMappingURL=abstract.js.map