C# Class hobd.CoreSensor

Implementation of a simple sensor
Sensor value could only be changed by derived classses
Inheritance: Sensor
Show file Open project: cail/hobd Class Usage Examples

Protected Properties

Property Type Description
listenerCount int
registry SensorRegistry
value double

Public Methods

Method Description
CoreSensor ( ) : System
DetachRegistry ( ) : void
NotifyAddListener ( Action listener ) : void
NotifyRemoveListener ( Action listener ) : void
SetRegistry ( SensorRegistry registry ) : void

Protected Methods

Method Description
Activate ( ) : void

Helper method to help sensor know when it is activated

Deactivate ( ) : void

Helper method to help sensor know when it is deactivated

Method Details

Activate() protected method

Helper method to help sensor know when it is activated
protected Activate ( ) : void
return void

CoreSensor() public method

public CoreSensor ( ) : System
return System

Deactivate() protected method

Helper method to help sensor know when it is deactivated
protected Deactivate ( ) : void
return void

DetachRegistry() public method

public DetachRegistry ( ) : void
return void

NotifyAddListener() public method

public NotifyAddListener ( Action listener ) : void
listener Action
return void

NotifyRemoveListener() public method

public NotifyRemoveListener ( Action listener ) : void
listener Action
return void

SetRegistry() public method

public SetRegistry ( SensorRegistry registry ) : void
registry SensorRegistry
return void

Property Details

listenerCount protected property

protected int listenerCount
return int

registry protected property

protected SensorRegistry,hobd registry
return SensorRegistry

value protected property

protected double value
return double