C# Class Softing.OPCToolbox.ValueQT

Represents the value of a process variable with its quality and the time it was obtained by the device or by the server's cache.
Inheritance: Softing.OPCToolbox.ValueData
Mostrar archivo Open project: SoftingIndustrial/OPC-Classic-SDK Class Usage Examples

Protected Properties

Property Type Description
m_quality EnumQuality
m_timeStamp DateTime

Public Methods

Method Description
IsQualitySet ( ) : bool

Specifies whether the Quality of a ValueQT object is set.

IsTimeStampSet ( ) : bool

Specifies whether the TimeStamp of a ValueQT object is set.

SetData ( object aData, EnumQuality aQuality, DateTime aTimeStamp ) : void

Sets the value, quality and time stamp of a ValueQT.

ToString ( ) : string

Returns the string representation of a ValueQT object.

ValueQT ( ) : System

Initializes a new instance of the ValueQT class. The data inside it is null, the quality is EnumQuality.BAD_WAITING_FOR_INITIAL_DATA and the timestamp is a new instance of the DateTime object.

ValueQT ( object aData, EnumQuality aQuality, DateTime aTimeStamp ) : System

Initializes a new instance of the ValueQT class with the value indicated by a process variable value, the value quality and the time the value was obtained by the device or by the server's cache.

Private Methods

Method Description
ValueQT ( OTValueData &anOtValueData ) : System

Method Details

IsQualitySet() public method

Specifies whether the Quality of a ValueQT object is set.
public IsQualitySet ( ) : bool
return bool

IsTimeStampSet() public method

Specifies whether the TimeStamp of a ValueQT object is set.
public IsTimeStampSet ( ) : bool
return bool

SetData() public method

Sets the value, quality and time stamp of a ValueQT.
public SetData ( object aData, EnumQuality aQuality, DateTime aTimeStamp ) : void
aData object
aQuality EnumQuality
aTimeStamp DateTime
return void

ToString() public method

Returns the string representation of a ValueQT object.
public ToString ( ) : string
return string

ValueQT() public method

Initializes a new instance of the ValueQT class. The data inside it is null, the quality is EnumQuality.BAD_WAITING_FOR_INITIAL_DATA and the timestamp is a new instance of the DateTime object.
public ValueQT ( ) : System
return System

ValueQT() public method

Initializes a new instance of the ValueQT class with the value indicated by a process variable value, the value quality and the time the value was obtained by the device or by the server's cache.
public ValueQT ( object aData, EnumQuality aQuality, DateTime aTimeStamp ) : System
aData object
aQuality EnumQuality
aTimeStamp DateTime
return System

Property Details

m_quality protected_oe property

The quality for the value of a process variable supplied by an OPC Server.
protected EnumQuality m_quality
return EnumQuality

m_timeStamp protected_oe property

The time the value of a process variable was obtained by the device or by the server's cache.
protected DateTime m_timeStamp
return DateTime