C# Class FileSystem.ControllerState

Inheritance: Opc.Ua.BaseObjectState
显示文件 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
CheckForChanges ( ISystemContext context ) : void

Checks if the file has changed since the last check.

ControllerState ( ISystemContext context, FileInfo fileInfo ) : System

Initializes a controller from a file.

ControllerState ( NodeState parent ) : System

Initializes the type with its default attribute values.

GetChildren ( ISystemContext context, IList children ) : void

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

GetFile ( ISystemContext context, Opc.Ua.NodeId controllerId ) : FileInfo

Returns the file for the controller.

UpdateValues ( ISystemContext context ) : void

Upates the tag values from the CSV file.

Protected Methods

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

Finds the child with the specified browse name.

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.

OnAfterCreate ( ISystemContext context, NodeState node ) : void

Sets up callbacks for dynamic variables.

Private Methods

Method Description
GetValueByName ( string name ) : object

Returns the value of the tag with the specified name.

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

Reads the temperature for the controller.

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

Reads the temperature set point for the controller.

SetValueByName ( string name, object value ) : void

Sets the value of the tag with the specified name.

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

Write the temperature set point for the controller.

Method Details

CheckForChanges() public method

Checks if the file has changed since the last check.
public CheckForChanges ( ISystemContext context ) : void
context ISystemContext
return void

ControllerState() public method

Initializes a controller from a file.
public ControllerState ( ISystemContext context, FileInfo fileInfo ) : System
context ISystemContext
fileInfo FileInfo
return System

ControllerState() public method

Initializes the type with its default attribute values.
public ControllerState ( NodeState parent ) : System
parent NodeState
return System

FindChild() protected method

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
return Opc.Ua.BaseInstanceState

GetChildren() public method

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.
return void

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

GetFile() public static method

Returns the file for the controller.
public static GetFile ( ISystemContext context, Opc.Ua.NodeId controllerId ) : FileInfo
context ISystemContext
controllerId Opc.Ua.NodeId
return FileInfo

Initialize() protected method

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

InitializeOptionalChildren() protected method

Initializes the any option children defined for the instance.
protected InitializeOptionalChildren ( ISystemContext context ) : void
context ISystemContext
return void

OnAfterCreate() protected method

Sets up callbacks for dynamic variables.
protected OnAfterCreate ( ISystemContext context, NodeState node ) : void
context ISystemContext
node NodeState
return void

UpdateValues() public method

Upates the tag values from the CSV file.
public UpdateValues ( ISystemContext context ) : void
context ISystemContext
return void