C# Class BACnet.Client.Descriptors.DescriptorRegistrar

Registrar for various types of descriptors
Afficher le fichier Open project: LorenVS/bacstack Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Creates an identical copy of this registrar
public Clone ( ) : DescriptorRegistrar
Résultat DescriptorRegistrar

CreateDescriptor() public méthode

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
Résultat ObjectInfo

DescriptorRegistrar() public méthode

Constructs a new DescriptorRegistrar instance
public DescriptorRegistrar ( ) : System
Résultat System

Register() public méthode

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
Résultat void

Register() public méthode

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
Résultat void