Exemple #1
0
 def generate_module_to_file_map(self, use_exceptions=True):
     # TODO nicht erst die inverse berechnen
     if self.__module_to_file_map[use_exceptions] == None:
         self.__module_to_file_map[
             use_exceptions] = CollectionTools.transpose(
                 self.generate_file_to_module_map(use_exceptions))
     return self.__module_to_file_map[use_exceptions]
Exemple #2
0
 def get_target_groups(self):
     if self.__moduleDependenciesClustered == None:
         moduleDependencies = OperationProcessor.read_dependencies(self.__inputDictIter)
         deletedDependencies = dict()
         moduleDependencies = self.join_and_delete_modules(moduleDependencies, self.__operationDictIter,
                                 deletedDependencies)
         fileDependencies = LocalCollectionTools.convert_module_list_to_file_list(moduleDependencies)
         deletedFileDependencies = LocalCollectionTools.convert_module_list_to_file_list(deletedDependencies)
         fileDependencies = self.join_missing_files(fileDependencies, deletedFileDependencies)
         #fileDependencies = value_set_to_csv(fileDependencies)
         fileDependencies = CollectionTools.value_set_to_tuple(fileDependencies)
     
         #print_dependencies(fileDependencies)
         self.__moduleDependenciesClustered = CollectionTools.transpose(fileDependencies)
 
     return self.__moduleDependenciesClustered