C# Class Quickstarts.AlarmConditionServer.SourceState

Maps an alarm source to a UA object node.
Inheritance: Opc.Ua.BaseObjectState
Datei anzeigen Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

ConditionRefresh() public method

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.
return void

SourceState() public method

Initializes the area.
public SourceState ( QuickstartNodeManager nodeManager, Opc.Ua.NodeId nodeId, string sourcePath ) : System
nodeManager QuickstartNodeManager
nodeId Opc.Ua.NodeId
sourcePath string
return System