C# Класс Quickstarts.AlarmConditionServer.SourceState

Maps an alarm source to a UA object node.
Наследование: Opc.Ua.BaseObjectState
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ConditionRefresh ( ISystemContext context, List events, bool includeChildren ) : void

Returns the last event produced for any conditions belonging to the node or its chilren.

SourceState ( QuickstartNodeManager nodeManager, Opc.Ua.NodeId nodeId, string sourcePath ) : System

Initializes the area.

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

Метод Описание
CreateAlarm ( UnderlyingSystemAlarm alarm, Opc.Ua.NodeId branchId ) : AlarmConditionState

Creates a new alarm for the source.

CreateDialog ( string dialogName ) : DialogConditionState

Creates a new dialog condition

FindAlarmByEventId ( byte eventId ) : AlarmConditionState

Finds the alarm by event id.

GetRecordNumber ( AlarmConditionState alarm ) : uint

Gets the record number associated with tge alarm.

GetUserName ( ISystemContext context ) : string

Gets the user name associated with the context.

OnAcknowledge ( ISystemContext context, ConditionState condition, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult

Called when the alarm is acknowledged.

OnAddComment ( ISystemContext context, ConditionState condition, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult

Called when the alarm has a comment added.

OnAlarmChanged ( UnderlyingSystemAlarm alarm ) : void

Called when the state of an alarm for the source has changed.

OnConfirm ( ISystemContext context, ConditionState condition, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult

Called when the alarm is confirmed.

OnEnableDisableAlarm ( ISystemContext context, ConditionState condition, bool enabling ) : ServiceResult

Called when the alarm is enabled or disabled.

OnRespond ( ISystemContext context, DialogConditionState dialog, int selectedResponse ) : ServiceResult

Called when the dialog receives a response.

OnShelve ( ISystemContext context, AlarmConditionState alarm, bool shelving, bool oneShot, double shelvingTime ) : ServiceResult

Called when the alarm is shelved.

OnTimedUnshelve ( ISystemContext context, AlarmConditionState alarm ) : ServiceResult

Called when the alarm is shelved.

ReportChanges ( AlarmConditionState alarm ) : void

Reports the changes to the alarm.

UpdateAlarm ( AlarmConditionState node, UnderlyingSystemAlarm alarm ) : void

Updates the alarm with a new state.

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

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

Returns the last event produced for any conditions belonging to the node or its chilren.
public ConditionRefresh ( ISystemContext context, List events, bool includeChildren ) : void
context ISystemContext The system context.
events List The list of condition events to return.
includeChildren bool Whether to recursively report events for the children.
Результат void

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

Initializes the area.
public SourceState ( QuickstartNodeManager nodeManager, Opc.Ua.NodeId nodeId, string sourcePath ) : System
nodeManager QuickstartNodeManager
nodeId Opc.Ua.NodeId
sourcePath string
Результат System