C# Class BACnet.Client.Descriptors.DescriptorRegistrar

Registrar for various types of descriptors
Mostra file Open project: LorenVS/bacstack Class Usage Examples

Public Methods

Method Description
Clone ( ) : DescriptorRegistrar

Creates an identical copy of this registrar

CreateDescriptor ( ushort vendorId, uint deviceInstance, ObjectId objectIdentifier ) : ObjectInfo

Creates a new descriptor for an object

DescriptorRegistrar ( ) : System

Constructs a new DescriptorRegistrar instance

Register ( ushort objectType, DescriptorFactory factory ) : void

Registers a new default descriptor type with the registrar

Register ( ushort objectType, ushort vendorId, DescriptorFactory factory ) : void

Registers a new descriptor type with the registrar

Private Methods

Method Description
_getKey ( ushort vendorId, ushort objectType ) : uint

Retrieves a registration key

_getRegistration ( ushort vendorId, ushort objectType ) : Registration

Retrieves a suitable registration for an object

_register ( Registration registration ) : void

Registers a new registration instance

Method Details

Clone() public method

Creates an identical copy of this registrar
public Clone ( ) : DescriptorRegistrar
return DescriptorRegistrar

CreateDescriptor() public method

Creates a new descriptor for an object
public CreateDescriptor ( ushort vendorId, uint deviceInstance, ObjectId objectIdentifier ) : ObjectInfo
vendorId ushort The vendor id of the object
deviceInstance uint
objectIdentifier ObjectId
return ObjectInfo

DescriptorRegistrar() public method

Constructs a new DescriptorRegistrar instance
public DescriptorRegistrar ( ) : System
return System

Register() public method

Registers a new default descriptor type with the registrar
public Register ( ushort objectType, DescriptorFactory factory ) : void
objectType ushort The object type of the registration
factory DescriptorFactory The factory function for the descriptors
return void

Register() public method

Registers a new descriptor type with the registrar
public Register ( ushort objectType, ushort vendorId, DescriptorFactory factory ) : void
objectType ushort The object type of the registration
vendorId ushort The vendor id of the registration
factory DescriptorFactory The factory function for the descriptors
return void