C# Class Quickstarts.AlarmConditionServer.UnderlyingSystemSource

This class simulates a source in the system.
Mostra file Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Properties

Property Type Description
OnAlarmChanged AlarmChangedEventHandler

Public Methods

Method Description
AcknowledgeAlarm ( string alarmName, uint recordNumber, Opc.Ua.LocalizedText comment, string userName ) : void

Acknowledges an alarm.

CommentAlarm ( string alarmName, uint recordNumber, Opc.Ua.LocalizedText comment, string userName ) : void

Adds a comment to an alarm.

ConfirmAlarm ( string alarmName, uint recordNumber, Opc.Ua.LocalizedText comment, string userName ) : void

Confirms an alarm.

CreateAlarm ( string alarmName, string alarmType ) : void

Creates a new active alarm for the source.

DoSimulation ( long counter, int index ) : void

Simulates a source by updating the state of the alarms belonging to the condition.

EnableAlarm ( string alarmName, bool enabling ) : void

Enables or disables the alarm.

Refresh ( ) : void

Reports the current state of all conditions.

SetOfflineState ( bool offline ) : void

Sets the state of the source (surpresses any active alarms).

UnderlyingSystemSource ( ) : System

Initializes a new instance of the UnderlyingSystemSource class.

Private Methods

Method Description
FindAlarm ( string alarmName, uint recordNumber ) : UnderlyingSystemAlarm

Finds the alarm identified by the name.

ReportAlarmChange ( UnderlyingSystemAlarm alarm ) : void

Reports a change to an alarm record.

UpdateAlarm ( UnderlyingSystemAlarm alarm, long counter, int index, List snapshots ) : void

Updates the state of an alarm.

Method Details

AcknowledgeAlarm() public method

Acknowledges an alarm.
public AcknowledgeAlarm ( string alarmName, uint recordNumber, Opc.Ua.LocalizedText comment, string userName ) : void
alarmName string Name of the alarm.
recordNumber uint The record number.
comment Opc.Ua.LocalizedText The comment.
userName string Name of the user.
return void

CommentAlarm() public method

Adds a comment to an alarm.
public CommentAlarm ( string alarmName, uint recordNumber, Opc.Ua.LocalizedText comment, string userName ) : void
alarmName string Name of the alarm.
recordNumber uint The record number.
comment Opc.Ua.LocalizedText The comment.
userName string Name of the user.
return void

ConfirmAlarm() public method

Confirms an alarm.
public ConfirmAlarm ( string alarmName, uint recordNumber, Opc.Ua.LocalizedText comment, string userName ) : void
alarmName string Name of the alarm.
recordNumber uint The record number.
comment Opc.Ua.LocalizedText The comment.
userName string Name of the user.
return void

CreateAlarm() public method

Creates a new active alarm for the source.
public CreateAlarm ( string alarmName, string alarmType ) : void
alarmName string Name of the alarm.
alarmType string Type of the alarm.
return void

DoSimulation() public method

Simulates a source by updating the state of the alarms belonging to the condition.
public DoSimulation ( long counter, int index ) : void
counter long The number of simulation cycles that have elapsed.
index int The index of the source within the system.
return void

EnableAlarm() public method

Enables or disables the alarm.
public EnableAlarm ( string alarmName, bool enabling ) : void
alarmName string Name of the alarm.
enabling bool if set to true the alarm is enabled.
return void

Refresh() public method

Reports the current state of all conditions.
public Refresh ( ) : void
return void

SetOfflineState() public method

Sets the state of the source (surpresses any active alarms).
public SetOfflineState ( bool offline ) : void
offline bool if set to true the source is offline.
return void

UnderlyingSystemSource() public method

Initializes a new instance of the UnderlyingSystemSource class.
public UnderlyingSystemSource ( ) : System
return System

Property Details

OnAlarmChanged public_oe property

Used to receive events when the state of an alarm changed.
public AlarmChangedEventHandler OnAlarmChanged
return AlarmChangedEventHandler