UA Bundle SDK .NET  2.3.1.334
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Groups Pages
UnifiedAutomation.UaServer.DataItemModel Class Reference

Inherits UnifiedAutomation.UaServer.BaseDataVariableModel.

Inherited by UnifiedAutomation.UaServer.AnalogItemModel, 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

new object Value [get, set]
 Gets or sets the value. More...
 
string Definition [get, set]
 Gets or sets the Definition More...
 
double ValuePrecision [get, set]
 Gets or sets the ValuePrecision More...
 
- Properties inherited from UnifiedAutomation.UaServer.BaseDataVariableModel
new object Value [get, set]
 Gets or sets the value. 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.

Definition is 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"

ValuePrecision 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.

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

Gets or sets the Definition

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

new object UnifiedAutomation.UaServer.DataItemModel.Value
getset

Gets or sets the value.

double UnifiedAutomation.UaServer.DataItemModel.ValuePrecision
getset

Gets or sets the ValuePrecision

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


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