C# 클래스 Opc.Ua.Sample.CustomNodeManager2

A node manager for a variety of test data.
상속: INodeManager, INodeIdFactory, IDisposable
파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary

공개 메소드들

메소드 설명
AddReferences ( IDictionary references ) : void

This method is used to add bi-directional references to nodes from other node managers.

The additional references are optional, however, the NodeManager should support them.

Browse ( OperationContext context, ContinuationPoint &continuationPoint, IList references ) : void

Browses the references from a node managed by the node manager.

The continuation point is created for every browse operation and contains the browse parameters. The node manager can store its state information in the Data and Index properties.

Call ( OperationContext context, IList methodsToCall, IList results, IList errors ) : void

Calls a method on the specified nodes.

ConditionRefresh ( OperationContext context, IList monitoredItems ) : ServiceResult

Tells the node manager to refresh any conditions associated with the specified monitored items.

This method is called when the condition refresh method is called for a subscription. The node manager must create a refresh event for each condition monitored by the subscription.

CreateAddressSpace ( IDictionary externalReferences ) : void

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

The externalReferences is an out parameter that allows the node manager to link to nodes in other node managers. For example, the 'Objects' node is managed by the CoreNodeManager and should have a reference to the root folder node(s) exposed by this node manager.

CreateMonitoredItems ( OperationContext context, uint subscriptionId, double publishingInterval, TimestampsToReturn timestampsToReturn, IList itemsToCreate, IList errors, IList filterErrors, IList monitoredItems, long &globalIdCounter ) : void

Creates a new set of monitored items for a set of variables.

This method only handles data change subscriptions. Event subscriptions are created by the SDK.

CreateNode ( ServerSystemContext context, NodeId parentId, NodeId referenceTypeId, QualifiedName browseName, BaseInstanceState instance ) : NodeId

Creates a new instance and assigns unique identifiers to all children.

CustomNodeManager2 ( IServerInternal server ) : System

Initializes the node manager.

DeleteAddressSpace ( ) : void

Frees any resources allocated for the address space.

DeleteMonitoredItems ( OperationContext context, IList monitoredItems, IList processedItems, IList errors ) : void

Deletes a set of monitored items.

DeleteNode ( ServerSystemContext context, NodeId nodeId ) : bool

Deletes a node and all of its children.

DeleteReference ( object sourceHandle, NodeId referenceTypeId, bool isInverse, ExpandedNodeId targetId, bool deleteBiDirectional ) : ServiceResult

This method is used to delete bi-directional references to nodes from other node managers.

Dispose ( ) : void

Frees any unmanaged resources.

Find ( NodeId nodeId ) : NodeState

Returns the state object for the specified node if it exists.

FindPredefinedNode ( NodeId nodeId, Type expectedType ) : NodeState

Finds the specified and checks if it is of the expected type.

GetManagerHandle ( NodeId nodeId ) : object

Returns a unique handle for the node.

This must efficiently determine whether the node belongs to the node manager. If it does belong to NodeManager it should return a handle that does not require the NodeId to be validated again when the handle is passed into other methods such as 'Read' or 'Write'.

GetNodeMetadata ( OperationContext context, object targetHandle, BrowseResultMask resultMask ) : NodeMetadata

Returns the basic metadata for the node. Returns null if the node does not exist.

This method validates any placeholder handle.

HistoryRead ( OperationContext context, HistoryReadDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, IList nodesToRead, IList results, IList errors ) : void

Reads the history for the specified nodes.

HistoryUpdate ( OperationContext context, Type detailsType, IList nodesToUpdate, IList results, IList errors ) : void

Updates the history for the specified nodes.

LoadPredefinedNodes ( ISystemContext context, Assembly assembly, string resourcePath, IDictionary externalReferences ) : void

Loads a node set from a file or resource and addes them to the set of predefined nodes.

ModifyMonitoredItems ( OperationContext context, TimestampsToReturn timestampsToReturn, IList monitoredItems, IList itemsToModify, IList errors, IList filterErrors ) : void

Modifies the parameters for a set of monitored items.

New ( ISystemContext context, NodeState node ) : NodeId

Creates the NodeId for the specified node.

Read ( OperationContext context, double maxAge, IList nodesToRead, IList values, IList errors ) : void

Reads the value for the specified attribute.

SetMonitoringMode ( OperationContext context, MonitoringMode monitoringMode, IList monitoredItems, IList processedItems, IList errors ) : void

Changes the monitoring mode for a set of monitored items.

SubscribeToAllEvents ( OperationContext context, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : ServiceResult

Subscribes or unsubscribes to events produced by all event sources.

This method is called when a event subscription is created or deleted. The node manager must start/stop reporting events for all objects that it manages.

SubscribeToEvents ( OperationContext context, object sourceId, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : ServiceResult

Subscribes or unsubscribes to events produced by the specified source.

This method is called when a event subscription is created or deletes. The node manager must start/stop reporting events for the specified object and all objects below it in the notifier hierarchy.

TranslateBrowsePath ( OperationContext context, object sourceHandle, RelativePathElement relativePath, IList targetIds, IList unresolvedTargetIds ) : void

Returns the target of the specified browse path fragment(s).

If reference exists but the node manager does not know the browse name it must return the NodeId as an unresolvedTargetIds. The caller will try to check the browse name.

Write ( OperationContext context, IList nodesToWrite, IList errors ) : void

Writes the value for the specified attributes.

보호된 메소드들

메소드 설명
AddBehaviourToPredefinedNode ( ISystemContext context, NodeState predefinedNode ) : NodeState

Replaces the generic node with a node specific to the model.

AddExternalReference ( NodeId sourceId, NodeId referenceTypeId, bool isInverse, NodeId targetId, IDictionary externalReferences ) : void

Adds an external reference to the dictionary.

AddPredefinedNode ( ISystemContext context, NodeState node ) : void

Recursively indexes the node and its children.

AddReverseReferences ( IDictionary externalReferences ) : void

Ensures that all reverse references exist.

AddRootNotifier ( NodeState notifier ) : void

Add the node to the set of root notifiers.

AddTypesToTypeTree ( BaseTypeState type ) : void

Recursively adds the types to the type tree.

AddTypesToTypeTree ( NodeId typeId ) : void

Recursively adds the types to the type tree.

Call ( ISystemContext context, CallMethodRequest methodToCall, NodeState source, MethodState method, CallMethodResult result ) : ServiceResult

Calls a method on an object.

CreateMonitoredItem ( ISystemContext context, NodeState source, uint subscriptionId, double publishingInterval, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoredItemCreateRequest itemToCreate, long &globalIdCounter, MonitoringFilterResult &filterError, IMonitoredItem &monitoredItem ) : ServiceResult

Creates a new set of monitored items for a set of variables.

This method only handles data change subscriptions. Event subscriptions are created by the SDK.

DeleteMonitoredItem ( ISystemContext context, IMonitoredItem monitoredItem, bool &processed ) : ServiceResult

Deletes a monitored item.

Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

GetManagerHandle ( ISystemContext context, NodeId nodeId, NodeState>.IDictionary cache ) : object

Returns a unique handle for the node.

This must efficiently determine whether the node belongs to the node manager. If it does belong to NodeManager it should return a handle that does not require the NodeId to be validated again when the handle is passed into other methods such as 'Read' or 'Write'.

HistoryRead ( ISystemContext context, NodeState source, HistoryReadDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodesToRead, HistoryReadResult result ) : ServiceResult

Reads the history for a single node which has already been validated.

HistoryReadAtTime ( ISystemContext context, BaseVariableState source, ReadAtTimeDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodeToRead, HistoryReadResult result ) : ServiceResult

Reads the history for the variable value.

HistoryReadProcessed ( ISystemContext context, BaseVariableState source, ReadProcessedDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodeToRead, HistoryReadResult result ) : ServiceResult

Reads the processed history for the variable value.

HistoryReadRaw ( ISystemContext context, BaseVariableState source, ReadRawModifiedDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodeToRead, HistoryReadResult result ) : ServiceResult

Reads the raw history for the variable value.

IsHandleInNamespace ( object managerHandle ) : NodeState

Returns the node if the handle refers to a node managed by this manager.

IsNodeIdInNamespace ( NodeId nodeId ) : bool

Returns true if the namespace for the node id is one of the namespaces managed by the node manager.

LoadPredefinedNodes ( ISystemContext context ) : NodeStateCollection

Loads a node set from a file or resource and addes them to the set of predefined nodes.

LoadPredefinedNodes ( ISystemContext context, IDictionary externalReferences ) : void

Loads a node set from a file or resource and addes them to the set of predefined nodes.

ModifyMonitoredItem ( ISystemContext context, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, IMonitoredItem monitoredItem, MonitoredItemModifyRequest itemToModify, MonitoringFilterResult &filterError ) : ServiceResult

Modifies the parameters for a monitored item.

OnCreateMonitoredItem ( ISystemContext systemContext, MonitoredItemCreateRequest itemToCreate, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void

Does any processing after a monitored item is created.

OnDeleteMonitoredItem ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void

Does any processing after a monitored item is deleted.

OnModifyMonitoredItem ( ISystemContext systemContext, MonitoredItemModifyRequest itemToModify, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, double previousSamplingInterval ) : void

Does any processing after a monitored item is created.

OnNodeRemoved ( NodeState node ) : void

Called after a node has been deleted.

OnSetMonitoringMode ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, MonitoringMode previousMode, MonitoringMode currentMode ) : void

Does any processing after a monitored item is created.

OnSubscribeToEvents ( ISystemContext systemContext, MonitoredNode monitoredNode, IEventMonitoredItem monitoredItem ) : void

Does any processing after a monitored item is subscribed to.

OnUnsubscribeToEvents ( ISystemContext systemContext, MonitoredNode monitoredNode, IEventMonitoredItem monitoredItem ) : void

Does any processing after a monitored item is subscribed to.

RemovePredefinedNode ( ISystemContext context, NodeState node, List referencesToRemove ) : void

Recursively indexes the node and its children.

RemoveRootNotifier ( NodeState notifier ) : void

Remove the node from the set of root notifiers.

SetMonitoringMode ( ISystemContext context, IMonitoredItem monitoredItem, MonitoringMode monitoringMode, bool &processed ) : ServiceResult

Changes the monitoring mode for an item.

SubscribeToAllEvents ( ISystemContext systemContext, IEventMonitoredItem monitoredItem, bool unsubscribe, NodeState source ) : void

Subscribes/unsubscribes to all events produced by the specified node.

ValidateDataChangeFilter ( ISystemContext context, NodeState source, uint attributeId, ExtensionObject requestedFilter, DataChangeFilter &filter, Range &range ) : ServiceResult

Validates a data change filter provided by the client.

ValidateNode ( ServerSystemContext context, NodeState node ) : bool

Verifies that the specified node exists.

비공개 메소드들

메소드 설명
CalculateSamplingInterval ( BaseVariableState variable, double samplingInterval ) : double

Calculates the sampling interval.

CreateSampledItem ( double samplingInterval, DataChangeMonitoredItem monitoredItem ) : void

Creates a new sampled item.

DeleteSampledItem ( DataChangeMonitoredItem monitoredItem ) : void

Deletes a sampled item.

DoSample ( object state ) : void

Polls each monitored item which requires sample.

GetReferenceDescription ( OperationContext context, IReference reference, ContinuationPoint continuationPoint ) : ReferenceDescription

Returns the references for the node that meets the criteria specified.

메소드 상세

AddBehaviourToPredefinedNode() 보호된 메소드

Replaces the generic node with a node specific to the model.
protected AddBehaviourToPredefinedNode ( ISystemContext context, NodeState predefinedNode ) : NodeState
context ISystemContext
predefinedNode NodeState
리턴 NodeState

AddExternalReference() 보호된 메소드

Adds an external reference to the dictionary.
protected AddExternalReference ( NodeId sourceId, NodeId referenceTypeId, bool isInverse, NodeId targetId, IDictionary externalReferences ) : void
sourceId NodeId
referenceTypeId NodeId
isInverse bool
targetId NodeId
externalReferences IDictionary
리턴 void

AddPredefinedNode() 보호된 메소드

Recursively indexes the node and its children.
protected AddPredefinedNode ( ISystemContext context, NodeState node ) : void
context ISystemContext
node NodeState
리턴 void

AddReferences() 공개 메소드

This method is used to add bi-directional references to nodes from other node managers.
The additional references are optional, however, the NodeManager should support them.
public AddReferences ( IDictionary references ) : void
references IDictionary
리턴 void

AddReverseReferences() 보호된 메소드

Ensures that all reverse references exist.
protected AddReverseReferences ( IDictionary externalReferences ) : void
externalReferences IDictionary A list of references to add to external targets.
리턴 void

AddRootNotifier() 보호된 메소드

Add the node to the set of root notifiers.
protected AddRootNotifier ( NodeState notifier ) : void
notifier NodeState
리턴 void

AddTypesToTypeTree() 보호된 메소드

Recursively adds the types to the type tree.
protected AddTypesToTypeTree ( BaseTypeState type ) : void
type BaseTypeState
리턴 void

AddTypesToTypeTree() 보호된 메소드

Recursively adds the types to the type tree.
protected AddTypesToTypeTree ( NodeId typeId ) : void
typeId NodeId
리턴 void

Browse() 공개 메소드

Browses the references from a node managed by the node manager.
The continuation point is created for every browse operation and contains the browse parameters. The node manager can store its state information in the Data and Index properties.
public Browse ( OperationContext context, ContinuationPoint &continuationPoint, IList references ) : void
context Opc.Ua.Server.OperationContext
continuationPoint Opc.Ua.Server.ContinuationPoint
references IList
리턴 void

Call() 보호된 메소드

Calls a method on an object.
protected Call ( ISystemContext context, CallMethodRequest methodToCall, NodeState source, MethodState method, CallMethodResult result ) : ServiceResult
context ISystemContext
methodToCall CallMethodRequest
source NodeState
method MethodState
result CallMethodResult
리턴 ServiceResult

Call() 공개 메소드

Calls a method on the specified nodes.
public Call ( OperationContext context, IList methodsToCall, IList results, IList errors ) : void
context Opc.Ua.Server.OperationContext
methodsToCall IList
results IList
errors IList
리턴 void

ConditionRefresh() 공개 메소드

Tells the node manager to refresh any conditions associated with the specified monitored items.
This method is called when the condition refresh method is called for a subscription. The node manager must create a refresh event for each condition monitored by the subscription.
public ConditionRefresh ( OperationContext context, IList monitoredItems ) : ServiceResult
context Opc.Ua.Server.OperationContext
monitoredItems IList
리턴 ServiceResult

CreateAddressSpace() 공개 메소드

Does any initialization required before the address space can be used.
The externalReferences is an out parameter that allows the node manager to link to nodes in other node managers. For example, the 'Objects' node is managed by the CoreNodeManager and should have a reference to the root folder node(s) exposed by this node manager.
public CreateAddressSpace ( IDictionary externalReferences ) : void
externalReferences IDictionary
리턴 void

CreateMonitoredItem() 보호된 메소드

Creates a new set of monitored items for a set of variables.
This method only handles data change subscriptions. Event subscriptions are created by the SDK.
protected CreateMonitoredItem ( ISystemContext context, NodeState source, uint subscriptionId, double publishingInterval, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoredItemCreateRequest itemToCreate, long &globalIdCounter, MonitoringFilterResult &filterError, IMonitoredItem &monitoredItem ) : ServiceResult
context ISystemContext
source NodeState
subscriptionId uint
publishingInterval double
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
itemToCreate MonitoredItemCreateRequest
globalIdCounter long
filterError MonitoringFilterResult
monitoredItem IMonitoredItem
리턴 ServiceResult

CreateMonitoredItems() 공개 메소드

Creates a new set of monitored items for a set of variables.
This method only handles data change subscriptions. Event subscriptions are created by the SDK.
public CreateMonitoredItems ( OperationContext context, uint subscriptionId, double publishingInterval, TimestampsToReturn timestampsToReturn, IList itemsToCreate, IList errors, IList filterErrors, IList monitoredItems, long &globalIdCounter ) : void
context Opc.Ua.Server.OperationContext
subscriptionId uint
publishingInterval double
timestampsToReturn TimestampsToReturn
itemsToCreate IList
errors IList
filterErrors IList
monitoredItems IList
globalIdCounter long
리턴 void

CreateNode() 공개 메소드

Creates a new instance and assigns unique identifiers to all children.
public CreateNode ( ServerSystemContext context, NodeId parentId, NodeId referenceTypeId, QualifiedName browseName, BaseInstanceState instance ) : NodeId
context Opc.Ua.Server.ServerSystemContext The operation context.
parentId NodeId An optional parent identifier.
referenceTypeId NodeId The reference type from the parent.
browseName QualifiedName The browse name.
instance BaseInstanceState The instance to create.
리턴 NodeId

CustomNodeManager2() 공개 메소드

Initializes the node manager.
public CustomNodeManager2 ( IServerInternal server ) : System
server IServerInternal
리턴 System

DeleteAddressSpace() 공개 메소드

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

DeleteMonitoredItem() 보호된 메소드

Deletes a monitored item.
protected DeleteMonitoredItem ( ISystemContext context, IMonitoredItem monitoredItem, bool &processed ) : ServiceResult
context ISystemContext
monitoredItem IMonitoredItem
processed bool
리턴 ServiceResult

DeleteMonitoredItems() 공개 메소드

Deletes a set of monitored items.
public DeleteMonitoredItems ( OperationContext context, IList monitoredItems, IList processedItems, IList errors ) : void
context Opc.Ua.Server.OperationContext
monitoredItems IList
processedItems IList
errors IList
리턴 void

DeleteNode() 공개 메소드

Deletes a node and all of its children.
public DeleteNode ( ServerSystemContext context, NodeId nodeId ) : bool
context Opc.Ua.Server.ServerSystemContext
nodeId NodeId
리턴 bool

DeleteReference() 공개 메소드

This method is used to delete bi-directional references to nodes from other node managers.
public DeleteReference ( object sourceHandle, NodeId referenceTypeId, bool isInverse, ExpandedNodeId targetId, bool deleteBiDirectional ) : ServiceResult
sourceHandle object
referenceTypeId NodeId
isInverse bool
targetId ExpandedNodeId
deleteBiDirectional bool
리턴 ServiceResult

Dispose() 공개 메소드

Frees any unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

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

Find() 공개 메소드

Returns the state object for the specified node if it exists.
public Find ( NodeId nodeId ) : NodeState
nodeId NodeId
리턴 NodeState

FindPredefinedNode() 공개 메소드

Finds the specified and checks if it is of the expected type.
public FindPredefinedNode ( NodeId nodeId, Type expectedType ) : NodeState
nodeId NodeId
expectedType System.Type
리턴 NodeState

GetManagerHandle() 보호된 메소드

Returns a unique handle for the node.
This must efficiently determine whether the node belongs to the node manager. If it does belong to NodeManager it should return a handle that does not require the NodeId to be validated again when the handle is passed into other methods such as 'Read' or 'Write'.
protected GetManagerHandle ( ISystemContext context, NodeId nodeId, NodeState>.IDictionary cache ) : object
context ISystemContext
nodeId NodeId
cache NodeState>.IDictionary
리턴 object

GetManagerHandle() 공개 메소드

Returns a unique handle for the node.
This must efficiently determine whether the node belongs to the node manager. If it does belong to NodeManager it should return a handle that does not require the NodeId to be validated again when the handle is passed into other methods such as 'Read' or 'Write'.
public GetManagerHandle ( NodeId nodeId ) : object
nodeId NodeId
리턴 object

GetNodeMetadata() 공개 메소드

Returns the basic metadata for the node. Returns null if the node does not exist.
This method validates any placeholder handle.
public GetNodeMetadata ( OperationContext context, object targetHandle, BrowseResultMask resultMask ) : NodeMetadata
context Opc.Ua.Server.OperationContext
targetHandle object
resultMask BrowseResultMask
리턴 Opc.Ua.Server.NodeMetadata

HistoryRead() 보호된 메소드

Reads the history for a single node which has already been validated.
protected HistoryRead ( ISystemContext context, NodeState source, HistoryReadDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodesToRead, HistoryReadResult result ) : ServiceResult
context ISystemContext
source NodeState
details HistoryReadDetails
timestampsToReturn TimestampsToReturn
releaseContinuationPoints bool
nodesToRead HistoryReadValueId
result HistoryReadResult
리턴 ServiceResult

HistoryRead() 공개 메소드

Reads the history for the specified nodes.
public HistoryRead ( OperationContext context, HistoryReadDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, IList nodesToRead, IList results, IList errors ) : void
context Opc.Ua.Server.OperationContext
details HistoryReadDetails
timestampsToReturn TimestampsToReturn
releaseContinuationPoints bool
nodesToRead IList
results IList
errors IList
리턴 void

HistoryReadAtTime() 보호된 메소드

Reads the history for the variable value.
protected HistoryReadAtTime ( ISystemContext context, BaseVariableState source, ReadAtTimeDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodeToRead, HistoryReadResult result ) : ServiceResult
context ISystemContext
source BaseVariableState
details ReadAtTimeDetails
timestampsToReturn TimestampsToReturn
releaseContinuationPoints bool
nodeToRead HistoryReadValueId
result HistoryReadResult
리턴 ServiceResult

HistoryReadProcessed() 보호된 메소드

Reads the processed history for the variable value.
protected HistoryReadProcessed ( ISystemContext context, BaseVariableState source, ReadProcessedDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodeToRead, HistoryReadResult result ) : ServiceResult
context ISystemContext
source BaseVariableState
details ReadProcessedDetails
timestampsToReturn TimestampsToReturn
releaseContinuationPoints bool
nodeToRead HistoryReadValueId
result HistoryReadResult
리턴 ServiceResult

HistoryReadRaw() 보호된 메소드

Reads the raw history for the variable value.
protected HistoryReadRaw ( ISystemContext context, BaseVariableState source, ReadRawModifiedDetails details, TimestampsToReturn timestampsToReturn, bool releaseContinuationPoints, HistoryReadValueId nodeToRead, HistoryReadResult result ) : ServiceResult
context ISystemContext
source BaseVariableState
details ReadRawModifiedDetails
timestampsToReturn TimestampsToReturn
releaseContinuationPoints bool
nodeToRead HistoryReadValueId
result HistoryReadResult
리턴 ServiceResult

HistoryUpdate() 공개 메소드

Updates the history for the specified nodes.
public HistoryUpdate ( OperationContext context, Type detailsType, IList nodesToUpdate, IList results, IList errors ) : void
context Opc.Ua.Server.OperationContext
detailsType System.Type
nodesToUpdate IList
results IList
errors IList
리턴 void

IsHandleInNamespace() 보호된 메소드

Returns the node if the handle refers to a node managed by this manager.
protected IsHandleInNamespace ( object managerHandle ) : NodeState
managerHandle object The handle to check.
리턴 NodeState

IsNodeIdInNamespace() 보호된 메소드

Returns true if the namespace for the node id is one of the namespaces managed by the node manager.
protected IsNodeIdInNamespace ( NodeId nodeId ) : bool
nodeId NodeId The node id to check.
리턴 bool

LoadPredefinedNodes() 보호된 메소드

Loads a node set from a file or resource and addes them to the set of predefined nodes.
protected LoadPredefinedNodes ( ISystemContext context ) : NodeStateCollection
context ISystemContext
리턴 NodeStateCollection

LoadPredefinedNodes() 공개 메소드

Loads a node set from a file or resource and addes them to the set of predefined nodes.
public LoadPredefinedNodes ( ISystemContext context, Assembly assembly, string resourcePath, IDictionary externalReferences ) : void
context ISystemContext
assembly System.Reflection.Assembly
resourcePath string
externalReferences IDictionary
리턴 void

LoadPredefinedNodes() 보호된 메소드

Loads a node set from a file or resource and addes them to the set of predefined nodes.
protected LoadPredefinedNodes ( ISystemContext context, IDictionary externalReferences ) : void
context ISystemContext
externalReferences IDictionary
리턴 void

ModifyMonitoredItem() 보호된 메소드

Modifies the parameters for a monitored item.
protected ModifyMonitoredItem ( ISystemContext context, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, IMonitoredItem monitoredItem, MonitoredItemModifyRequest itemToModify, MonitoringFilterResult &filterError ) : ServiceResult
context ISystemContext
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
monitoredItem IMonitoredItem
itemToModify MonitoredItemModifyRequest
filterError MonitoringFilterResult
리턴 ServiceResult

ModifyMonitoredItems() 공개 메소드

Modifies the parameters for a set of monitored items.
public ModifyMonitoredItems ( OperationContext context, TimestampsToReturn timestampsToReturn, IList monitoredItems, IList itemsToModify, IList errors, IList filterErrors ) : void
context Opc.Ua.Server.OperationContext
timestampsToReturn TimestampsToReturn
monitoredItems IList
itemsToModify IList
errors IList
filterErrors IList
리턴 void

New() 공개 메소드

Creates the NodeId for the specified node.
public New ( ISystemContext context, NodeState node ) : NodeId
context ISystemContext The context.
node NodeState The node.
리턴 NodeId

OnCreateMonitoredItem() 보호된 메소드

Does any processing after a monitored item is created.
protected OnCreateMonitoredItem ( ISystemContext systemContext, MonitoredItemCreateRequest itemToCreate, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void
systemContext ISystemContext
itemToCreate MonitoredItemCreateRequest
monitoredNode MonitoredNode
monitoredItem DataChangeMonitoredItem
리턴 void

OnDeleteMonitoredItem() 보호된 메소드

Does any processing after a monitored item is deleted.
protected OnDeleteMonitoredItem ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void
systemContext ISystemContext
monitoredNode MonitoredNode
monitoredItem DataChangeMonitoredItem
리턴 void

OnModifyMonitoredItem() 보호된 메소드

Does any processing after a monitored item is created.
protected OnModifyMonitoredItem ( ISystemContext systemContext, MonitoredItemModifyRequest itemToModify, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, double previousSamplingInterval ) : void
systemContext ISystemContext
itemToModify MonitoredItemModifyRequest
monitoredNode MonitoredNode
monitoredItem DataChangeMonitoredItem
previousSamplingInterval double
리턴 void

OnNodeRemoved() 보호된 메소드

Called after a node has been deleted.
protected OnNodeRemoved ( NodeState node ) : void
node NodeState
리턴 void

OnSetMonitoringMode() 보호된 메소드

Does any processing after a monitored item is created.
protected OnSetMonitoringMode ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, MonitoringMode previousMode, MonitoringMode currentMode ) : void
systemContext ISystemContext
monitoredNode MonitoredNode
monitoredItem DataChangeMonitoredItem
previousMode MonitoringMode
currentMode MonitoringMode
리턴 void

OnSubscribeToEvents() 보호된 메소드

Does any processing after a monitored item is subscribed to.
protected OnSubscribeToEvents ( ISystemContext systemContext, MonitoredNode monitoredNode, IEventMonitoredItem monitoredItem ) : void
systemContext ISystemContext
monitoredNode MonitoredNode
monitoredItem IEventMonitoredItem
리턴 void

OnUnsubscribeToEvents() 보호된 메소드

Does any processing after a monitored item is subscribed to.
protected OnUnsubscribeToEvents ( ISystemContext systemContext, MonitoredNode monitoredNode, IEventMonitoredItem monitoredItem ) : void
systemContext ISystemContext
monitoredNode MonitoredNode
monitoredItem IEventMonitoredItem
리턴 void

Read() 공개 메소드

Reads the value for the specified attribute.
public Read ( OperationContext context, double maxAge, IList nodesToRead, IList values, IList errors ) : void
context OperationContext
maxAge double
nodesToRead IList
values IList
errors IList
리턴 void

RemovePredefinedNode() 보호된 메소드

Recursively indexes the node and its children.
protected RemovePredefinedNode ( ISystemContext context, NodeState node, List referencesToRemove ) : void
context ISystemContext
node NodeState
referencesToRemove List
리턴 void

RemoveRootNotifier() 보호된 메소드

Remove the node from the set of root notifiers.
protected RemoveRootNotifier ( NodeState notifier ) : void
notifier NodeState
리턴 void

SetMonitoringMode() 보호된 메소드

Changes the monitoring mode for an item.
protected SetMonitoringMode ( ISystemContext context, IMonitoredItem monitoredItem, MonitoringMode monitoringMode, bool &processed ) : ServiceResult
context ISystemContext
monitoredItem IMonitoredItem
monitoringMode MonitoringMode
processed bool
리턴 ServiceResult

SetMonitoringMode() 공개 메소드

Changes the monitoring mode for a set of monitored items.
public SetMonitoringMode ( OperationContext context, MonitoringMode monitoringMode, IList monitoredItems, IList processedItems, IList errors ) : void
context OperationContext
monitoringMode MonitoringMode
monitoredItems IList
processedItems IList
errors IList
리턴 void

SubscribeToAllEvents() 공개 메소드

Subscribes or unsubscribes to events produced by all event sources.
This method is called when a event subscription is created or deleted. The node manager must start/stop reporting events for all objects that it manages.
public SubscribeToAllEvents ( OperationContext context, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : ServiceResult
context OperationContext
subscriptionId uint
monitoredItem IEventMonitoredItem
unsubscribe bool
리턴 ServiceResult

SubscribeToAllEvents() 보호된 메소드

Subscribes/unsubscribes to all events produced by the specified node.
protected SubscribeToAllEvents ( ISystemContext systemContext, IEventMonitoredItem monitoredItem, bool unsubscribe, NodeState source ) : void
systemContext ISystemContext
monitoredItem IEventMonitoredItem
unsubscribe bool
source NodeState
리턴 void

SubscribeToEvents() 공개 메소드

Subscribes or unsubscribes to events produced by the specified source.
This method is called when a event subscription is created or deletes. The node manager must start/stop reporting events for the specified object and all objects below it in the notifier hierarchy.
public SubscribeToEvents ( OperationContext context, object sourceId, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : ServiceResult
context OperationContext
sourceId object
subscriptionId uint
monitoredItem IEventMonitoredItem
unsubscribe bool
리턴 ServiceResult

TranslateBrowsePath() 공개 메소드

Returns the target of the specified browse path fragment(s).
If reference exists but the node manager does not know the browse name it must return the NodeId as an unresolvedTargetIds. The caller will try to check the browse name.
public TranslateBrowsePath ( OperationContext context, object sourceHandle, RelativePathElement relativePath, IList targetIds, IList unresolvedTargetIds ) : void
context OperationContext
sourceHandle object
relativePath RelativePathElement
targetIds IList
unresolvedTargetIds IList
리턴 void

ValidateDataChangeFilter() 보호된 메소드

Validates a data change filter provided by the client.
protected ValidateDataChangeFilter ( ISystemContext context, NodeState source, uint attributeId, ExtensionObject requestedFilter, DataChangeFilter &filter, Range &range ) : ServiceResult
context ISystemContext The system context.
source NodeState The node being monitored.
attributeId uint The attribute being monitored.
requestedFilter ExtensionObject The requested monitoring filter.
filter DataChangeFilter The validated data change filter.
range Range The EU range associated with the value if required by the filter.
리턴 ServiceResult

ValidateNode() 보호된 메소드

Verifies that the specified node exists.
protected ValidateNode ( ServerSystemContext context, NodeState node ) : bool
context ServerSystemContext
node NodeState
리턴 bool

Write() 공개 메소드

Writes the value for the specified attributes.
public Write ( OperationContext context, IList nodesToWrite, IList errors ) : void
context OperationContext
nodesToWrite IList
errors IList
리턴 void