C# 클래스 Opc.Ua.FiniteStateMachineState

파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary

공개 프로퍼티들

프로퍼티 타입 설명
OnAfterTransition StateMachineTransitionHandler
OnBeforeTransition StateMachineTransitionHandler
OnCheckUserPermission StateMachineTransitionHandler

공개 메소드들

메소드 설명
CauseProcessingCompleted ( ISystemContext context, uint causeId ) : void

Updates the state machine to reflect the successful processing of a method.

DoCause ( ISystemContext context, MethodState causeMethod, uint causeId, IList inputArguments, IList outputArguments ) : ServiceResult

Invokes the specified cause.

DoTransition ( ISystemContext context, uint transitionId, uint causeId, IList inputArguments, IList outputArguments ) : ServiceResult

Causes the specified transition to occur.

IsCausePermitted ( ISystemContext context, uint causeId, bool checkUserAccessRights ) : bool

Checks if the cause is permitted given the current state and returns the associated transition.

SetState ( ISystemContext context, uint newState ) : void

Forces the machine into the specified state.

보호된 메소드들

메소드 설명
CreateAuditEvent ( ISystemContext context, MethodState causeMethod, uint causeId ) : AuditUpdateStateEventState

Creates an instance of an audit event.

CreateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId ) : TransitionEventState

Creates an instance of an transition event.

GetCurrentStateId ( ) : uint

Returns the current state of for the state machine.

GetNewStateForTransition ( ISystemContext context, uint transitionId ) : uint

Returns the new state for the specified transition. Returns 0 if the transition is not allowed.

GetTransitionForCause ( ISystemContext context, uint causeId ) : uint

Returns the transition for the cause given the current state.

GetTransitionToState ( ISystemContext context, uint targetStateId ) : uint

Returns the transition from the current state to the target state.

InvokeCallback ( StateMachineTransitionHandler callback, ISystemContext context, StateMachineState machine, uint transitionId, uint causeId, IList inputArguments, IList outputArguments ) : ServiceResult

Invokes the callback function if it has been specified.

OnAfterCreate ( ISystemContext context, NodeState node ) : void

Initializes the object as a collection of counters which change value on read.

TransitionHasEffect ( ISystemContext context, uint transitionId ) : bool

Checks if the transition has an effect.

UpdateAuditEvent ( ISystemContext context, MethodState causeMethod, uint causeId, AuditUpdateStateEventState e, ServiceResult result ) : void

Updates an audit event after the method is invoked.

UpdateStateVariable ( ISystemContext context, uint stateId, FiniteStateVariableState variable ) : void

Updates the current state variable.

UpdateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId, TransitionEventState e ) : void

Updates a transition event after the transition is complete.

UpdateTransitionVariable ( ISystemContext context, uint transitionId, FiniteTransitionVariableState variable ) : void

Updates the last transition variable.

메소드 상세

CauseProcessingCompleted() 공개 메소드

Updates the state machine to reflect the successful processing of a method.
public CauseProcessingCompleted ( ISystemContext context, uint causeId ) : void
context ISystemContext The context.
causeId uint The cause id.
리턴 void

CreateAuditEvent() 보호된 메소드

Creates an instance of an audit event.
protected CreateAuditEvent ( ISystemContext context, MethodState causeMethod, uint causeId ) : AuditUpdateStateEventState
context ISystemContext
causeMethod MethodState
causeId uint
리턴 AuditUpdateStateEventState

CreateTransitionEvent() 보호된 메소드

Creates an instance of an transition event.
protected CreateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId ) : TransitionEventState
context ISystemContext
transitionId uint
causeId uint
리턴 TransitionEventState

DoCause() 공개 메소드

Invokes the specified cause.
public DoCause ( ISystemContext context, MethodState causeMethod, uint causeId, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
causeMethod MethodState
causeId uint
inputArguments IList
outputArguments IList
리턴 ServiceResult

DoTransition() 공개 메소드

Causes the specified transition to occur.
public DoTransition ( ISystemContext context, uint transitionId, uint causeId, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
transitionId uint
causeId uint
inputArguments IList
outputArguments IList
리턴 ServiceResult

GetCurrentStateId() 보호된 메소드

Returns the current state of for the state machine.
protected GetCurrentStateId ( ) : uint
리턴 uint

GetNewStateForTransition() 보호된 메소드

Returns the new state for the specified transition. Returns 0 if the transition is not allowed.
protected GetNewStateForTransition ( ISystemContext context, uint transitionId ) : uint
context ISystemContext
transitionId uint
리턴 uint

GetTransitionForCause() 보호된 메소드

Returns the transition for the cause given the current state.
protected GetTransitionForCause ( ISystemContext context, uint causeId ) : uint
context ISystemContext
causeId uint
리턴 uint

GetTransitionToState() 보호된 메소드

Returns the transition from the current state to the target state.
protected GetTransitionToState ( ISystemContext context, uint targetStateId ) : uint
context ISystemContext
targetStateId uint
리턴 uint

InvokeCallback() 보호된 메소드

Invokes the callback function if it has been specified.
protected InvokeCallback ( StateMachineTransitionHandler callback, ISystemContext context, StateMachineState machine, uint transitionId, uint causeId, IList inputArguments, IList outputArguments ) : ServiceResult
callback StateMachineTransitionHandler
context ISystemContext
machine StateMachineState
transitionId uint
causeId uint
inputArguments IList
outputArguments IList
리턴 ServiceResult

IsCausePermitted() 공개 메소드

Checks if the cause is permitted given the current state and returns the associated transition.
public IsCausePermitted ( ISystemContext context, uint causeId, bool checkUserAccessRights ) : bool
context ISystemContext
causeId uint
checkUserAccessRights bool
리턴 bool

OnAfterCreate() 보호된 메소드

Initializes the object as a collection of counters which change value on read.
protected OnAfterCreate ( ISystemContext context, NodeState node ) : void
context ISystemContext
node NodeState
리턴 void

SetState() 공개 메소드

Forces the machine into the specified state.
public SetState ( ISystemContext context, uint newState ) : void
context ISystemContext
newState uint
리턴 void

TransitionHasEffect() 보호된 메소드

Checks if the transition has an effect.
protected TransitionHasEffect ( ISystemContext context, uint transitionId ) : bool
context ISystemContext
transitionId uint
리턴 bool

UpdateAuditEvent() 보호된 메소드

Updates an audit event after the method is invoked.
protected UpdateAuditEvent ( ISystemContext context, MethodState causeMethod, uint causeId, AuditUpdateStateEventState e, ServiceResult result ) : void
context ISystemContext
causeMethod MethodState
causeId uint
e AuditUpdateStateEventState
result ServiceResult
리턴 void

UpdateStateVariable() 보호된 메소드

Updates the current state variable.
protected UpdateStateVariable ( ISystemContext context, uint stateId, FiniteStateVariableState variable ) : void
context ISystemContext
stateId uint
variable FiniteStateVariableState
리턴 void

UpdateTransitionEvent() 보호된 메소드

Updates a transition event after the transition is complete.
protected UpdateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId, TransitionEventState e ) : void
context ISystemContext
transitionId uint
causeId uint
e TransitionEventState
리턴 void

UpdateTransitionVariable() 보호된 메소드

Updates the last transition variable.
protected UpdateTransitionVariable ( ISystemContext context, uint transitionId, FiniteTransitionVariableState variable ) : void
context ISystemContext
transitionId uint
variable FiniteTransitionVariableState
리턴 void

프로퍼티 상세

OnAfterTransition 공개적으로 프로퍼티

Raises after a transition occurs. Errors are ignored.
public StateMachineTransitionHandler OnAfterTransition
리턴 StateMachineTransitionHandler

OnBeforeTransition 공개적으로 프로퍼티

Raised before a transition occurs.
public StateMachineTransitionHandler OnBeforeTransition
리턴 StateMachineTransitionHandler

OnCheckUserPermission 공개적으로 프로퍼티

Raised to check whether the current user is allowed to execute the command.
public StateMachineTransitionHandler OnCheckUserPermission
리턴 StateMachineTransitionHandler