ts_core.execution.VariableDictionary module

VariableDictionary Overview

VariableDictionary serves as a lookup table for TraCi variables to be used for subscriptions

class VariableDictionary[source]

Bases: object

get_attribute_label(domain_label, code)[source]
Parameters:
  • domain_label (String representing the TraCi domain ('Vehicle')) –
  • code (hex code for the given attribute (0x04)) –
Returns:

Return type:

the label for the given code within the specified domain (‘lane id’)

get_domain_dictionary(domain_label)[source]
Parameters:domain_label (String representing the TraCi domain ('Vehicle')) –
Returns:lookup dictionary for the attributes in a certain domain ({‘lane id’
Return type:0x04, ‘lane position’:0x06})
get_var(domain_label, attribute_label)[source]
Parameters:
  • domain_label (String representing the TraCi domain ('Vehicle')) –
  • label (attribute) –
Returns:

Return type:

hex code for the given attribute within the specified domain (0x04)