updated configurator.py

This commit is contained in:
janis
2022-05-23 16:02:46 +02:00
parent 2662fa3dcc
commit 7a0517f13b
10 changed files with 66 additions and 1 deletions

View File

@@ -3,6 +3,12 @@ This module configures PCs but relies heavily on external modules that are inclu
"""
import bin.lib.csv_parsers
import bin.config.os
import bin.config.psu
import bin.config.storage
import bin.config.cpu
import bin.config.gpu
import bin.config.mbd
import bin.config.cooler
import bin.config.case
@@ -16,8 +22,25 @@ class ConfigCreator:
self.__budget = 0
self.__os_choice = ""
self.__os_path = ""
self.__psu_path = ""
self.__config = ""
self.__storage_path = ""
self.__cpu_path = ""
self.__gpu_path = ""
self.__mbd_path = ""
self.__cooler_path = ""
self.__case_path = ""
self.__storage_amount = 0
self.__storage_config = []
self.__usage_infos = []
def start_config(self, path):
self.__info_import = cvr.importing(path)
self.__budget = bin.config.os.OSAssigner().os_chooser(self.__budget, self.__os_choice, self.__os_path)
self.__budget = bin.config.case
self.__budget = bin.config.psu.PSUAssigner().psu_chooser(self.__budget, self.__psu_path)
self.__budget = bin.config.storage.StorageAssigner().storage(self.__budget, self.__storage_amount, self.__storage_config, self.__storage_path)
self.__budget = bin.config.cpu.CPUAssigner().cpu_chooser(self.__budget, self.__cpu_path, self.__usage_infos)
self.__budget = bin.config.gpu.GPUAssigner().gpu_assigner(self.__budget, self.__gpu_path, self.__usage_infos)
self.__budget = bin.config.mbd.MBDAssigner().mbd_chooser(self.__budget, self.__mbd_path, self.__config)
self.__budget = bin.config.cooler.CoolerAssigner().cooler_chooser(self.__budget, self.__cooler_path, self.__config)
self.__budget = bin.config.case.CaseAssigner().case_chooser(self.__budget, self.__case_path, self.__config)