C# Class hobd.DerivedSensor

Derived sensor is a simplified implementation of a sensor, which value depends on one or two other sensors
Inheritance: CoreSensor
Afficher le fichier Open project: cail/hobd Class Usage Examples

Méthodes publiques

Свойство Type Description
DerivedValue Func

Protected Properties

Свойство Type Description
Interval int
a Sensor
aid string
b Sensor
bid string
recurseValue bool
triggerA bool

Méthodes publiques

Méthode Description
DerivedSensor ( string id, string a, string b ) : System

Constructs a derived sensor

DerivedSensor ( string id, string a, string b, bool triggerA, bool triggerB ) : System
DerivedSensor ( string id, string a, string b, bool triggerA, bool triggerB, int interval ) : System
DerivedSensor ( string id, string a, string b, int interval ) : System
OnSensorChange ( Sensor s ) : void

Méthodes protégées

Méthode Description
Activate ( ) : void
Deactivate ( ) : void
LoadBaseSensors ( ) : void

Method Details

Activate() protected méthode

protected Activate ( ) : void
Résultat void

Deactivate() protected méthode

protected Deactivate ( ) : void
Résultat void

DerivedSensor() public méthode

Constructs a derived sensor
public DerivedSensor ( string id, string a, string b ) : System
id string /// A ID of this sensor ///
a string /// A ID of sensor A, which this sensor is listening ///
b string /// A ID of sensor B, which this sensor is listening ///
Résultat System

DerivedSensor() public méthode

public DerivedSensor ( string id, string a, string b, bool triggerA, bool triggerB ) : System
id string
a string
b string
triggerA bool
triggerB bool
Résultat System

DerivedSensor() public méthode

public DerivedSensor ( string id, string a, string b, bool triggerA, bool triggerB, int interval ) : System
id string
a string
b string
triggerA bool
triggerB bool
interval int
Résultat System

DerivedSensor() public méthode

public DerivedSensor ( string id, string a, string b, int interval ) : System
id string
a string
b string
interval int
Résultat System

LoadBaseSensors() protected méthode

protected LoadBaseSensors ( ) : void
Résultat void

OnSensorChange() public méthode

public OnSensorChange ( Sensor s ) : void
s Sensor
Résultat void

Property Details

DerivedValue public_oe property

public Func DerivedValue
Résultat Func

Interval protected_oe property

protected int Interval
Résultat int

a protected_oe property

protected Sensor a
Résultat Sensor

aid protected_oe property

protected string aid
Résultat string

b protected_oe property

protected Sensor b
Résultat Sensor

bid protected_oe property

protected string bid
Résultat string

recurseValue protected_oe property

protected bool recurseValue
Résultat bool

triggerA protected_oe property

protected bool triggerA
Résultat bool