C# Class hobd.DerivedSensor

Derived sensor is a simplified implementation of a sensor, which value depends on one or two other sensors
Inheritance: CoreSensor
ファイルを表示 Open project: cail/hobd Class Usage Examples

Public Properties

Property Type Description
DerivedValue Func

Protected Properties

Property Type Description
Interval int
a Sensor
aid string
b Sensor
bid string
recurseValue bool
triggerA bool

Public Methods

Method 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

Protected Methods

Method Description
Activate ( ) : void
Deactivate ( ) : void
LoadBaseSensors ( ) : void

Method Details

Activate() protected method

protected Activate ( ) : void
return void

Deactivate() protected method

protected Deactivate ( ) : void
return void

DerivedSensor() public method

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

DerivedSensor() public method

public DerivedSensor ( string id, string a, string b, bool triggerA, bool triggerB ) : System
id string
a string
b string
triggerA bool
triggerB bool
return System

DerivedSensor() public method

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

DerivedSensor() public method

public DerivedSensor ( string id, string a, string b, int interval ) : System
id string
a string
b string
interval int
return System

LoadBaseSensors() protected method

protected LoadBaseSensors ( ) : void
return void

OnSensorChange() public method

public OnSensorChange ( Sensor s ) : void
s Sensor
return void

Property Details

DerivedValue public_oe property

public Func DerivedValue
return Func

Interval protected_oe property

protected int Interval
return int

a protected_oe property

protected Sensor a
return Sensor

aid protected_oe property

protected string aid
return string

b protected_oe property

protected Sensor b
return Sensor

bid protected_oe property

protected string bid
return string

recurseValue protected_oe property

protected bool recurseValue
return bool

triggerA protected_oe property

protected bool triggerA
return bool