C# 클래스 Quickstarts.DataAccessServer.UnderlyingSystemBlock

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

공개 메소드들

메소드 설명
CreateTag ( string tagName, UnderlyingSystemDataType dataType, UnderlyingSystemTagType tagType, string engineeringUnits, bool writeable ) : void

Creates the tag.

DoSimulation ( long counter, int index, Opc generator ) : void

Simulates a block by updating the state of the tags belonging to the condition.

GetTags ( ) : IList

Returns a snapshot of the tags belonging to the block.

StartMonitoring ( TagsChangedEventHandler callback ) : void

Starts the monitoring.

StopMonitoring ( ) : void

Stops monitoring.

UnderlyingSystemBlock ( ) : System

Initializes a new instance of the UnderlyingSystemBlock class.

WriteTagValue ( string tagName, object value ) : uint

Writes the tag value.

비공개 메소드들

메소드 설명
FindTag ( string tagName ) : UnderlyingSystemTag

Finds the tag identified by the name.

UpdateTagMetadata ( UnderlyingSystemTag tag, Opc generator ) : bool

Updates the metadata for a tag.

UpdateTagValue ( UnderlyingSystemTag tag, Opc generator ) : bool

Updates the value of an tag.

메소드 상세

CreateTag() 공개 메소드

Creates the tag.
public CreateTag ( string tagName, UnderlyingSystemDataType dataType, UnderlyingSystemTagType tagType, string engineeringUnits, bool writeable ) : void
tagName string Name of the tag.
dataType UnderlyingSystemDataType Type of the data.
tagType UnderlyingSystemTagType Type of the tag.
engineeringUnits string The engineering units.
writeable bool if set to true the tag is writeable.
리턴 void

DoSimulation() 공개 메소드

Simulates a block by updating the state of the tags belonging to the condition.
public DoSimulation ( long counter, int index, Opc generator ) : void
counter long The number of simulation cycles that have elapsed.
index int The index of the block within the system.
generator Opc An object which generates random data.
리턴 void

GetTags() 공개 메소드

Returns a snapshot of the tags belonging to the block.
public GetTags ( ) : IList
리턴 IList

StartMonitoring() 공개 메소드

Starts the monitoring.
public StartMonitoring ( TagsChangedEventHandler callback ) : void
callback TagsChangedEventHandler The callback to use when reporting changes.
리턴 void

StopMonitoring() 공개 메소드

Stops monitoring.
public StopMonitoring ( ) : void
리턴 void

UnderlyingSystemBlock() 공개 메소드

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

WriteTagValue() 공개 메소드

Writes the tag value.
public WriteTagValue ( string tagName, object value ) : uint
tagName string Name of the tag.
value object The value.
리턴 uint