updated configurator.py
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
class CaseAssigner:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def case_chooser(self, budget, path_to_case_info, path_to_selected_components):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
class CoolerAssigner:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def cooler_chooser(self, budget, path_to_cooler_info, path_to_selected_components):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
class CPUAssigner:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def cpu_chooser(self, budget, path_to_cpu_info, usage_info):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
class GPUAssigner:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def gpu_assigner(self, budget, path_to_gpu_file, uscase_info):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
class MBDAssigner:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def mbd_chooser(self, budget, path_to_mbd_info, path_to_selected_components):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
class PSUAssigner:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def psu_chooser(self, budget, path_to_psu_info):
|
||||||
|
pass
|
||||||
6
bin/config/storage.py
Normal file
6
bin/config/storage.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class StorageAssigner:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def storage(self, budget, storage_amount, storage_config, path_to_storage_file):
|
||||||
|
pass
|
||||||
@@ -3,6 +3,12 @@ This module configures PCs but relies heavily on external modules that are inclu
|
|||||||
"""
|
"""
|
||||||
import bin.lib.csv_parsers
|
import bin.lib.csv_parsers
|
||||||
import bin.config.os
|
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
|
import bin.config.case
|
||||||
|
|
||||||
|
|
||||||
@@ -16,8 +22,25 @@ class ConfigCreator:
|
|||||||
self.__budget = 0
|
self.__budget = 0
|
||||||
self.__os_choice = ""
|
self.__os_choice = ""
|
||||||
self.__os_path = ""
|
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):
|
def start_config(self, path):
|
||||||
self.__info_import = cvr.importing(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.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)
|
||||||
|
|||||||
Reference in New Issue
Block a user