C# Класс Opc.Ua.Sample.SampleNodeManager

A node manager for a variety of test data.
Наследование: INodeManager, INodeIdFactory, IDisposable
Показать файл Открыть проект

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

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

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.

SampleNodeManager ( IServerInternal server ) : System

Initializes the node manager.

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

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 Opc.Ua.Server.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

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

Initializes the node manager.
public SampleNodeManager ( IServerInternal server ) : System
server IServerInternal
Результат System

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 Opc.Ua.Server.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 Opc.Ua.Server.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 Opc.Ua.Server.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 Opc.Ua.Server.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 Opc.Ua.Server.ServerSystemContext
node NodeState
Результат bool

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

Writes the value for the specified attributes.
public Write ( OperationContext context, IList nodesToWrite, IList errors ) : void
context Opc.Ua.Server.OperationContext
nodesToWrite IList
errors IList
Результат void