C# Class Quickstarts.DataAccessServer.BlockState

A object which maps a block to a UA object.
Inheritance: Opc.Ua.BaseObjectState
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
BlockState ( DataAccessServerNodeManager nodeManager, Opc.Ua.NodeId nodeId, UnderlyingSystemBlock block ) : System

Initializes a new instance of the BlockState class.

OnWriteTagValue ( ISystemContext context, NodeState node, object &value ) : ServiceResult

Used to receive notifications when the value attribute is read or written.

StartMonitoring ( ServerSystemContext context ) : void

Starts the monitoring the block.

StopMonitoring ( ServerSystemContext context ) : bool

Stop the monitoring the block.

Méthodes protégées

Méthode Description
PopulateBrowser ( ISystemContext context, NodeBrowser browser ) : void

Populates the browser with references that meet the criteria.

Private Methods

Méthode Description
CreateVariable ( ISystemContext context, UnderlyingSystemTag tag ) : BaseVariableState

Creates a variable from a tag.

OnTagsChanged ( IList tags ) : void

Called when one or more tags changes.

UpdateVariable ( ISystemContext context, UnderlyingSystemTag tag, BaseVariableState variable ) : void

Updates a variable from a tag.

Method Details

BlockState() public méthode

Initializes a new instance of the BlockState class.
public BlockState ( DataAccessServerNodeManager nodeManager, Opc.Ua.NodeId nodeId, UnderlyingSystemBlock block ) : System
nodeManager DataAccessServerNodeManager The context.
nodeId Opc.Ua.NodeId The node id.
block UnderlyingSystemBlock The block.
Résultat System

OnWriteTagValue() public méthode

Used to receive notifications when the value attribute is read or written.
public OnWriteTagValue ( ISystemContext context, NodeState node, object &value ) : ServiceResult
context ISystemContext
node NodeState
value object
Résultat Opc.Ua.ServiceResult

PopulateBrowser() protected méthode

Populates the browser with references that meet the criteria.
protected PopulateBrowser ( ISystemContext context, NodeBrowser browser ) : void
context ISystemContext The context for the system being accessed.
browser Opc.Ua.NodeBrowser The browser to populate.
Résultat void

StartMonitoring() public méthode

Starts the monitoring the block.
public StartMonitoring ( ServerSystemContext context ) : void
context Opc.Ua.Server.ServerSystemContext The context.
Résultat void

StopMonitoring() public méthode

Stop the monitoring the block.
public StopMonitoring ( ServerSystemContext context ) : bool
context Opc.Ua.Server.ServerSystemContext The context.
Résultat bool