utilities.ConfigMap_utils module
This class contains utility methods related to the ConfigMap file.
- utilities.ConfigMap_utils.get_aas_general_property(property_name)[source]
This method returns the property of the AAS set in the ConfigMap by the AAS Controller during the deployment process. This information is stored in “aas.properties” file within “general-information” section.
- Args:
property_name (str): The name of the property.
- Returns:
str: The general property of the AAS.
- utilities.ConfigMap_utils.get_asset_type()[source]
This method returns the asset type of the AAS set in the ConfigMap by the AAS Controller during the deployment process. This information is stored in “asset.properties” file.
- Returns:
str: The asset type of the AAS.
- utilities.ConfigMap_utils.get_submodel_information(submodel_name)[source]
This method returns the submodel information of a specific submodel, from the submodel properties file of the configuration from the ConfigMap.
- Args:
submodel_name (str): The name of the submodel. To read from the submodel properties file, it is also the name of the section.
- Returns:
dict: The submodel information in the same format as the submodel properties file content.
- utilities.ConfigMap_utils.get_submodel_names()[source]
This method returns all submodel names that have been selected for the AAS instance. It is the submodel properties file sections of the AAS configuration in the ConfigMap that will determine which submodels these are.
- Returns:
list(str): A list with the sections of the submodel properties file, and therefore, the submodel names.