C# Class MemoryBuffer.MemoryBufferState

Inheritance: Opc.Ua.BaseObjectState
Show file Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
CreateBrowser ( ISystemContext context, ViewDescription view, Opc.Ua.NodeId referenceType, bool includeSubtypes, BrowseDirection browseDirection, Opc.Ua.QualifiedName browseName, IEnumerable additionalReferences, bool internalOnly ) : INodeBrowser

Creates an object which can browser the tags in the buffer.

CreateBuffer ( BuiltInType elementType, int noOfElements ) : void

Initializes the buffer with enough space to hold the specified number of elements.

CreateBuffer ( string elementName, int noOfElements ) : void

Initializes the buffer with enough space to hold the specified number of elements.

CreateDataChangeItem ( ServerSystemContext context, MemoryTagState tag, uint subscriptionId, uint monitoredItemId, ReadValueId itemToMonitor, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, double samplingInterval ) : MemoryBufferMonitoredItem

Creates a new data change monitored item.

DeleteItem ( MemoryBufferMonitoredItem monitoredItem ) : void

Deletes the monitored item.

DoScan ( object state ) : void

Scans the buffer and updates every other element.

GetChildren ( ISystemContext context, IList children ) : void

Populates a list with the children that belong to the node.

GetValueAtOffset ( int offset ) : Variant

Returns the value at the specified offset.

InitializeMonitoring ( IServerInternal server, INodeManager nodeManager ) : void

Initializes the instance with the context for the node being monitored.

MemoryBufferState ( ISystemContext context, MemoryBufferInstance configuration ) : System

Initializes the buffer from the configuration.

MemoryBufferState ( NodeState parent ) : System

Initializes the type with its default attribute values.

OnBufferChanged ( int offset ) : void

Handles change events raised by the node.

PublishTimer_Tick ( object sender, EventArgs e ) : void
ReadTagValue ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult

Handles the read operation for an invidual tag.

ScanTimer_Tick ( object sender, EventArgs e ) : void
WriteTagValue ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult

Handles a write operation for an individual tag.

Protected Methods

Method Description
FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement ) : BaseInstanceState

Finds the child with the specified browse name.

GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId

Returns the id of the default type definition node for the instance.

Initialize ( ISystemContext context ) : void

Initializes the instance.

InitializeOptionalChildren ( ISystemContext context ) : void

Initializes the any option children defined for the instance.

Method Details

CreateBrowser() public method

Creates an object which can browser the tags in the buffer.
public CreateBrowser ( ISystemContext context, ViewDescription view, Opc.Ua.NodeId referenceType, bool includeSubtypes, BrowseDirection browseDirection, Opc.Ua.QualifiedName browseName, IEnumerable additionalReferences, bool internalOnly ) : INodeBrowser
context ISystemContext
view Opc.Ua.ViewDescription
referenceType Opc.Ua.NodeId
includeSubtypes bool
browseDirection BrowseDirection
browseName Opc.Ua.QualifiedName
additionalReferences IEnumerable
internalOnly bool
return INodeBrowser

CreateBuffer() public method

Initializes the buffer with enough space to hold the specified number of elements.
public CreateBuffer ( BuiltInType elementType, int noOfElements ) : void
elementType BuiltInType The type of element.
noOfElements int The number of elements.
return void

CreateBuffer() public method

Initializes the buffer with enough space to hold the specified number of elements.
public CreateBuffer ( string elementName, int noOfElements ) : void
elementName string The type of element.
noOfElements int The number of elements.
return void

CreateDataChangeItem() public method

Creates a new data change monitored item.
public CreateDataChangeItem ( ServerSystemContext context, MemoryTagState tag, uint subscriptionId, uint monitoredItemId, ReadValueId itemToMonitor, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, double samplingInterval ) : MemoryBufferMonitoredItem
context ServerSystemContext
tag MemoryTagState
subscriptionId uint
monitoredItemId uint
itemToMonitor Opc.Ua.ReadValueId
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
monitoringMode MonitoringMode
clientHandle uint
samplingInterval double
return MemoryBufferMonitoredItem

DeleteItem() public method

Deletes the monitored item.
public DeleteItem ( MemoryBufferMonitoredItem monitoredItem ) : void
monitoredItem MemoryBufferMonitoredItem
return void

DoScan() public method

Scans the buffer and updates every other element.
public DoScan ( object state ) : void
state object
return void

FindChild() protected method

Finds the child with the specified browse name.
protected FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement ) : BaseInstanceState
context ISystemContext
browseName Opc.Ua.QualifiedName
createOrReplace bool
replacement Opc.Ua.BaseInstanceState
return Opc.Ua.BaseInstanceState

GetChildren() public method

Populates a list with the children that belong to the node.
public GetChildren ( ISystemContext context, IList children ) : void
context ISystemContext The context for the system being accessed.
children IList The list of children to populate.
return void

GetDefaultTypeDefinitionId() protected method

Returns the id of the default type definition node for the instance.
protected GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId
namespaceUris Opc.Ua.NamespaceTable
return Opc.Ua.NodeId

GetValueAtOffset() public method

Returns the value at the specified offset.
public GetValueAtOffset ( int offset ) : Variant
offset int
return Variant

Initialize() protected method

Initializes the instance.
protected Initialize ( ISystemContext context ) : void
context ISystemContext
return void

InitializeMonitoring() public method

Initializes the instance with the context for the node being monitored.
public InitializeMonitoring ( IServerInternal server, INodeManager nodeManager ) : void
server IServerInternal
nodeManager INodeManager
return void

InitializeOptionalChildren() protected method

Initializes the any option children defined for the instance.
protected InitializeOptionalChildren ( ISystemContext context ) : void
context ISystemContext
return void

MemoryBufferState() public method

Initializes the buffer from the configuration.
public MemoryBufferState ( ISystemContext context, MemoryBufferInstance configuration ) : System
context ISystemContext
configuration MemoryBufferInstance
return System

MemoryBufferState() public method

Initializes the type with its default attribute values.
public MemoryBufferState ( NodeState parent ) : System
parent NodeState
return System

OnBufferChanged() public method

Handles change events raised by the node.
public OnBufferChanged ( int offset ) : void
offset int
return void

PublishTimer_Tick() public method

public PublishTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ReadTagValue() public method

Handles the read operation for an invidual tag.
public ReadTagValue ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult
context ISystemContext
node NodeState
indexRange Opc.Ua.NumericRange
dataEncoding Opc.Ua.QualifiedName
value object
statusCode Opc.Ua.StatusCode
timestamp System.DateTime
return Opc.Ua.ServiceResult

ScanTimer_Tick() public method

public ScanTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

WriteTagValue() public method

Handles a write operation for an individual tag.
public WriteTagValue ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult
context ISystemContext
node NodeState
indexRange Opc.Ua.NumericRange
dataEncoding Opc.Ua.QualifiedName
value object
statusCode Opc.Ua.StatusCode
timestamp System.DateTime
return Opc.Ua.ServiceResult