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

@@ -0,0 +1,6 @@
class CaseAssigner:
def __init__(self):
pass
def case_chooser(self, budget, path_to_case_info, path_to_selected_components):
pass

View File

@@ -0,0 +1,6 @@
class CoolerAssigner:
def __init__(self):
pass
def cooler_chooser(self, budget, path_to_cooler_info, path_to_selected_components):
pass

View File

@@ -0,0 +1,6 @@
class CPUAssigner:
def __init__(self):
pass
def cpu_chooser(self, budget, path_to_cpu_info, usage_info):
pass

View File

@@ -0,0 +1,6 @@
class GPUAssigner:
def __init__(self):
pass
def gpu_assigner(self, budget, path_to_gpu_file, uscase_info):
pass

View File

View File

@@ -0,0 +1,6 @@
class MBDAssigner:
def __init__(self):
pass
def mbd_chooser(self, budget, path_to_mbd_info, path_to_selected_components):
pass

View File

@@ -0,0 +1,6 @@
class PSUAssigner:
def __init__(self):
pass
def psu_chooser(self, budget, path_to_psu_info):
pass

View File

6
bin/config/storage.py Normal file
View File

@@ -0,0 +1,6 @@
class StorageAssigner:
def __init__(self):
pass
def storage(self, budget, storage_amount, storage_config, path_to_storage_file):
pass

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)