C# Class Opc.Ua.Server.SamplingGroupManager

An object that manages the sampling groups for a node manager.
Inheritance: IDisposable
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
ApplyChanges ( ) : void

Applies any pending changes caused by adding,changing or removing monitored items.

CreateMonitoredItem ( OperationContext context, uint subscriptionId, double publishingInterval, TimestampsToReturn timestampsToReturn, uint monitoredItemId, object managerHandle, MonitoredItemCreateRequest itemToCreate, Range range, double minimumSamplingInterval ) : MonitoredItem

Creates a new monitored item and calls StartMonitoring().

Dispose ( ) : void

Frees any unmanaged resources.

ModifyMonitoredItem ( OperationContext context, TimestampsToReturn timestampsToReturn, ISampledDataChangeMonitoredItem monitoredItem, MonitoredItemModifyRequest itemToModify, Range range ) : ServiceResult

Modifies a monitored item and calls ModifyMonitoring().

ModifyMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : void

Changes monitoring attributes the item.

It will call the external source to change the monitoring if an external source was provided originally. The changes will not take affect until the ApplyChanges() method is called.

SamplingGroupManager ( IServerInternal server, INodeManager nodeManager, uint maxQueueSize, IEnumerable samplingRates ) : System

Creates a new instance of a sampling group.

Shutdown ( ) : void

Stops all sampling groups and clears all items.

StartMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : void

Starts monitoring the item.

It will use the external source for monitoring if the source accepts the item. The changes will not take affect until the ApplyChanges() method is called.

StopMonitoring ( ISampledDataChangeMonitoredItem monitoredItem ) : void

Stops monitoring the item.

It will call the external source to stop the monitoring if an external source was provided originally. The changes will not take affect until the ApplyChanges() method is called.

Méthodes protégées

Méthode Description
CreateMonitoredItem ( IServerInternal server, INodeManager nodeManager, object managerHandle, uint subscriptionId, uint id, Session session, ReadValueId itemToMonitor, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, MonitoringFilter originalFilter, MonitoringFilter filterToUse, Range range, double samplingInterval, uint queueSize, bool discardOldest, double minimumSamplingInterval ) : MonitoredItem

Creates a new monitored item.

Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Method Details

ApplyChanges() public méthode

Applies any pending changes caused by adding,changing or removing monitored items.
public ApplyChanges ( ) : void
Résultat void

CreateMonitoredItem() protected méthode

Creates a new monitored item.
protected CreateMonitoredItem ( IServerInternal server, INodeManager nodeManager, object managerHandle, uint subscriptionId, uint id, Session session, ReadValueId itemToMonitor, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, MonitoringFilter originalFilter, MonitoringFilter filterToUse, Range range, double samplingInterval, uint queueSize, bool discardOldest, double minimumSamplingInterval ) : MonitoredItem
server IServerInternal The server.
nodeManager INodeManager The node manager.
managerHandle object The manager handle.
subscriptionId uint The subscription id.
id uint The id.
session Session The session.
itemToMonitor ReadValueId The item to monitor.
diagnosticsMasks DiagnosticsMasks The diagnostics masks.
timestampsToReturn TimestampsToReturn The timestamps to return.
monitoringMode MonitoringMode The monitoring mode.
clientHandle uint The client handle.
originalFilter MonitoringFilter The original filter.
filterToUse MonitoringFilter The filter to use.
range Range The range.
samplingInterval double The sampling interval.
queueSize uint Size of the queue.
discardOldest bool if set to true [discard oldest].
minimumSamplingInterval double The minimum sampling interval.
Résultat MonitoredItem

CreateMonitoredItem() public méthode

Creates a new monitored item and calls StartMonitoring().
public CreateMonitoredItem ( OperationContext context, uint subscriptionId, double publishingInterval, TimestampsToReturn timestampsToReturn, uint monitoredItemId, object managerHandle, MonitoredItemCreateRequest itemToCreate, Range range, double minimumSamplingInterval ) : MonitoredItem
context OperationContext
subscriptionId uint
publishingInterval double
timestampsToReturn TimestampsToReturn
monitoredItemId uint
managerHandle object
itemToCreate MonitoredItemCreateRequest
range Range
minimumSamplingInterval double
Résultat MonitoredItem

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

ModifyMonitoredItem() public méthode

Modifies a monitored item and calls ModifyMonitoring().
public ModifyMonitoredItem ( OperationContext context, TimestampsToReturn timestampsToReturn, ISampledDataChangeMonitoredItem monitoredItem, MonitoredItemModifyRequest itemToModify, Range range ) : ServiceResult
context OperationContext
timestampsToReturn TimestampsToReturn
monitoredItem ISampledDataChangeMonitoredItem
itemToModify MonitoredItemModifyRequest
range Range
Résultat ServiceResult

ModifyMonitoring() public méthode

Changes monitoring attributes the item.
It will call the external source to change the monitoring if an external source was provided originally. The changes will not take affect until the ApplyChanges() method is called.
public ModifyMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : void
context OperationContext
monitoredItem ISampledDataChangeMonitoredItem
Résultat void

SamplingGroupManager() public méthode

Creates a new instance of a sampling group.
public SamplingGroupManager ( IServerInternal server, INodeManager nodeManager, uint maxQueueSize, IEnumerable samplingRates ) : System
server IServerInternal
nodeManager INodeManager
maxQueueSize uint
samplingRates IEnumerable
Résultat System

Shutdown() public méthode

Stops all sampling groups and clears all items.
public Shutdown ( ) : void
Résultat void

StartMonitoring() public méthode

Starts monitoring the item.
It will use the external source for monitoring if the source accepts the item. The changes will not take affect until the ApplyChanges() method is called.
public StartMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : void
context OperationContext
monitoredItem ISampledDataChangeMonitoredItem
Résultat void

StopMonitoring() public méthode

Stops monitoring the item.
It will call the external source to stop the monitoring if an external source was provided originally. The changes will not take affect until the ApplyChanges() method is called.
public StopMonitoring ( ISampledDataChangeMonitoredItem monitoredItem ) : void
monitoredItem ISampledDataChangeMonitoredItem
Résultat void