C# Класс Opc.Ua.InstanceStateSnapshot

A lightweight snapshot of an instance node.
Наследование: IFilterTarget
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetAttributeValue ( FilterContext context, Opc.Ua.NodeId typeDefinitionId, IList relativePath, uint attributeId, NumericRange indexRange ) : object

Returns the value of the attribute for the specified child.

Initialize ( ISystemContext context, BaseInstanceState state ) : void

Initializes the snapshot from an instance.

IsTypeOf ( FilterContext context, Opc.Ua.NodeId typeDefinitionId ) : bool

Returns true if the snapshort is an instance of the specified type.

SetChildValue ( Opc.Ua.QualifiedName browseName, NodeClass nodeClass, object value ) : void

Sets the value for a child. Adds it if it does not already exist.

Приватные методы

Метод Описание
CreateChildNode ( ISystemContext context, BaseInstanceState state ) : ChildNode

Creates a snapshot of a node.

CreateChildNodes ( ISystemContext context, BaseInstanceState state ) : List

Recusively stores the the current value for Object and Variable child nodes.

GetAttributeValue ( ChildNode node, IList relativePath, int index, uint attributeId ) : object

Returns the value of the attribute for the specified child.

SetChildValue ( ChildNode node, Opc.Ua.QualifiedName browseName, NodeClass nodeClass, object value ) : void

Sets the value for a child. Adds it if it does not already exist.

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

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

Returns the value of the attribute for the specified child.
public GetAttributeValue ( FilterContext context, Opc.Ua.NodeId typeDefinitionId, IList relativePath, uint attributeId, NumericRange indexRange ) : object
context FilterContext The context to use when evaluating the operand.
typeDefinitionId Opc.Ua.NodeId The type of the instance.
relativePath IList The path from the instance to the node which defines the attribute.
attributeId uint The attribute to return.
indexRange NumericRange The sub-set of an array value to return.
Результат object

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

Initializes the snapshot from an instance.
public Initialize ( ISystemContext context, BaseInstanceState state ) : void
context ISystemContext The context.
state BaseInstanceState The state.
Результат void

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

Returns true if the snapshort is an instance of the specified type.
public IsTypeOf ( FilterContext context, Opc.Ua.NodeId typeDefinitionId ) : bool
context FilterContext The context to use when checking the type definition.
typeDefinitionId Opc.Ua.NodeId The type of the instance.
Результат bool

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

Sets the value for a child. Adds it if it does not already exist.
public SetChildValue ( Opc.Ua.QualifiedName browseName, NodeClass nodeClass, object value ) : void
browseName Opc.Ua.QualifiedName The BrowseName.
nodeClass NodeClass The node class.
value object The value.
Результат void