C# Class 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.
Datei anzeigen Open project: OPCFoundation/UA-.NET

Public Methods

Method Description
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.

Method Details

Add() public method

Adds the specified event monitored item.
public Add ( IEventMonitoredItem eventItem ) : void
eventItem IEventMonitoredItem The monitored item.
return void

Add() public method

Adds the specified data change monitored item.
public Add ( MonitoredItem datachangeItem ) : void
datachangeItem Opc.Ua.Server.MonitoredItem The monitored item.
return void

MonitoredNode() public method

Initializes a new instance of the MonitoredNode2 class.
public MonitoredNode ( QuickstartNodeManager nodeManager, NodeState node ) : System
nodeManager QuickstartNodeManager The node manager.
node NodeState The node.
return System

OnMonitoredNodeChanged() public method

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.
return void

OnReportEvent() public method

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.
return void

QueueValue() public method

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
return void

Remove() public method

Removes the specified event monitored item.
public Remove ( IEventMonitoredItem eventItem ) : void
eventItem IEventMonitoredItem The monitored item.
return void

Remove() public method

Removes the specified data change monitored item.
public Remove ( MonitoredItem datachangeItem ) : void
datachangeItem Opc.Ua.Server.MonitoredItem The monitored item.
return void