utilities.Submodels_utils module

This class contains utility methods related to submodels.

utilities.Submodels_utils.check_if_submodel_exists(submodel_name)[source]

This method checks if a submodel exist by its name.

Args:

submodel_name(str): Name of the submodel

Returns:

boolean: True if submodel exists and False if not.

utilities.Submodels_utils.create_configuration_sm(submodel_data)[source]

This method creates the ‘Configuration’ submodel XML file.

Args:

submodel_data (dict): information of the submodel in the same format as the submodel properties file content.

utilities.Submodels_utils.create_submodel_files(submodel_names_list)[source]

This method creates all the files associated to the selected submodels.

Args:

submodel_names_list (list(str)): list of submodel names.

utilities.Submodels_utils.create_submodel_folder()[source]

Create folder to save submodels.

utilities.Submodels_utils.create_technical_data_sm(submodel_data)[source]

This method creates the ‘Technical Data’ submodel XML file.

Args:

submodel_data (dict): information of the submodel in the same format as the submodel properties file content.