utilities.Submodels_utils module

This class contains utility methods related to submodels.

utilities.Submodels_utils.create_submodel_folder()[source]

Create folder to save submodels.

utilities.Submodels_utils.create_submodel_files(submodel_names_list)[source]

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

Parameters:

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

utilities.Submodels_utils.create_technical_data_sm(submodel_data)[source]

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

Parameters:
  • submodel_data (dict) – information of the submodel in the same format as the submodel properties file

  • content.

utilities.Submodels_utils.create_configuration_sm(submodel_data)[source]

This method creates the ‘Configuration’ submodel XML file.

Parameters:
  • submodel_data (dict) – information of the submodel in the same format as the submodel properties file

  • content.

utilities.Submodels_utils.check_if_submodel_exists(submodel_name)[source]

This method checks if a submodel exist by its name.

Parameters:

submodel_name (str) – Name of the submodel

Returns:

True if submodel exists and False if not.

Return type:

boolean