C# Class Opc.Ua.BaseObjectState

The base class for all object nodes.
Inheritance: BaseInstanceState
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Public Properties

Property Type Description
OnReadEventNotifier NodeAttributeEventHandler
OnWriteEventNotifier NodeAttributeEventHandler

Public Methods

Method Description
BaseObjectState ( NodeState parent ) : System

Initializes the instance with its defalt attribute values.

Construct ( NodeState parent ) : NodeState

Constructs an instance of a node.

GetAttributesToSave ( ISystemContext context ) : AttributesToSave

Returns a mask which indicates which attributes have non-default value.

Save ( ISystemContext context, BinaryEncoder encoder, AttributesToSave attributesToSave ) : void

Saves object in an binary stream.

Save ( ISystemContext context, XmlEncoder encoder ) : void

Saves the attributes from the stream.

Update ( ISystemContext context, BinaryDecoder decoder, AttributesToSave attibutesToLoad ) : void

Updates the specified context.

Update ( ISystemContext context, XmlDecoder decoder ) : void

Updates the attributes from the stream.

Protected Methods

Method Description
Export ( ISystemContext context, Node node ) : void

Exports a copt of the node to a node table.

GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId

Returns the id of the default type definition node for the instance.

Initialize ( ISystemContext context ) : void

Initializes the instance with the default values.

Initialize ( ISystemContext context, NodeState source ) : void

Initializes the instance from another instance.

ReadNonValueAttribute ( ISystemContext context, uint attributeId, object &value ) : ServiceResult

Reads the value for any non-value attribute.

WriteNonValueAttribute ( ISystemContext context, uint attributeId, object value ) : ServiceResult

Write the value for any non-value attribute.

Method Details

BaseObjectState() public method

Initializes the instance with its defalt attribute values.
public BaseObjectState ( NodeState parent ) : System
parent NodeState
return System

Construct() public static method

Constructs an instance of a node.
public static Construct ( NodeState parent ) : NodeState
parent NodeState The parent.
return NodeState

Export() protected method

Exports a copt of the node to a node table.
protected Export ( ISystemContext context, Node node ) : void
context ISystemContext The context.
node Node The node.
return void

GetAttributesToSave() public method

Returns a mask which indicates which attributes have non-default value.
public GetAttributesToSave ( ISystemContext context ) : AttributesToSave
context ISystemContext The context for the system being accessed.
return AttributesToSave

GetDefaultTypeDefinitionId() protected method

Returns the id of the default type definition node for the instance.
protected GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId
namespaceUris Opc.Ua.NamespaceTable
return Opc.Ua.NodeId

Initialize() protected method

Initializes the instance with the default values.
protected Initialize ( ISystemContext context ) : void
context ISystemContext
return void

Initialize() protected method

Initializes the instance from another instance.
protected Initialize ( ISystemContext context, NodeState source ) : void
context ISystemContext
source NodeState
return void

ReadNonValueAttribute() protected method

Reads the value for any non-value attribute.
protected ReadNonValueAttribute ( ISystemContext context, uint attributeId, object &value ) : ServiceResult
context ISystemContext
attributeId uint
value object
return ServiceResult

Save() public method

Saves object in an binary stream.
public Save ( ISystemContext context, BinaryEncoder encoder, AttributesToSave attributesToSave ) : void
context ISystemContext The context user.
encoder BinaryEncoder The encoder to write to.
attributesToSave AttributesToSave The masks indicating what attributes to write.
return void

Save() public method

Saves the attributes from the stream.
public Save ( ISystemContext context, XmlEncoder encoder ) : void
context ISystemContext The context for the system being accessed.
encoder XmlEncoder The encoder wrapping the stream to write.
return void

Update() public method

Updates the specified context.
public Update ( ISystemContext context, BinaryDecoder decoder, AttributesToSave attibutesToLoad ) : void
context ISystemContext The context.
decoder BinaryDecoder The decoder.
attibutesToLoad AttributesToSave The attributes to load.
return void

Update() public method

Updates the attributes from the stream.
public Update ( ISystemContext context, XmlDecoder decoder ) : void
context ISystemContext The context for the system being accessed.
decoder XmlDecoder The decoder wrapping the stream to read.
return void

WriteNonValueAttribute() protected method

Write the value for any non-value attribute.
protected WriteNonValueAttribute ( ISystemContext context, uint attributeId, object value ) : ServiceResult
context ISystemContext
attributeId uint
value object
return ServiceResult

Property Details

OnReadEventNotifier public_oe property

Raised when the EventNotifier attribute is read.
public NodeAttributeEventHandler OnReadEventNotifier
return NodeAttributeEventHandler

OnWriteEventNotifier public_oe property

Raised when the EventNotifier attribute is written.
public NodeAttributeEventHandler OnWriteEventNotifier
return NodeAttributeEventHandler