C# 클래스 Opc.Ua.ConditionState

파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnAddComment ConditionAddCommentEventHandler
OnEnableDisable ConditionEnableEventHandler

공개 메소드들

메소드 설명
ConditionRefresh ( ISystemContext context, List events, bool includeChildren ) : void

Handles a condition refresh.

SetComment ( ISystemContext context, Opc.Ua.LocalizedText comment, string clientUserId ) : void

Updates the condition after adding a comment.

SetEffectiveSubState ( ISystemContext context, Opc.Ua.LocalizedText displayName, System.DateTime transitionTime ) : void

Called when one or more sub-states change state.

SetEnableState ( ISystemContext context, bool enabled ) : void

Sets the enable state for the condition without raising events.

This method ensures all related variables are set correctly.

SetSeverity ( ISystemContext context, EventSeverity severity ) : void

Sets the severity for the condition without raising events.

This method ensures all related variables are set correctly.

보호된 메소드들

메소드 설명
GetCurrentUserId ( ISystemContext context ) : string

Gets the current user id from the system context.

OnAddCommentCalled ( ISystemContext context, MethodState method, Opc.Ua.NodeId objectId, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult

Called when the add comment method is called.

OnAfterCreate ( ISystemContext context, NodeState node ) : void

Called after a node is created.

OnDisableCalled ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult

Handles the Disable method.

OnEnableCalled ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult

Handles the Enable method.

ProcessBeforeAddComment ( ISystemContext context, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult

Does any processing before adding a comment to a condition.

ProcessBeforeEnableDisable ( ISystemContext context, bool enabling ) : ServiceResult

Does any processing before a condition is enabled or disabled.

ReportStateChange ( ISystemContext context, bool ignoreDisabledState ) : void

Reports the state change for the condition.

UpdateEffectiveState ( ISystemContext context ) : void

Updates the effective state for the condition.

UpdateStateAfterDisable ( ISystemContext context ) : void

Updates the condition state after disabling.

UpdateStateAfterEnable ( ISystemContext context ) : void

Updates the condition state after enabling.

메소드 상세

ConditionRefresh() 공개 메소드

Handles a condition refresh.
public ConditionRefresh ( ISystemContext context, List events, bool includeChildren ) : void
context ISystemContext
events List
includeChildren bool
리턴 void

GetCurrentUserId() 보호된 메소드

Gets the current user id from the system context.
protected GetCurrentUserId ( ISystemContext context ) : string
context ISystemContext The system context.
리턴 string

OnAddCommentCalled() 보호된 메소드

Called when the add comment method is called.
protected OnAddCommentCalled ( ISystemContext context, MethodState method, Opc.Ua.NodeId objectId, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult
context ISystemContext The system context.
method MethodState The method being called.
objectId Opc.Ua.NodeId The id of the object.
eventId byte The identifier for the event which is the target for the comment.
comment Opc.Ua.LocalizedText The comment.
리턴 ServiceResult

OnAfterCreate() 보호된 메소드

Called after a node is created.
protected OnAfterCreate ( ISystemContext context, NodeState node ) : void
context ISystemContext
node NodeState
리턴 void

OnDisableCalled() 보호된 메소드

Handles the Disable method.
protected OnDisableCalled ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
method MethodState
inputArguments IList
outputArguments IList
리턴 ServiceResult

OnEnableCalled() 보호된 메소드

Handles the Enable method.
protected OnEnableCalled ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
method MethodState
inputArguments IList
outputArguments IList
리턴 ServiceResult

ProcessBeforeAddComment() 보호된 메소드

Does any processing before adding a comment to a condition.
protected ProcessBeforeAddComment ( ISystemContext context, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult
context ISystemContext The system context.
eventId byte The identifier for the event which is the target for the comment.
comment Opc.Ua.LocalizedText The comment.
리턴 ServiceResult

ProcessBeforeEnableDisable() 보호된 메소드

Does any processing before a condition is enabled or disabled.
protected ProcessBeforeEnableDisable ( ISystemContext context, bool enabling ) : ServiceResult
context ISystemContext The system context.
enabling bool True is the condition is being enabled.
리턴 ServiceResult

ReportStateChange() 보호된 메소드

Reports the state change for the condition.
protected ReportStateChange ( ISystemContext context, bool ignoreDisabledState ) : void
context ISystemContext The context.
ignoreDisabledState bool if set to true the event is reported event if the condition is in the disabled state.
리턴 void

SetComment() 공개 메소드

Updates the condition after adding a comment.
public SetComment ( ISystemContext context, Opc.Ua.LocalizedText comment, string clientUserId ) : void
context ISystemContext The system context.
comment Opc.Ua.LocalizedText The comment.
clientUserId string The user that added the comment.
리턴 void

SetEffectiveSubState() 공개 메소드

Called when one or more sub-states change state.
public SetEffectiveSubState ( ISystemContext context, Opc.Ua.LocalizedText displayName, System.DateTime transitionTime ) : void
context ISystemContext The context.
displayName Opc.Ua.LocalizedText The display name for the effective state.
transitionTime System.DateTime The transition time.
리턴 void

SetEnableState() 공개 메소드

Sets the enable state for the condition without raising events.
This method ensures all related variables are set correctly.
public SetEnableState ( ISystemContext context, bool enabled ) : void
context ISystemContext The system context.
enabled bool If true the condition is put into the Enabled state.
리턴 void

SetSeverity() 공개 메소드

Sets the severity for the condition without raising events.
This method ensures all related variables are set correctly.
public SetSeverity ( ISystemContext context, EventSeverity severity ) : void
context ISystemContext The system context.
severity EventSeverity The event severity.
리턴 void

UpdateEffectiveState() 보호된 메소드

Updates the effective state for the condition.
protected UpdateEffectiveState ( ISystemContext context ) : void
context ISystemContext The context.
리턴 void

UpdateStateAfterDisable() 보호된 메소드

Updates the condition state after disabling.
protected UpdateStateAfterDisable ( ISystemContext context ) : void
context ISystemContext The system context.
리턴 void

UpdateStateAfterEnable() 보호된 메소드

Updates the condition state after enabling.
protected UpdateStateAfterEnable ( ISystemContext context ) : void
context ISystemContext The system context.
리턴 void

프로퍼티 상세

OnAddComment 공개적으로 프로퍼티

Raised when a comment is added to the condition.
Return code can be used to cancel the operation.
public ConditionAddCommentEventHandler OnAddComment
리턴 ConditionAddCommentEventHandler

OnEnableDisable 공개적으로 프로퍼티

Raised when the condition is enabled or disabled.
Return code can be used to cancel the operation.
public ConditionEnableEventHandler OnEnableDisable
리턴 ConditionEnableEventHandler