C# Класс Opc.Ua.Server.StateMachine

Defines additional methods for a StateMachine
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
UpdateState ( State state, Transition transition ) : void

Updates the state of the machine.

Описание методов

AddTransition() защищенный Метод

Called to process a transition that was found in the machine.
protected AddTransition ( ILocalNode source ) : void
source ILocalNode
Результат void

BeginTransitionForCause() защищенный Метод

Begins a transition.
protected BeginTransitionForCause ( OperationContext context, QualifiedName causeName ) : Transition
context OperationContext
causeName QualifiedName
Результат Transition

BeginTransitionToState() защищенный Метод

Begins a transition.
protected BeginTransitionToState ( OperationContext context, QualifiedName toState ) : Transition
context OperationContext
toState QualifiedName
Результат Transition

ConstructMachine() защищенный Метод

Contructs the machine by reading the address space.
protected ConstructMachine ( object configuration ) : void
configuration object
Результат void

ConstructMachineFromType() защищенный Метод

Contructs the machine by reading the address space.
protected ConstructMachineFromType ( NodeId typeDefinitionId ) : void
typeDefinitionId NodeId
Результат void

CreateAuditEvent() защищенный Метод

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
Результат AuditUpdateStateEvent

EndTransition() защищенный Метод

Ends a transition (reports events for all effects).
protected EndTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void
context OperationContext
transition Transition
cause QualifiedName
Результат void

FindContainer() защищенный Метод

Finds the parent that has the specified type.
protected FindContainer ( Type containerType ) : NodeSource
containerType System.Type
Результат NodeSource

ForceState() публичный Метод

Sets the state for the machine without generating any events.
public ForceState ( QualifiedName stateName ) : void
stateName QualifiedName
Результат void

GetCollapsedSubstate() защищенный Метод

Returns the collapses substate name for the state machine.
protected GetCollapsedSubstate ( ) : LocalizedText
Результат LocalizedText

GotoInitialState() публичный Метод

Moves the state machine into the initial state.
public GotoInitialState ( ) : void
Результат void

OnAfterCreate() защищенный Метод

Creates the members uses to store the state machine structure.
protected OnAfterCreate ( object configuration ) : void
configuration object
Результат void

OnAfterTransition() защищенный Метод

Does any processing after a transition occurs.
protected OnAfterTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void
context OperationContext
transition Transition
cause QualifiedName
Результат void

OnBeforeTransition() защищенный Метод

Does any processing before a transition occurs.
protected OnBeforeTransition ( OperationContext context, Transition transition, QualifiedName cause ) : void
context OperationContext
transition Transition
cause QualifiedName
Результат void

OnCauseInvoked() публичный Метод

Called when a cause is invoked.
public OnCauseInvoked ( OperationContext context, QualifiedName causeName ) : void
context OperationContext
causeName QualifiedName
Результат void

ParentMachineStateChanged() публичный Метод

Updates the state after the parent state changes.
public ParentMachineStateChanged ( QualifiedName state, QualifiedName transition ) : void
state QualifiedName
transition QualifiedName
Результат void

ReportAuditEvent() защищенный Метод

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
Результат void

ReportEffect() защищенный Метод

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
Результат void

SetState() публичный Метод

Sets the state for the machine.
public SetState ( OperationContext context, QualifiedName stateName ) : void
context OperationContext
stateName QualifiedName
Результат void

SetSubState() публичный Метод

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
Результат void

UpdateCollapsedSubstate() защищенный Метод

Updates the collapses substate name for the state machine.
protected UpdateCollapsedSubstate ( ) : void
Результат void