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

Base class for gate opener abstractions.
Inheritance: CyrusBuilt.MonoPi.Devices.Access.OpenerDevice, IGateOpener
Mostrar archivo Open project: cyrusbuilt/MonoPi

Protected Methods

Method Description
GateOpenerBase ( IRelay relay, ISensor doorSensor, SensorState doorSensorOpenState ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerBase classwith the relay, sensor, and the sensor state that indicates that the opener has opened.

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

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerBase class with the relay, sensor, the sensor state that indicates that the opener has opened, and the switch that controls the lock.

Method Details

GateOpenerBase() protected method

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerBase classwith the relay, sensor, and the sensor state that indicates that the opener has opened.
protected GateOpenerBase ( IRelay relay, ISensor doorSensor, SensorState doorSensorOpenState ) : System
relay IRelay /// The relay that controls the opener. ///
doorSensor ISensor /// The reading the state of the opener. ///
doorSensorOpenState SensorState /// The sensor state that indicates the opener has opened. ///
return System

GateOpenerBase() protected method

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Gate.GateOpenerBase class with the relay, sensor, the sensor state that indicates that the opener has opened, and the switch that controls the lock.
protected GateOpenerBase ( IRelay relay, ISensor doorSensor, SensorState doorSensorOpenState, ISwitch lok ) : System
relay IRelay /// The relay that controls the opener. ///
doorSensor ISensor /// The reading the state of the opener. ///
doorSensorOpenState SensorState /// The sensor state that indicates the opener has opened. ///
lok ISwitch /// The switch that controls the lock. ///
return System