C# Class Opc.Ua.Server.MonitoredNode2

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.
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

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.

MonitoredNode2 ( CustomNodeManager2 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 MonitoredItem The monitored item.
return void

MonitoredNode2() public method

Initializes a new instance of the MonitoredNode2 class.
public MonitoredNode2 ( CustomNodeManager2 nodeManager, NodeState node ) : System
nodeManager CustomNodeManager2 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 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 MonitoredItem The monitored item.
return void