C# Класс Opc.Ua.AlarmConditionState

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
OnShelve AlarmConditionShelveEventHandler
OnTimedUnshelve AlarmConditionTimedUnshelveEventHandler

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

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

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

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

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

Метод Описание
OnTimerExpired ( object state ) : void

Called when timed shelve period expires.

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

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

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Checks whether the OneShotShelve method is executable.
protected IsOneShotShelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult
context ISystemContext
node NodeState
value bool
Результат ServiceResult

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

Checks whether the TimedShelve method is executable.
protected IsTimedShelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult
context ISystemContext
node NodeState
value bool
Результат ServiceResult

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

Checks whether the Unshelve method is executable.
protected IsUnshelveExecutable ( ISystemContext context, NodeState node, bool &value ) : ServiceResult
context ISystemContext
node NodeState
value bool
Результат ServiceResult

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

Called after a node is created.
protected OnAfterCreate ( ISystemContext context, NodeState node ) : void
context ISystemContext
node NodeState
Результат void

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

Handles the OneShotShelve method.
protected OnOneShotShelve ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
method MethodState
inputArguments IList
outputArguments IList
Результат ServiceResult

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

Checks whether the OneShotShelve method is executable.
protected OnReadUnshelveTime ( ISystemContext context, NodeState node, object &value ) : ServiceResult
context ISystemContext
node NodeState
value object
Результат ServiceResult

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

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

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

Handles the Unshelve method.
protected OnUnshelve ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
method MethodState
inputArguments IList
outputArguments IList
Результат ServiceResult

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

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

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

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

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

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

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

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

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

Updates the effective state for the condition.
protected UpdateEffectiveState ( ISystemContext context ) : void
context ISystemContext The context.
Результат void

Описание свойств

OnShelve публичное свойство

Raised when the alarm is shelved.
Return code can be used to cancel the operation.
public AlarmConditionShelveEventHandler OnShelve
Результат AlarmConditionShelveEventHandler

OnTimedUnshelve публичное свойство

Raised when the timed shelving period expires.
public AlarmConditionTimedUnshelveEventHandler OnTimedUnshelve
Результат AlarmConditionTimedUnshelveEventHandler