C# Класс TestData.TestDataObjectState

Наследование: Opc.Ua.BaseObjectState
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetChildren ( ISystemContext context, IList children ) : void

Populates a list with the children that belong to the node.

OnWriteAnalogValue ( ISystemContext context, NodeState node, object &value ) : ServiceResult

Validates a written value.

TestDataObjectState ( NodeState parent ) : System

Initializes the type with its default attribute values.

Защищенные методы

Метод Описание
FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement ) : BaseInstanceState

Finds the child with the specified browse name.

GenerateValue ( TestDataSystem system, BaseVariableState variable ) : void

Generates a new value for the variable.

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.

InitializeOptionalChildren ( ISystemContext context ) : void

Initializes the any option children defined for the instance.

InitializeVariable ( ISystemContext context, BaseVariableState variable, uint numericId ) : void

Initialzies the variable as a counter.

OnAfterCreate ( ISystemContext context, NodeState node ) : void

Initializes the object as a collection of counters which change value on read.

OnGenerateValues ( ISystemContext context, MethodState method, Opc.Ua.NodeId objectId, uint count ) : ServiceResult

Handles the generate values method.

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

Метод Описание
DoDeviceRead ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult

Generates a new value each time the value is read.

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

FindChild() защищенный Метод

Finds the child with the specified browse name.
protected FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement ) : BaseInstanceState
context ISystemContext
browseName Opc.Ua.QualifiedName
createOrReplace bool
replacement Opc.Ua.BaseInstanceState
Результат Opc.Ua.BaseInstanceState

GenerateValue() защищенный Метод

Generates a new value for the variable.
protected GenerateValue ( TestDataSystem system, BaseVariableState variable ) : void
system TestDataSystem
variable BaseVariableState
Результат void

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

Populates a list with the children that belong to the node.
public GetChildren ( ISystemContext context, IList children ) : void
context ISystemContext The context for the system being accessed.
children IList The list of children to populate.
Результат void

GetDefaultTypeDefinitionId() защищенный Метод

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
Результат Opc.Ua.NodeId

Initialize() защищенный Метод

Initializes the instance.
protected Initialize ( ISystemContext context ) : void
context ISystemContext
Результат void

InitializeOptionalChildren() защищенный Метод

Initializes the any option children defined for the instance.
protected InitializeOptionalChildren ( ISystemContext context ) : void
context ISystemContext
Результат void

InitializeVariable() защищенный Метод

Initialzies the variable as a counter.
protected InitializeVariable ( ISystemContext context, BaseVariableState variable, uint numericId ) : void
context ISystemContext
variable BaseVariableState
numericId uint
Результат void

OnAfterCreate() защищенный Метод

Initializes the object as a collection of counters which change value on read.
protected OnAfterCreate ( ISystemContext context, NodeState node ) : void
context ISystemContext
node NodeState
Результат void

OnGenerateValues() защищенный Метод

Handles the generate values method.
protected OnGenerateValues ( ISystemContext context, MethodState method, Opc.Ua.NodeId objectId, uint count ) : ServiceResult
context ISystemContext
method Opc.Ua.MethodState
objectId Opc.Ua.NodeId
count uint
Результат Opc.Ua.ServiceResult

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

Validates a written value.
public OnWriteAnalogValue ( ISystemContext context, NodeState node, object &value ) : ServiceResult
context ISystemContext
node NodeState
value object
Результат Opc.Ua.ServiceResult

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

Initializes the type with its default attribute values.
public TestDataObjectState ( NodeState parent ) : System
parent NodeState
Результат System