C# 클래스 Quickstarts.HistoricalAccessServer.HistoricalAccessServerNodeManager

A node manager for a server that exposes several variables.
상속: Opc.Ua.Server.CustomNodeManager2
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
CreateAddressSpace ( IDictionary externalReferences ) : void

Does any initialization required before the address space can be used.

DeleteAddressSpace ( ) : void

Frees any resources allocated for the address space.

HistoricalAccessServerNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : System

Initializes the node manager.

New ( ISystemContext context, NodeState node ) : Opc.Ua.NodeId

Creates the NodeId for the specified node.

This method is called by the NodeState.Create() method which initializes a Node from the type model. During initialization a number of child nodes are created and need to have NodeIds assigned to them. This implementation constructs NodeIds by constructing strings. Other implementations could assign unique integers or Guids and save the new Node in a dictionary for later lookup.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

GetManagerHandle ( ServerSystemContext context, Opc.Ua.NodeId nodeId, NodeState>.IDictionary cache ) : NodeHandle

Returns a unique handle for the node.

HistoryDeleteAtTime ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Deletes the data history for one or more nodes.

HistoryDeleteRawModified ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Deletes the data history for one or more nodes.

HistoryReadAtTime ( ServerSystemContext context, ReadAtTimeDetails details, TimestampsToReturn timestampsToReturn, IList nodesToRead, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Reads the data at the specified time for an item.

HistoryReadProcessed ( ServerSystemContext context, ReadProcessedDetails details, TimestampsToReturn timestampsToReturn, IList nodesToRead, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Reads the processed data for an item.

HistoryReadRawModified ( ServerSystemContext context, ReadRawModifiedDetails details, TimestampsToReturn timestampsToReturn, IList nodesToRead, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Reads the raw data for an item.

HistoryReleaseContinuationPoints ( ServerSystemContext context, IList nodesToRead, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Releases the history continuation point.

HistoryUpdateData ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Updates the data history for one or more nodes.

HistoryUpdateStructureData ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void

Updates the data history for one or more nodes.

OnMonitoredItemCreated ( ServerSystemContext context, NodeHandle handle, MonitoredItem monitoredItem ) : void

Called after creating a MonitoredItem.

OnMonitoredItemDeleted ( ServerSystemContext context, NodeHandle handle, MonitoredItem monitoredItem ) : void

Called after deleting a MonitoredItem.

Read ( ServerSystemContext context, IList nodesToRead, IList values, IList errors, List nodesToValidate, NodeState>.IDictionary cache ) : void

Validates the nodes and reads the values from the underlying source.

ReadInitialValue ( ServerSystemContext context, NodeHandle handle, MonitoredItem monitoredItem ) : void

Reads the initial value for a monitored item.

ReviseAggregateFilter ( ServerSystemContext context, NodeHandle handle, double samplingInterval, uint queueSize, ServerAggregateFilter filterToUse ) : Opc.Ua.StatusCode

Revises an aggregate filter (may require knowledge of the variable being used).

ValidateNode ( ServerSystemContext context, NodeHandle handle, NodeState>.IDictionary cache ) : NodeState

Verifies that the specified node exists.

비공개 메소드들

메소드 설명
CreateFolderFromResources ( NodeState root, string folderName ) : void

Creates items from embedded resources.

CreateHistoryReadRequest ( ServerSystemContext context, ReadAtTimeDetails details, NodeHandle handle, HistoryReadValueId nodeToRead ) : HistoryReadRequest

Creates a new history request.

CreateHistoryReadRequest ( ServerSystemContext context, ReadProcessedDetails details, NodeHandle handle, HistoryReadValueId nodeToRead, Opc.Ua.NodeId aggregateId ) : HistoryReadRequest

Creates a new history request.

CreateHistoryReadRequest ( ServerSystemContext context, ReadRawModifiedDetails details, NodeHandle handle, HistoryReadValueId nodeToRead ) : HistoryReadRequest

Creates a new history request.

DoSimulation ( object state ) : void

Runs the simulation.

LoadContinuationPoint ( ServerSystemContext context, byte continuationPoint ) : HistoryReadRequest

Loads a history continuation point.

QueueProcessedValues ( ServerSystemContext context, IAggregateCalculator calculator, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, bool applyIndexRangeOrEncoding, bool returnPartial, LinkedList values ) : void

Extracts and queues any processed values.

Reload ( ServerSystemContext context, NodeHandle handle ) : ArchiveItemState

Loads the archive item state from the underlying source.

ReviseAggregateConfiguration ( ServerSystemContext context, ArchiveItemState item, AggregateConfiguration configurationToUse ) : void

Revises the aggregate configuration.

RowToDataValue ( ServerSystemContext context, HistoryReadValueId nodeToRead, DataRowView row, bool applyIndexRangeOrEncoding ) : Opc.Ua.DataValue

Creates a new history request.

SaveContinuationPoint ( ServerSystemContext context, HistoryReadRequest request ) : byte[]

Saves a history continuation point.

메소드 상세

CreateAddressSpace() 공개 메소드

Does any initialization required before the address space can be used.
public CreateAddressSpace ( IDictionary externalReferences ) : void
externalReferences IDictionary
리턴 void

DeleteAddressSpace() 공개 메소드

Frees any resources allocated for the address space.
public DeleteAddressSpace ( ) : void
리턴 void

Dispose() 보호된 메소드

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetManagerHandle() 보호된 메소드

Returns a unique handle for the node.
protected GetManagerHandle ( ServerSystemContext context, Opc.Ua.NodeId nodeId, NodeState>.IDictionary cache ) : NodeHandle
context Opc.Ua.Server.ServerSystemContext
nodeId Opc.Ua.NodeId
cache NodeState>.IDictionary
리턴 Opc.Ua.Server.NodeHandle

HistoricalAccessServerNodeManager() 공개 메소드

Initializes the node manager.
public HistoricalAccessServerNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : System
server IServerInternal
configuration ApplicationConfiguration
리턴 System

HistoryDeleteAtTime() 보호된 메소드

Deletes the data history for one or more nodes.
protected HistoryDeleteAtTime ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
nodesToUpdate IList
results IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

HistoryDeleteRawModified() 보호된 메소드

Deletes the data history for one or more nodes.
protected HistoryDeleteRawModified ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
nodesToUpdate IList
results IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

HistoryReadAtTime() 보호된 메소드

Reads the data at the specified time for an item.
protected HistoryReadAtTime ( ServerSystemContext context, ReadAtTimeDetails details, TimestampsToReturn timestampsToReturn, IList nodesToRead, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
details ReadAtTimeDetails
timestampsToReturn TimestampsToReturn
nodesToRead IList
results IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

HistoryReadProcessed() 보호된 메소드

Reads the processed data for an item.
protected HistoryReadProcessed ( ServerSystemContext context, ReadProcessedDetails details, TimestampsToReturn timestampsToReturn, IList nodesToRead, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
details ReadProcessedDetails
timestampsToReturn TimestampsToReturn
nodesToRead IList
results IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

HistoryReadRawModified() 보호된 메소드

Reads the raw data for an item.
protected HistoryReadRawModified ( ServerSystemContext context, ReadRawModifiedDetails details, TimestampsToReturn timestampsToReturn, IList nodesToRead, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
details ReadRawModifiedDetails
timestampsToReturn TimestampsToReturn
nodesToRead IList
results IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

HistoryReleaseContinuationPoints() 보호된 메소드

Releases the history continuation point.
protected HistoryReleaseContinuationPoints ( ServerSystemContext context, IList nodesToRead, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
nodesToRead IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

HistoryUpdateData() 보호된 메소드

Updates the data history for one or more nodes.
protected HistoryUpdateData ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
nodesToUpdate IList
results IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

HistoryUpdateStructureData() 보호된 메소드

Updates the data history for one or more nodes.
protected HistoryUpdateStructureData ( ServerSystemContext context, IList nodesToUpdate, IList results, IList errors, List nodesToProcess, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
nodesToUpdate IList
results IList
errors IList
nodesToProcess List
cache NodeState>.IDictionary
리턴 void

New() 공개 메소드

Creates the NodeId for the specified node.
This method is called by the NodeState.Create() method which initializes a Node from the type model. During initialization a number of child nodes are created and need to have NodeIds assigned to them. This implementation constructs NodeIds by constructing strings. Other implementations could assign unique integers or Guids and save the new Node in a dictionary for later lookup.
public New ( ISystemContext context, NodeState node ) : Opc.Ua.NodeId
context ISystemContext The context.
node NodeState The node.
리턴 Opc.Ua.NodeId

OnMonitoredItemCreated() 보호된 메소드

Called after creating a MonitoredItem.
protected OnMonitoredItemCreated ( ServerSystemContext context, NodeHandle handle, MonitoredItem monitoredItem ) : void
context Opc.Ua.Server.ServerSystemContext
handle Opc.Ua.Server.NodeHandle
monitoredItem Opc.Ua.Server.MonitoredItem
리턴 void

OnMonitoredItemDeleted() 보호된 메소드

Called after deleting a MonitoredItem.
protected OnMonitoredItemDeleted ( ServerSystemContext context, NodeHandle handle, MonitoredItem monitoredItem ) : void
context Opc.Ua.Server.ServerSystemContext
handle Opc.Ua.Server.NodeHandle
monitoredItem Opc.Ua.Server.MonitoredItem
리턴 void

Read() 보호된 메소드

Validates the nodes and reads the values from the underlying source.
protected Read ( ServerSystemContext context, IList nodesToRead, IList values, IList errors, List nodesToValidate, NodeState>.IDictionary cache ) : void
context Opc.Ua.Server.ServerSystemContext
nodesToRead IList
values IList
errors IList
nodesToValidate List
cache NodeState>.IDictionary
리턴 void

ReadInitialValue() 보호된 메소드

Reads the initial value for a monitored item.
protected ReadInitialValue ( ServerSystemContext context, NodeHandle handle, MonitoredItem monitoredItem ) : void
context Opc.Ua.Server.ServerSystemContext The context.
handle Opc.Ua.Server.NodeHandle The item handle.
monitoredItem Opc.Ua.Server.MonitoredItem The monitored item.
리턴 void

ReviseAggregateFilter() 보호된 메소드

Revises an aggregate filter (may require knowledge of the variable being used).
protected ReviseAggregateFilter ( ServerSystemContext context, NodeHandle handle, double samplingInterval, uint queueSize, ServerAggregateFilter filterToUse ) : Opc.Ua.StatusCode
context Opc.Ua.Server.ServerSystemContext The context.
handle Opc.Ua.Server.NodeHandle The handle.
samplingInterval double The sampling interval for the monitored item.
queueSize uint The queue size for the monitored item.
filterToUse Opc.Ua.Server.ServerAggregateFilter The filter to revise.
리턴 Opc.Ua.StatusCode

ValidateNode() 보호된 메소드

Verifies that the specified node exists.
protected ValidateNode ( ServerSystemContext context, NodeHandle handle, NodeState>.IDictionary cache ) : NodeState
context Opc.Ua.Server.ServerSystemContext
handle Opc.Ua.Server.NodeHandle
cache NodeState>.IDictionary
리턴 NodeState