C# Class Quickstarts.DataAccessServer.BlockState

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

Public Methods

Method 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.

Protected Methods

Method Description
PopulateBrowser ( ISystemContext context, NodeBrowser browser ) : void

Populates the browser with references that meet the criteria.

Private Methods

Method 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 method

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.
return System

OnWriteTagValue() public method

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
return Opc.Ua.ServiceResult

PopulateBrowser() protected method

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.
return void

StartMonitoring() public method

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

StopMonitoring() public method

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