C# Класс Quickstarts.MonitoredNode

Stores the current set of MonitoredItems for a Node.
An instance of this object is created the first time a MonitoredItem is created for any attribute of a Node. The object is deleted when the last MonitoredItem is deleted.
Показать файл Открыть проект

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

Метод Описание
Add ( IEventMonitoredItem eventItem ) : void

Adds the specified event monitored item.

Add ( MonitoredItem datachangeItem ) : void

Adds the specified data change monitored item.

MonitoredNode ( QuickstartNodeManager nodeManager, NodeState node ) : System

Initializes a new instance of the MonitoredNode2 class.

OnMonitoredNodeChanged ( ISystemContext context, NodeState node, NodeStateChangeMasks changes ) : void

Called when the state of a Node changes.

OnReportEvent ( ISystemContext context, NodeState node, IFilterTarget e ) : void

Called when a Node produces an event.

QueueValue ( ISystemContext context, NodeState node, MonitoredItem monitoredItem ) : void

Reads the value of an attribute and reports it to the MonitoredItem.

Remove ( IEventMonitoredItem eventItem ) : void

Removes the specified event monitored item.

Remove ( MonitoredItem datachangeItem ) : void

Removes the specified data change monitored item.

Описание методов

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

Adds the specified event monitored item.
public Add ( IEventMonitoredItem eventItem ) : void
eventItem IEventMonitoredItem The monitored item.
Результат void

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

Adds the specified data change monitored item.
public Add ( MonitoredItem datachangeItem ) : void
datachangeItem Opc.Ua.Server.MonitoredItem The monitored item.
Результат void

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

Initializes a new instance of the MonitoredNode2 class.
public MonitoredNode ( QuickstartNodeManager nodeManager, NodeState node ) : System
nodeManager QuickstartNodeManager The node manager.
node NodeState The node.
Результат System

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

Called when the state of a Node changes.
public OnMonitoredNodeChanged ( ISystemContext context, NodeState node, NodeStateChangeMasks changes ) : void
context ISystemContext The system context.
node NodeState The affected node.
changes NodeStateChangeMasks The mask indicating what changes have occurred.
Результат void

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

Called when a Node produces an event.
public OnReportEvent ( ISystemContext context, NodeState node, IFilterTarget e ) : void
context ISystemContext The system context.
node NodeState The affected node.
e IFilterTarget The event.
Результат void

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

Reads the value of an attribute and reports it to the MonitoredItem.
public QueueValue ( ISystemContext context, NodeState node, MonitoredItem monitoredItem ) : void
context ISystemContext
node NodeState
monitoredItem Opc.Ua.Server.MonitoredItem
Результат void

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

Removes the specified event monitored item.
public Remove ( IEventMonitoredItem eventItem ) : void
eventItem IEventMonitoredItem The monitored item.
Результат void

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

Removes the specified data change monitored item.
public Remove ( MonitoredItem datachangeItem ) : void
datachangeItem Opc.Ua.Server.MonitoredItem The monitored item.
Результат void