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

The base class for all method nodes.
Наследование: BaseInstanceState
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
OnCallMethod GenericMethodCalledEventHandler
OnCallMethod2 GenericMethodCalledEventHandler2
OnReadExecutable NodeAttributeEventHandler
OnReadUserExecutable NodeAttributeEventHandler
OnWriteExecutable NodeAttributeEventHandler
OnWriteUserExecutable NodeAttributeEventHandler

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

Метод Описание
Call ( ISystemContext context, Opc.Ua.NodeId objectId, IList inputArguments, IList argumentErrors, IList outputArguments ) : ServiceResult

Invokes the methods and returns the output parameters.

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.

GetChildren ( ISystemContext context, IList children ) : void

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

MethodState ( NodeState parent ) : System

Initializes the instance with its defalt attribute values.

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.

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

Метод Описание
Call ( ISystemContext context, IList inputArguments, IList outputArguments ) : ServiceResult

Invokes the method, returns the result and output argument.

Call ( ISystemContext context, Opc.Ua.NodeId objectId, IList inputArguments, IList outputArguments ) : ServiceResult

Invokes the method, returns the result and output argument.

Export ( ISystemContext context, Node node ) : void

Exports a copt of the node to a node table.

FindChild ( ISystemContext context, Opc.Ua.QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement ) : BaseInstanceState

Finds the child with the specified browse name.

GetArgumentDefaultValue ( ISystemContext context, Argument outputArgument ) : object

Returns the default value for the output argument.

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.

ValidateInputArgument ( ISystemContext context, Variant inputArgument, int index ) : ServiceResult

Validates the input argument.

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

Write the value for any non-value attribute.

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

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

Invokes the method, returns the result and output argument.
protected Call ( ISystemContext context, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext
inputArguments IList
outputArguments IList
Результат ServiceResult

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

Invokes the methods and returns the output parameters.
public Call ( ISystemContext context, Opc.Ua.NodeId objectId, IList inputArguments, IList argumentErrors, IList outputArguments ) : ServiceResult
context ISystemContext The context to use.
objectId Opc.Ua.NodeId The object being called.
inputArguments IList The input arguments.
argumentErrors IList Any errors for the input arguments.
outputArguments IList The output arguments.
Результат ServiceResult

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

Invokes the method, returns the result and output argument.
protected Call ( ISystemContext context, Opc.Ua.NodeId objectId, IList inputArguments, IList outputArguments ) : ServiceResult
context ISystemContext The current context.
objectId Opc.Ua.NodeId The id of the object.
inputArguments IList The input arguments which have been already validated.
outputArguments IList The output arguments which have initialized with thier default values.
Результат ServiceResult

Construct() публичный статический Метод

Constructs an instance of a node.
public static Construct ( NodeState parent ) : NodeState
parent NodeState The parent.
Результат NodeState

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

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

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 BaseInstanceState
Результат BaseInstanceState

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

Returns the default value for the output argument.
protected GetArgumentDefaultValue ( ISystemContext context, Argument outputArgument ) : object
context ISystemContext The context to use.
outputArgument Argument The output argument description.
Результат object

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

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

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

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

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

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

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

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

Initializes the instance with its defalt attribute values.
public MethodState ( NodeState parent ) : System
parent NodeState
Результат System

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

Reads the value for any non-value attribute.
protected ReadNonValueAttribute ( ISystemContext context, uint attributeId, object &value ) : ServiceResult
context ISystemContext
attributeId uint
value object
Результат ServiceResult

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

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

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

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

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

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

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

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

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

Validates the input argument.
protected ValidateInputArgument ( ISystemContext context, Variant inputArgument, int index ) : ServiceResult
context ISystemContext The context to use.
inputArgument Variant The input argument.
index int The index in the the list of input argument.
Результат ServiceResult

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

Write the value for any non-value attribute.
protected WriteNonValueAttribute ( ISystemContext context, uint attributeId, object value ) : ServiceResult
context ISystemContext
attributeId uint
value object
Результат ServiceResult

Описание свойств

OnCallMethod публичное свойство

Raised when the method is called.
public GenericMethodCalledEventHandler OnCallMethod
Результат GenericMethodCalledEventHandler

OnCallMethod2 публичное свойство

Raised when the method is called.
public GenericMethodCalledEventHandler2 OnCallMethod2
Результат GenericMethodCalledEventHandler2

OnReadExecutable публичное свойство

Raised when the Executable attribute is read.
public NodeAttributeEventHandler OnReadExecutable
Результат NodeAttributeEventHandler

OnReadUserExecutable публичное свойство

Raised when the UserExecutable attribute is read.
public NodeAttributeEventHandler OnReadUserExecutable
Результат NodeAttributeEventHandler

OnWriteExecutable публичное свойство

Raised when the Executable attribute is written.
public NodeAttributeEventHandler OnWriteExecutable
Результат NodeAttributeEventHandler

OnWriteUserExecutable публичное свойство

Raised when the UserExecutable attribute is written.
public NodeAttributeEventHandler OnWriteUserExecutable
Результат NodeAttributeEventHandler