C# 클래스 Quickstarts.AlarmConditionServer.UnderlyingSystemSource

This class simulates a source in the system.
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnAlarmChanged AlarmChangedEventHandler

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

AcknowledgeAlarm() 공개 메소드

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.
리턴 void

CommentAlarm() 공개 메소드

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.
리턴 void

ConfirmAlarm() 공개 메소드

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.
리턴 void

CreateAlarm() 공개 메소드

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.
리턴 void

DoSimulation() 공개 메소드

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.
리턴 void

EnableAlarm() 공개 메소드

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.
리턴 void

Refresh() 공개 메소드

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

SetOfflineState() 공개 메소드

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.
리턴 void

UnderlyingSystemSource() 공개 메소드

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

프로퍼티 상세

OnAlarmChanged 공개적으로 프로퍼티

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