C# Class HA4IoT.Actuators.StateMachines.StateMachine

Inheritance: ActuatorBase, IStateMachine
Afficher le fichier Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Méthodes publiques

Méthode Description
AddState ( IStateMachineState state ) : void
GetNextState ( ComponentState stateId ) : ComponentState
GetState ( ) : ComponentState
GetSupportedStates ( ) : IList
HandleApiCall ( IApiContext apiContext ) : void
ResetState ( ) : void
SetInitialState ( ComponentState id ) : void
SetState ( ComponentState id ) : void
SetStateIdAlias ( ComponentState stateId, ComponentState alias ) : void
StateMachine ( ComponentId id ) : System
SupportsState ( ComponentState stateId ) : bool
WithTurnOffIfStateIsAppliedTwice ( ) : StateMachine

Méthodes protégées

Méthode Description
OnActiveStateChanged ( IStateMachineState oldState, IStateMachineState newState ) : void

Private Methods

Méthode Description
GetState ( ComponentState id ) : IStateMachineState
ThrowIfNoStatesAvailable ( ) : void
ThrowIfStateNotSupported ( ComponentState stateId ) : void

Method Details

AddState() public méthode

public AddState ( IStateMachineState state ) : void
state IStateMachineState
Résultat void

GetNextState() public méthode

public GetNextState ( ComponentState stateId ) : ComponentState
stateId ComponentState
Résultat ComponentState

GetState() public méthode

public GetState ( ) : ComponentState
Résultat ComponentState

GetSupportedStates() public méthode

public GetSupportedStates ( ) : IList
Résultat IList

HandleApiCall() public méthode

public HandleApiCall ( IApiContext apiContext ) : void
apiContext IApiContext
Résultat void

OnActiveStateChanged() protected méthode

protected OnActiveStateChanged ( IStateMachineState oldState, IStateMachineState newState ) : void
oldState IStateMachineState
newState IStateMachineState
Résultat void

ResetState() public méthode

public ResetState ( ) : void
Résultat void

SetInitialState() public méthode

public SetInitialState ( ComponentState id ) : void
id ComponentState
Résultat void

SetState() public méthode

public SetState ( ComponentState id ) : void
id ComponentState
Résultat void

SetStateIdAlias() public méthode

public SetStateIdAlias ( ComponentState stateId, ComponentState alias ) : void
stateId ComponentState
alias ComponentState
Résultat void

StateMachine() public méthode

public StateMachine ( ComponentId id ) : System
id ComponentId
Résultat System

SupportsState() public méthode

public SupportsState ( ComponentState stateId ) : bool
stateId ComponentState
Résultat bool

WithTurnOffIfStateIsAppliedTwice() public méthode

public WithTurnOffIfStateIsAppliedTwice ( ) : StateMachine
Résultat StateMachine