.NET Based OPC UA Client/Server SDK  3.1.0.500
UnifiedAutomation.UaServer.DataItemModel Class Reference

This VariableType defines the general characteristics of a DataItem. More...

Inherits UnifiedAutomation.UaServer.BaseDataVariableModel.

Inherited by UnifiedAutomation.UaServer.BaseAnalogModel, UnifiedAutomation.UaServer.DataItemModel< T >, and UnifiedAutomation.UaServer.DiscreteItemModel.

Public Member Functions

 DataItemModel ()
 Initializes a new instance of the DataItemModel class. More...
 
 DataItemModel (DataItemModel template)
 Initializes a new instance of the DataItemModel class. More...
 
- Public Member Functions inherited from UnifiedAutomation.UaServer.BaseDataVariableModel
 BaseDataVariableModel ()
 Initializes a new instance of the BaseDataVariableModel class. More...
 
 BaseDataVariableModel (BaseDataVariableModel template)
 Initializes a new instance of the BaseDataVariableModel class. More...
 
- Public Member Functions inherited from UnifiedAutomation.UaServer.BaseVariableModel
 BaseVariableModel ()
 Initializes a new instance of the BaseVariableModel class. More...
 
 BaseVariableModel (BaseVariableModel template)
 Initializes a new instance of the BaseVariableModel class. More...
 
- Public Member Functions inherited from UnifiedAutomation.UaServer.ModelControllerBase
virtual ModelHandle GetModelHandle (StringTable namespaceUris, object instance)
 Gets the metadata handle. More...
 
virtual DataValue GetValue (IMapperContext context, ModelMapping mapping)
 Gets the value associated with the mapping. More...
 
virtual bool SetValue (IMapperContext context, ModelMapping mapping, DataValue value)
 Sets the value associated with the mapping. More...
 

Properties

string Definition [get, set]
 A vendor-specific, human readable string that specifies how the value of this DataItem is calculated. More...
 
double ValuePrecision [get, set]
 Specifies the maximum precision that the server can maintain for the item based on restrictions in the target environment. More...
 
- Properties inherited from UnifiedAutomation.UaServer.BaseVariableModel
object Value [get, set]
 Gets or sets the value. More...
 
- Properties inherited from UnifiedAutomation.UaServer.ModelControllerBase
ModelHandle ModelHandle [get, set]
 Gets or sets the metadata handle. More...
 
object UserData [get, set]
 Gets or sets the user data. More...
 

Detailed Description

This VariableType defines the general characteristics of a DataItem.

All other DataItem Types derive from it. It defines the optional properties Definition and ValuePrecision. The DataItemType derives from the BaseDataVariableType.

Constructor & Destructor Documentation

UnifiedAutomation.UaServer.DataItemModel.DataItemModel ( )
inline

Initializes a new instance of the DataItemModel class.

UnifiedAutomation.UaServer.DataItemModel.DataItemModel ( DataItemModel  template)
inline

Initializes a new instance of the DataItemModel class.

Parameters
templateThe template.

Property Documentation

string UnifiedAutomation.UaServer.DataItemModel.Definition
getset

A vendor-specific, human readable string that specifies how the value of this DataItem is calculated.

Definition is non-localized and will often contain an equation that can be parsed by certain clients. Example: Definition::="(TempA - 25) + TempB"

double UnifiedAutomation.UaServer.DataItemModel.ValuePrecision
getset

Specifies the maximum precision that the server can maintain for the item based on restrictions in the target environment.

ValuePrecision can be used for the following DataTypes:

  • For Float and Double values it specifies the number of digits after the decimal place.
  • For DateTime values it indicates the minimum time difference in nanoseconds. For example, a ValuePrecision of 20 000 000 defines a precision of 20 ms.

The ValuePrecision Property is an approximation that is intended to provide guidance to a Client. A Server is expected to silently round any value with more precision that it supports. This implies that a Client may encounter cases where the value read back from a Server differs from the value that it wrote to the Server. This difference shall be no more than the difference suggested by this Property.


The documentation for this class was generated from the following file: