Package src :: Package com :: Package deviceatlas :: Package carrier :: Module carrier_data_type :: Class CarrierDataType
[frames] | no frames]

Class CarrierDataType

data_type.DataType --+
                     |
                    CarrierDataType

Carrier API specific data types. These are used to optimise the data in the data file.


Copyright: Copyright (c) DeviceAtlas Limited 2023. All Rights Reserved.

Author: DeviceAtlas Limited

Static Methods
 
get_base_data_type(data_type_id)
Get the base data type for the given CarrierDataType.

Inherited from data_type.DataType: get_property_as_byte, name

Class Variables
  STRING_LEN_BYTE = 100
  STRING_LEN_SHORT = 101
  STRING_LEN_INT = 102
  STRING_1_BYTE_FIXED = 103
  STRING_2_BYTE_FIXED = 104
  STRING_3_BYTE_FIXED = 105
  STRING_4_BYTE_FIXED = 106
  STRING_5_BYTE_FIXED = 107

Inherited from data_type.DataType: BOOLEAN, BYTE, DOUBLE, FLOAT, INTEGER, LONG, SHORT, STRING, UNKNOWN

Method Details

get_base_data_type(data_type_id)
Static Method

 

Get the base data type for the given CarrierDataType. This essentially just converts the special string types to the DataType.String type.

Parameters:
  • data_type_id - The data type identifier.