C# 클래스 HomeAutomation.Core.DeviceRegistry

Keeps an up to date registry of the devices in the system.
파일 보기 프로젝트 열기: moszinet/HomeAutomation

공개 메소드들

메소드 설명
GetDeviceById ( IDeviceNetwork deviceNetwork, byte deviceByteId ) : IDevice

Returns the class type that handles all things related to the device with the specified address.

IsStagingDevice ( IDeviceNetwork deviceNetwork, byte deviceByteId ) : bool
RegisterDevice ( IDeviceNetwork deviceNetwork, IDevice device, byte deviceByteId ) : void

Registers a device into the system.

RegisterDeviceWithTypeID ( IDeviceNetwork deviceNetwork, int deviceIdentification, byte address, byte networkAddress ) : void
RegisterStagingDevice ( IDeviceNetwork deviceNetwork, byte deviceByteId ) : void

비공개 메소드들

메소드 설명
GetDeviceId ( IDeviceNetwork deviceNetwork, byte deviceId ) : string

메소드 상세

GetDeviceById() 공개 메소드

Returns the class type that handles all things related to the device with the specified address.
public GetDeviceById ( IDeviceNetwork deviceNetwork, byte deviceByteId ) : IDevice
deviceNetwork IDeviceNetwork
deviceByteId byte
리턴 IDevice

IsStagingDevice() 공개 메소드

public IsStagingDevice ( IDeviceNetwork deviceNetwork, byte deviceByteId ) : bool
deviceNetwork IDeviceNetwork
deviceByteId byte
리턴 bool

RegisterDevice() 공개 메소드

Registers a device into the system.
public RegisterDevice ( IDeviceNetwork deviceNetwork, IDevice device, byte deviceByteId ) : void
deviceNetwork IDeviceNetwork The device network for this device.
device IDevice The device instance that handles all things related to a device.
deviceByteId byte The address/id of the device.
리턴 void

RegisterDeviceWithTypeID() 공개 메소드

public RegisterDeviceWithTypeID ( IDeviceNetwork deviceNetwork, int deviceIdentification, byte address, byte networkAddress ) : void
deviceNetwork IDeviceNetwork
deviceIdentification int
address byte
networkAddress byte
리턴 void

RegisterStagingDevice() 공개 메소드

public RegisterStagingDevice ( IDeviceNetwork deviceNetwork, byte deviceByteId ) : void
deviceNetwork IDeviceNetwork
deviceByteId byte
리턴 void