C# Class Quickstarts.DataAccessServer.UnderlyingSystemBlock

This class simulates a block in the system.
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

CreateTag() public méthode

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.
Résultat void

DoSimulation() public méthode

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.
Résultat void

GetTags() public méthode

Returns a snapshot of the tags belonging to the block.
public GetTags ( ) : IList
Résultat IList

StartMonitoring() public méthode

Starts the monitoring.
public StartMonitoring ( TagsChangedEventHandler callback ) : void
callback TagsChangedEventHandler The callback to use when reporting changes.
Résultat void

StopMonitoring() public méthode

Stops monitoring.
public StopMonitoring ( ) : void
Résultat void

UnderlyingSystemBlock() public méthode

Initializes a new instance of the UnderlyingSystemBlock class.
public UnderlyingSystemBlock ( ) : System
Résultat System

WriteTagValue() public méthode

Writes the tag value.
public WriteTagValue ( string tagName, object value ) : uint
tagName string Name of the tag.
value object The value.
Résultat uint