C# Class SensorSample.Sensors.DoorSensor

Inheritance: ISensor, IInitializable
Mostra file Open project: appccelerate/sensorsample

Public Methods

Method Description
Describe ( ) : string
DoorSensor ( IVhptDoor door, Events>.IStateMachine stateMachine, IAsynchronousFileLogger fileLogger, IVhptTravelCoordinator travelCoordinator, IEvaluationEngine evaluationEngine ) : System
Initialize ( ) : void
StartObservation ( ) : void
StopObservation ( ) : void

Private Methods

Method Description
DetermineTargetLevel ( ) : void
HandleBlackHoleDetection ( object sender, EventArgs e ) : void
HandleDoorClosed ( object sender, EventArgs e ) : void
HandleDoorOpened ( object sender, EventArgs e ) : void
Log ( string message ) : void
LogBlackHoleDetected ( ) : void
LogDoorClosedInNormalMode ( ) : void
LogDoorClosedInPanicMode ( ) : void
LogDoorOpenedInNormalMode ( ) : void
LogDoorOpenedInPanicMode ( ) : void
SetInPanicModeFlag ( ) : void

Method Details

Describe() public method

public Describe ( ) : string
return string

DoorSensor() public method

public DoorSensor ( IVhptDoor door, Events>.IStateMachine stateMachine, IAsynchronousFileLogger fileLogger, IVhptTravelCoordinator travelCoordinator, IEvaluationEngine evaluationEngine ) : System
door IVhptDoor
stateMachine Events>.IStateMachine
fileLogger IAsynchronousFileLogger
travelCoordinator IVhptTravelCoordinator
evaluationEngine IEvaluationEngine
return System

Initialize() public method

public Initialize ( ) : void
return void

StartObservation() public method

public StartObservation ( ) : void
return void

StopObservation() public method

public StopObservation ( ) : void
return void