C# Class CyrusBuilt.MonoPi.Devices.Gate.GateOpenerDevice

An abstraction of a gate opener device. This is an implementation of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerBase.
Inheritance: GateOpenerBase
ファイルを表示 Open project: cyrusbuilt/MonoPi

Public Methods

Method Description
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.

Method Details

GateOpenerDevice() public method

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. ///
return System

GateOpenerDevice() public method

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. ///
return System