deviceaccess.VersionNumber

class deviceaccess.VersionNumber

Bases: VersionNumberBase

Class for generating and holding version numbers without exposing a numeric representation.

Version numbers are used to resolve competing updates that are applied to the same process variable. For example, they can help in breaking an infinite update loop that might occur when two process variables are related and update each other.

They are also used to determine the order of updates made to different process variables.

__init__(self: deviceaccess.VersionNumber) None

Methods

__init__(self)

getNullVersion()

Get a VersionNumber which is not set (null version).

getTime(self)

Get the time stamp associated with this version number.

getVersionNumberAsString(self)

Return the human readable string representation of the version number.

__init__(self: deviceaccess.VersionNumber) None
getNullVersion() deviceaccess.VersionNumber

Get a VersionNumber which is not set (null version).

The null version is guaranteed to be smaller than all version numbers generated with the default constructor and can be used to initialise version numbers that are not yet used for data transfers.

Returns:

VersionNumber: Null version number instance.

getTime(self: deviceaccess.VersionNumberBase) boost::posix_time::ptime

Get the time stamp associated with this version number.

Note:

This Python binding currently returns a fixed placeholder time (1990-01-01 00:00:00).

Returns:

datetime: Time stamp of the version number.