C# 클래스 CyrusBuilt.MonoPi.Devices.Gate.GateOpenerDevice

An abstraction of a gate opener device. This is an implementation of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerBase.
상속: GateOpenerBase
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
GateOpenerDevice ( IRelay relay, ISensor gateSensor, SensorState gateSensorOpenState ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerDevice class with the relay, gate sensor, and sensor state that indicates that the gate is open.

GateOpenerDevice ( IRelay relay, ISensor gateSensor, SensorState gateSensorOpenState, ISwitch lok ) : System

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

메소드 상세

GateOpenerDevice() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerDevice class with the relay, gate sensor, and sensor state that indicates that the gate is open.
public GateOpenerDevice ( IRelay relay, ISensor gateSensor, SensorState gateSensorOpenState ) : System
relay IRelay /// The relay that controls the gate. ///
gateSensor ISensor /// The sensor that indicates the state of the gate. ///
gateSensorOpenState SensorState /// The sensor state that indicates the gate is open. ///
리턴 System

GateOpenerDevice() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerDevice class with the relay, gate sensor, the sensor state that indicates that the gate is open, and the switch that controls the lock.
public GateOpenerDevice ( IRelay relay, ISensor gateSensor, SensorState gateSensorOpenState, ISwitch lok ) : System
relay IRelay /// The relay that controls the gate. ///
gateSensor ISensor /// The sensor that indicates the state of the gate. ///
gateSensorOpenState SensorState /// The sensor state that indicates the gate is open. ///
lok ISwitch /// The switch that controls the lock. ///
리턴 System