C# Class HA4IoT.Actuators.StateMachines.StateMachineExtensions

Show file Open project: chkr1011/CK.HomeAutomation

Public Methods

Method Description
AddOffState ( this stateMachine ) : StateMachineState
AddOnState ( this stateMachine ) : StateMachineState
AddState ( this stateMachine, ComponentState id ) : StateMachineState
GetSetNextStateAction ( this stateStateMachine ) : IAction
GetSetStateAction ( this stateStateMachine, ComponentState stateId ) : IAction
GetStateMachine ( this area, Enum id ) : IStateMachine
GetSupportsOffState ( this stateMachine ) : bool
GetSupportsOnState ( this stateMachine ) : bool
GetTurnOffAction ( this stateMachine ) : IAction
GetTurnOnAction ( this stateMachine ) : IAction
SetNextState ( this stateMachine ) : void
TryTurnOff ( this stateMachine ) : bool
TryTurnOn ( this stateMachine ) : bool

Method Details

AddOffState() public static method

public static AddOffState ( this stateMachine ) : StateMachineState
stateMachine this
return StateMachineState

AddOnState() public static method

public static AddOnState ( this stateMachine ) : StateMachineState
stateMachine this
return StateMachineState

AddState() public static method

public static AddState ( this stateMachine, ComponentState id ) : StateMachineState
stateMachine this
id ComponentState
return StateMachineState

GetSetNextStateAction() public static method

public static GetSetNextStateAction ( this stateStateMachine ) : IAction
stateStateMachine this
return IAction

GetSetStateAction() public static method

public static GetSetStateAction ( this stateStateMachine, ComponentState stateId ) : IAction
stateStateMachine this
stateId ComponentState
return IAction

GetStateMachine() public static method

public static GetStateMachine ( this area, Enum id ) : IStateMachine
area this
id System.Enum
return IStateMachine

GetSupportsOffState() public static method

public static GetSupportsOffState ( this stateMachine ) : bool
stateMachine this
return bool

GetSupportsOnState() public static method

public static GetSupportsOnState ( this stateMachine ) : bool
stateMachine this
return bool

GetTurnOffAction() public static method

public static GetTurnOffAction ( this stateMachine ) : IAction
stateMachine this
return IAction

GetTurnOnAction() public static method

public static GetTurnOnAction ( this stateMachine ) : IAction
stateMachine this
return IAction

SetNextState() public static method

public static SetNextState ( this stateMachine ) : void
stateMachine this
return void

TryTurnOff() public static method

public static TryTurnOff ( this stateMachine ) : bool
stateMachine this
return bool

TryTurnOn() public static method

public static TryTurnOn ( this stateMachine ) : bool
stateMachine this
return bool