C# 클래스 CyrusBuilt.MonoPi.Devices.Garage.GarageDoorOpenerDevice

A device that is an abstraction of a garage door opener. This is an implementation of CyrusBuilt.MonoPi.Devices.Garage.GarageDoorOpenerBase.
상속: GarageDoorOpenerBase
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
GarageDoorOpenerDevice ( IRelay relay, ISensor doorSensor, SensorState doorSensorOpenState ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Garage.GarageDoorOpenerDevice class with the relay, door sensor, and sensor state that indicates that the door is open.

GarageDoorOpenerDevice ( IRelay relay, ISensor doorSensor, SensorState doorSensorOpenState, ISwitch lok ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Garage.GarageDoorOpenerDevice class with the relay, door sensor, the sensor state that indicates that the door is open, and the switch that controls the lock.

메소드 상세

GarageDoorOpenerDevice() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Garage.GarageDoorOpenerDevice class with the relay, door sensor, and sensor state that indicates that the door is open.
public GarageDoorOpenerDevice ( IRelay relay, ISensor doorSensor, SensorState doorSensorOpenState ) : System
relay IRelay /// The relay that controls the door. ///
doorSensor ISensor /// The sensor that indicates the state of the door. ///
doorSensorOpenState SensorState /// The sensor state that indicates the door is open. ///
리턴 System

GarageDoorOpenerDevice() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Garage.GarageDoorOpenerDevice class with the relay, door sensor, the sensor state that indicates that the door is open, and the switch that controls the lock.
public GarageDoorOpenerDevice ( IRelay relay, ISensor doorSensor, SensorState doorSensorOpenState, ISwitch lok ) : System
relay IRelay /// The relay that controls the door. ///
doorSensor ISensor /// The sensor that indicates the state of the door. ///
doorSensorOpenState SensorState /// The sensor state that indicates the door is open. ///
lok ISwitch /// The switch that controls the lock. ///
리턴 System