C# 클래스 MemoryBuffer.MemoryBufferState

상속: Opc.Ua.BaseObjectState
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
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