C# Class Opc.Ua.AlarmConditionState

ファイルを表示 Open project: OPCFoundation/Misc-Tools Class Usage Examples

Public Properties

Property Type Description
OnShelve AlarmConditionShelveEventHandler
OnTimedUnshelve AlarmConditionTimedUnshelveEventHandler

Public Methods

Method Description
SetActiveEffectiveSubState ( ISystemContext context, Opc.Ua.LocalizedText displayName, System.DateTime transitionTime ) : void

Called when one or more sub-states change state.

SetActiveState ( ISystemContext context, bool active ) : void

Sets the active state of the condition.

SetShelvingState ( ISystemContext context, bool shelved, bool oneShot, double shelvingTime ) : void

Sets the shelving state of the condition.

SetSuppressedState ( ISystemContext context, bool suppressed ) : void

Sets the suppressed state of the condition.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

IsOneShotShelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult

Checks whether the OneShotShelve method is executable.

IsTimedShelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult

Checks whether the TimedShelve method is executable.

IsUnshelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult

Checks whether the Unshelve method is executable.

OnAfterCreate ( ISystemContext context, NodeState node ) : void

Called after a node is created.

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

Handles the OneShotShelve method.

OnReadUnshelveTime ( ISystemContext context, NodeState node, object &value ) : ServiceResult

Checks whether the OneShotShelve method is executable.

OnTimedShelve ( ISystemContext context, MethodState method, Opc.Ua.NodeId objectId, double shelvingTime ) : ServiceResult

Handles the TimedShelve method.

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

Handles the Unshelve method.

UpdateEffectiveState ( ISystemContext context ) : void

Updates the effective state for the condition.

Private Methods

Method Description
OnTimerExpired ( object state ) : void

Called when timed shelve period expires.

Method Details

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

IsOneShotShelveExecutable() protected method

Checks whether the OneShotShelve method is executable.
protected IsOneShotShelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult
context ISystemContext
node NodeState
value bool
return ServiceResult

IsTimedShelveExecutable() protected method

Checks whether the TimedShelve method is executable.
protected IsTimedShelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult
context ISystemContext
node NodeState
value bool
return ServiceResult

IsUnshelveExecutable() protected method

Checks whether the Unshelve method is executable.
protected IsUnshelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult
context ISystemContext
node NodeState
value bool
return ServiceResult

OnAfterCreate() protected method

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

OnOneShotShelve() protected method

Handles the OneShotShelve method.
protected OnOneShotShelve ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
method MethodState
inputArguments IList
outputArguments IList
return ServiceResult

OnReadUnshelveTime() protected method

Checks whether the OneShotShelve method is executable.
protected OnReadUnshelveTime ( ISystemContext context, NodeState node, object &value ) : ServiceResult
context ISystemContext
node NodeState
value object
return ServiceResult

OnTimedShelve() protected method

Handles the TimedShelve method.
protected OnTimedShelve ( ISystemContext context, MethodState method, Opc.Ua.NodeId objectId, double shelvingTime ) : ServiceResult
context ISystemContext
method MethodState
objectId Opc.Ua.NodeId
shelvingTime double
return ServiceResult

OnUnshelve() protected method

Handles the Unshelve method.
protected OnUnshelve ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
method MethodState
inputArguments IList
outputArguments IList
return ServiceResult

SetActiveEffectiveSubState() public method

Called when one or more sub-states change state.
public SetActiveEffectiveSubState ( 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.
return void

SetActiveState() public method

Sets the active state of the condition.
public SetActiveState ( ISystemContext context, bool active ) : void
context ISystemContext The system context.
active bool if set to true the condition is active.
return void

SetShelvingState() public method

Sets the shelving state of the condition.
public SetShelvingState ( ISystemContext context, bool shelved, bool oneShot, double shelvingTime ) : void
context ISystemContext The shelving context.
shelved bool if set to true shelved.
oneShot bool if set to true for a one shot shelve..
shelvingTime double The duration of a timed shelve.
return void

SetSuppressedState() public method

Sets the suppressed state of the condition.
public SetSuppressedState ( ISystemContext context, bool suppressed ) : void
context ISystemContext The context.
suppressed bool if set to true the condition is suppressed.
return void

UpdateEffectiveState() protected method

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

Property Details

OnShelve public_oe property

Raised when the alarm is shelved.
Return code can be used to cancel the operation.
public AlarmConditionShelveEventHandler OnShelve
return AlarmConditionShelveEventHandler

OnTimedUnshelve public_oe property

Raised when the timed shelving period expires.
public AlarmConditionTimedUnshelveEventHandler OnTimedUnshelve
return AlarmConditionTimedUnshelveEventHandler