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
Afficher le fichier Open project: cyrusbuilt/MonoPi

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat System

GateOpenerDevice() public méthode

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. ///
Résultat System