C# Class Opc.Ua.Server.ObjectSource

Inheritance: BaseInstanceSource, IObject, IEventSource
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Public Methods

Method Description
Clone ( NodeSource parent ) : NodeSource
ConditionRefresh ( OperationContext context, IList monitoredItems ) : void
Construct ( IServerInternal server ) : ObjectSource

Creates a new instance of the node.

Construct ( IServerInternal server, NodeSource parent, NodeId referenceTypeId, NodeId nodeId, QualifiedName browseName, uint numericId ) : ObjectSource

Creates a new instance of the node.

Initialize ( NodeSource source ) : void
ObjectSource ( IServerInternal server, NodeSource parent ) : System

Adds the source to the type table.

ReportEvent ( BaseEvent e ) : void

Reports an event produced by the object.

SubscribeToAllEvents ( OperationContext context, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : void
SubscribeToEvents ( OperationContext context, object notifier, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : void
SupportsAttribute ( uint attributeId ) : bool

Protected Methods

Method Description
CreateNode ( NodeId parentId, NodeId referenceTypeId ) : void
ReadAttribute ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
RefreshConditions ( OperationContext context, IList monitoredItems ) : void

Returns refresh events for any conditions belonging to the object.

UpdateAttributes ( ILocalNode source ) : void
WriteAttribute ( uint attributeId, DataValue value ) : ServiceResult

Method Details

Clone() public method

public Clone ( NodeSource parent ) : NodeSource
parent NodeSource
return NodeSource

ConditionRefresh() public method

public ConditionRefresh ( OperationContext context, IList monitoredItems ) : void
context OperationContext
monitoredItems IList
return void

Construct() public static method

Creates a new instance of the node.
public static Construct ( IServerInternal server ) : ObjectSource
server IServerInternal
return ObjectSource

Construct() public static method

Creates a new instance of the node.
public static Construct ( IServerInternal server, NodeSource parent, NodeId referenceTypeId, NodeId nodeId, QualifiedName browseName, uint numericId ) : ObjectSource
server IServerInternal
parent NodeSource
referenceTypeId NodeId
nodeId NodeId
browseName QualifiedName
numericId uint
return ObjectSource

CreateNode() protected method

protected CreateNode ( NodeId parentId, NodeId referenceTypeId ) : void
parentId NodeId
referenceTypeId NodeId
return void

Initialize() public method

public Initialize ( NodeSource source ) : void
source NodeSource
return void

ObjectSource() public method

Adds the source to the type table.
public ObjectSource ( IServerInternal server, NodeSource parent ) : System
server IServerInternal
parent NodeSource
return System

ReadAttribute() protected method

protected ReadAttribute ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
context IOperationContext
attributeId uint
value DataValue
return ServiceResult

RefreshConditions() protected method

Returns refresh events for any conditions belonging to the object.
protected RefreshConditions ( OperationContext context, IList monitoredItems ) : void
context OperationContext
monitoredItems IList
return void

ReportEvent() public method

Reports an event produced by the object.
public ReportEvent ( BaseEvent e ) : void
e BaseEvent
return void

SubscribeToAllEvents() public method

public SubscribeToAllEvents ( OperationContext context, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : void
context OperationContext
subscriptionId uint
monitoredItem IEventMonitoredItem
unsubscribe bool
return void

SubscribeToEvents() public method

public SubscribeToEvents ( OperationContext context, object notifier, uint subscriptionId, IEventMonitoredItem monitoredItem, bool unsubscribe ) : void
context OperationContext
notifier object
subscriptionId uint
monitoredItem IEventMonitoredItem
unsubscribe bool
return void

SupportsAttribute() public method

public SupportsAttribute ( uint attributeId ) : bool
attributeId uint
return bool

UpdateAttributes() protected method

protected UpdateAttributes ( ILocalNode source ) : void
source ILocalNode
return void

WriteAttribute() protected method

protected WriteAttribute ( uint attributeId, DataValue value ) : ServiceResult
attributeId uint
value DataValue
return ServiceResult