@bacnet-js/device
Version:
A TypeScript library for implementing BACnet IP devices in Node.js.
21 lines • 1.01 kB
TypeScript
import { type ApplicationTagValueTypeMap, type BACNetAppData, type PropertyIdentifier, ApplicationTag } from '@bacnet-js/client';
import { BDAbstractProperty } from '../abstract.js';
import { BDPropertyType, type BDPropertyAccessContext } from '../types.js';
/**
* Abstract base class for properties having a single item as their data.
*/
export declare abstract class BDAbstractSingletProperty<Tag extends ApplicationTag, Type extends ApplicationTagValueTypeMap[Tag]> extends BDAbstractProperty<Tag, Type, BACNetAppData<Tag, Type>> {
readonly type: BDPropertyType.SINGLET;
/**
* Commodity method to get the value of the property rather than the entire
* data element.
*/
abstract getValue(ctx?: BDPropertyAccessContext): Type;
/**
* Commodity method to set the value of the property rather than the entire
* data element.
*/
abstract setValue(value: Type): Promise<void>;
constructor(identifier: PropertyIdentifier);
}
//# sourceMappingURL=abstract.d.ts.map