C# Класс MemoryBuffer.MemoryBufferState

Наследование: Opc.Ua.BaseObjectState
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

CreateBrowser() публичный Метод

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
Результат INodeBrowser

CreateBuffer() публичный Метод

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.
Результат void

CreateBuffer() публичный Метод

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.
Результат void

CreateDataChangeItem() публичный Метод

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
Результат MemoryBufferMonitoredItem

DeleteItem() публичный Метод

Deletes the monitored item.
public DeleteItem ( MemoryBufferMonitoredItem monitoredItem ) : void
monitoredItem MemoryBufferMonitoredItem
Результат void

DoScan() публичный Метод

Scans the buffer and updates every other element.
public DoScan ( object state ) : void
state object
Результат void

FindChild() защищенный Метод

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
Результат Opc.Ua.BaseInstanceState

GetChildren() публичный Метод

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.
Результат void

GetDefaultTypeDefinitionId() защищенный Метод

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
Результат Opc.Ua.NodeId

GetValueAtOffset() публичный Метод

Returns the value at the specified offset.
public GetValueAtOffset ( int offset ) : Variant
offset int
Результат Variant

Initialize() защищенный Метод

Initializes the instance.
protected Initialize ( ISystemContext context ) : void
context ISystemContext
Результат void

InitializeMonitoring() публичный Метод

Initializes the instance with the context for the node being monitored.
public InitializeMonitoring ( IServerInternal server, INodeManager nodeManager ) : void
server IServerInternal
nodeManager INodeManager
Результат void

InitializeOptionalChildren() защищенный Метод

Initializes the any option children defined for the instance.
protected InitializeOptionalChildren ( ISystemContext context ) : void
context ISystemContext
Результат void

MemoryBufferState() публичный Метод

Initializes the buffer from the configuration.
public MemoryBufferState ( ISystemContext context, MemoryBufferInstance configuration ) : System
context ISystemContext
configuration MemoryBufferInstance
Результат System

MemoryBufferState() публичный Метод

Initializes the type with its default attribute values.
public MemoryBufferState ( NodeState parent ) : System
parent NodeState
Результат System

OnBufferChanged() публичный Метод

Handles change events raised by the node.
public OnBufferChanged ( int offset ) : void
offset int
Результат void

PublishTimer_Tick() публичный Метод

public PublishTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

ReadTagValue() публичный Метод

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
Результат Opc.Ua.ServiceResult

ScanTimer_Tick() публичный Метод

public ScanTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

WriteTagValue() публичный Метод

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
Результат Opc.Ua.ServiceResult