C# Class HA4IoT.Actuators.BinaryStateActuators.LogicalBinaryStateActuator

Inheritance: ActuatorBase, IStateMachine
Show file Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
ConnectToggleActionWith ( IButton button, ButtonPressedDuration pressedDuration = ButtonPressedDuration.Short ) : LogicalBinaryStateActuator
GetNextState ( ComponentState baseStateId ) : ComponentState
GetState ( ) : ComponentState
GetSupportedStates ( ) : IList
LogicalBinaryStateActuator ( ComponentId id, ITimerService timerService ) : System
ResetState ( ) : void
SetState ( ComponentState state ) : void
SetStateIdAlias ( ComponentState id, ComponentState alias ) : void
ToggleState ( ) : void
WithActuator ( IStateMachine actuator ) : LogicalBinaryStateActuator

Private Methods

Method Description
GetStateInternal ( ) : ComponentState

Method Details

ConnectToggleActionWith() public method

public ConnectToggleActionWith ( IButton button, ButtonPressedDuration pressedDuration = ButtonPressedDuration.Short ) : LogicalBinaryStateActuator
button IButton
pressedDuration ButtonPressedDuration
return LogicalBinaryStateActuator

GetNextState() public method

public GetNextState ( ComponentState baseStateId ) : ComponentState
baseStateId ComponentState
return ComponentState

GetState() public method

public GetState ( ) : ComponentState
return ComponentState

GetSupportedStates() public method

public GetSupportedStates ( ) : IList
return IList

LogicalBinaryStateActuator() public method

public LogicalBinaryStateActuator ( ComponentId id, ITimerService timerService ) : System
id ComponentId
timerService ITimerService
return System

ResetState() public method

public ResetState ( ) : void
return void

SetState() public method

public SetState ( ComponentState state ) : void
state ComponentState
return void

SetStateIdAlias() public method

public SetStateIdAlias ( ComponentState id, ComponentState alias ) : void
id ComponentState
alias ComponentState
return void

ToggleState() public method

public ToggleState ( ) : void
return void

WithActuator() public method

public WithActuator ( IStateMachine actuator ) : LogicalBinaryStateActuator
actuator IStateMachine
return LogicalBinaryStateActuator