C# Class Opc.Ua.Server.StateMachine

Defines additional methods for a StateMachine
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Méthodes publiques

Méthode Description
ForceState ( QualifiedName stateName ) : void

Sets the state for the machine without generating any events.

GotoInitialState ( ) : void

Moves the state machine into the initial state.

OnCauseInvoked ( OperationContext context, QualifiedName causeName ) : void

Called when a cause is invoked.

ParentMachineStateChanged ( QualifiedName state, QualifiedName transition ) : void

Updates the state after the parent state changes.

SetState ( OperationContext context, QualifiedName stateName ) : void

Sets the state for the machine.

SetSubState ( OperationContext context, QualifiedName stateName, QualifiedName substateMachine, QualifiedName substateName ) : void

Sets the state for the machine.

Méthodes protégées

Méthode Description
AddTransition ( ILocalNode source ) : void

Called to process a transition that was found in the machine.

BeginTransitionForCause ( OperationContext context, QualifiedName causeName ) : Transition

Begins a transition.

BeginTransitionToState ( OperationContext context, QualifiedName toState ) : Transition

Begins a transition.

ConstructMachine ( object configuration ) : void

Contructs the machine by reading the address space.

ConstructMachineFromType ( NodeId typeDefinitionId ) : void

Contructs the machine by reading the address space.

CreateAuditEvent ( OperationContext context, Transition transition, QualifiedName cause, Exception exception ) : AuditUpdateStateEvent

Creates an audit event for the cause.

EndTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void

Ends a transition (reports events for all effects).

FindContainer ( Type containerType ) : NodeSource

Finds the parent that has the specified type.

GetCollapsedSubstate ( ) : LocalizedText

Returns the collapses substate name for the state machine.

OnAfterCreate ( object configuration ) : void

Creates the members uses to store the state machine structure.

OnAfterTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void

Does any processing after a transition occurs.

OnBeforeTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void

Does any processing before a transition occurs.

ReportAuditEvent ( OperationContext context, Transition transition, QualifiedName cause, Exception exception ) : void

Reports an audit event for the cause.

ReportEffect ( OperationContext context, Transition transition, QualifiedName cause, NodeId effectId ) : void

Reports an effect which is an effect of a transition.

UpdateCollapsedSubstate ( ) : void

Updates the collapses substate name for the state machine.

Private Methods

Méthode Description
UpdateState ( State state, Transition transition ) : void

Updates the state of the machine.

Method Details

AddTransition() protected méthode

Called to process a transition that was found in the machine.
protected AddTransition ( ILocalNode source ) : void
source ILocalNode
Résultat void

BeginTransitionForCause() protected méthode

Begins a transition.
protected BeginTransitionForCause ( OperationContext context, QualifiedName causeName ) : Transition
context OperationContext
causeName QualifiedName
Résultat Transition

BeginTransitionToState() protected méthode

Begins a transition.
protected BeginTransitionToState ( OperationContext context, QualifiedName toState ) : Transition
context OperationContext
toState QualifiedName
Résultat Transition

ConstructMachine() protected méthode

Contructs the machine by reading the address space.
protected ConstructMachine ( object configuration ) : void
configuration object
Résultat void

ConstructMachineFromType() protected méthode

Contructs the machine by reading the address space.
protected ConstructMachineFromType ( NodeId typeDefinitionId ) : void
typeDefinitionId NodeId
Résultat void

CreateAuditEvent() protected méthode

Creates an audit event for the cause.
protected CreateAuditEvent ( OperationContext context, Transition transition, QualifiedName cause, Exception exception ) : AuditUpdateStateEvent
context OperationContext
transition Transition
cause QualifiedName
exception System.Exception
Résultat AuditUpdateStateEvent

EndTransition() protected méthode

Ends a transition (reports events for all effects).
protected EndTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void
context OperationContext
transition Transition
cause QualifiedName
Résultat void

FindContainer() protected méthode

Finds the parent that has the specified type.
protected FindContainer ( Type containerType ) : NodeSource
containerType System.Type
Résultat NodeSource

ForceState() public méthode

Sets the state for the machine without generating any events.
public ForceState ( QualifiedName stateName ) : void
stateName QualifiedName
Résultat void

GetCollapsedSubstate() protected méthode

Returns the collapses substate name for the state machine.
protected GetCollapsedSubstate ( ) : LocalizedText
Résultat LocalizedText

GotoInitialState() public méthode

Moves the state machine into the initial state.
public GotoInitialState ( ) : void
Résultat void

OnAfterCreate() protected méthode

Creates the members uses to store the state machine structure.
protected OnAfterCreate ( object configuration ) : void
configuration object
Résultat void

OnAfterTransition() protected méthode

Does any processing after a transition occurs.
protected OnAfterTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void
context OperationContext
transition Transition
cause QualifiedName
Résultat void

OnBeforeTransition() protected méthode

Does any processing before a transition occurs.
protected OnBeforeTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void
context OperationContext
transition Transition
cause QualifiedName
Résultat void

OnCauseInvoked() public méthode

Called when a cause is invoked.
public OnCauseInvoked ( OperationContext context, QualifiedName causeName ) : void
context OperationContext
causeName QualifiedName
Résultat void

ParentMachineStateChanged() public méthode

Updates the state after the parent state changes.
public ParentMachineStateChanged ( QualifiedName state, QualifiedName transition ) : void
state QualifiedName
transition QualifiedName
Résultat void

ReportAuditEvent() protected méthode

Reports an audit event for the cause.
protected ReportAuditEvent ( OperationContext context, Transition transition, QualifiedName cause, Exception exception ) : void
context OperationContext
transition Transition
cause QualifiedName
exception System.Exception
Résultat void

ReportEffect() protected méthode

Reports an effect which is an effect of a transition.
protected ReportEffect ( OperationContext context, Transition transition, QualifiedName cause, NodeId effectId ) : void
context OperationContext
transition Transition
cause QualifiedName
effectId NodeId
Résultat void

SetState() public méthode

Sets the state for the machine.
public SetState ( OperationContext context, QualifiedName stateName ) : void
context OperationContext
stateName QualifiedName
Résultat void

SetSubState() public méthode

Sets the state for the machine.
public SetSubState ( OperationContext context, QualifiedName stateName, QualifiedName substateMachine, QualifiedName substateName ) : void
context OperationContext
stateName QualifiedName
substateMachine QualifiedName
substateName QualifiedName
Résultat void

UpdateCollapsedSubstate() protected méthode

Updates the collapses substate name for the state machine.
protected UpdateCollapsedSubstate ( ) : void
Résultat void