C# Class MemoryBuffer.MemoryBufferState

Inheritance: Opc.Ua.BaseObjectState
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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
Résultat INodeBrowser

CreateBuffer() public méthode

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

CreateBuffer() public méthode

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

CreateDataChangeItem() public méthode

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
Résultat MemoryBufferMonitoredItem

DeleteItem() public méthode

Deletes the monitored item.
public DeleteItem ( MemoryBufferMonitoredItem monitoredItem ) : void
monitoredItem MemoryBufferMonitoredItem
Résultat void

DoScan() public méthode

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

FindChild() protected méthode

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
Résultat Opc.Ua.BaseInstanceState

GetChildren() public méthode

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

GetDefaultTypeDefinitionId() protected méthode

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
Résultat Opc.Ua.NodeId

GetValueAtOffset() public méthode

Returns the value at the specified offset.
public GetValueAtOffset ( int offset ) : Variant
offset int
Résultat Variant

Initialize() protected méthode

Initializes the instance.
protected Initialize ( ISystemContext context ) : void
context ISystemContext
Résultat void

InitializeMonitoring() public méthode

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

InitializeOptionalChildren() protected méthode

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

MemoryBufferState() public méthode

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

MemoryBufferState() public méthode

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

OnBufferChanged() public méthode

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

PublishTimer_Tick() public méthode

public PublishTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

ReadTagValue() public méthode

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
Résultat Opc.Ua.ServiceResult

ScanTimer_Tick() public méthode

public ScanTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

WriteTagValue() public méthode

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
Résultat Opc.Ua.ServiceResult