Value definition.
Classes
| AttributeConfig | |
| Value | A qarbon value. |
| AttributeValue | A qarbon value. |
Bases: object
Bases: object
A qarbon value. A container for a value read from a qarbon model. It contains the following members:
r_value (Quantity): (aka: value) a Quantity representing the read value
r_timestamp (datetime.datetime): the timestamp of reading the value
w_value (Quantity): a Quantity representing the write value
quality (Quality): the quality related to the read value
value resulted in an exception or None otherwise
error (bool): tells the read resulted in an error
Example on how to pretty print
Bases: qarbon.value.Value
A qarbon value. A container for a value read from a qarbon model. It contains the following members:
r_value (Quantity): (aka: value) a Quantity representing the read value
r_timestamp (datetime.datetime): the timestamp of reading the value
w_value (Quantity): a Quantity representing the write value
quality (Quality): the quality related to the read value
value resulted in an exception or None otherwise
error (bool): tells the read resulted in an error
config (AttributeConfig): config object from which this value was obtained
Other configuration values can also be accessed:
Example on how to pretty print