public MotherBoard(string manufacturer, RAM ram, CentralPU cpu, GraphicsPU gpu, HardDrive hardDrive) { this.manufacturer = manufacturer; temporaryMemory = ram; processor = cpu; storage = hardDrive; graphics = gpu; }
public Computer() { HardDrive hardDrive = new HardDrive(1000, 1000); RAM ram = new RAM(1000, "Intel"); CentralPU cpu = new CentralPU("Intel", "Doobie"); GraphicsPU gpu = new GraphicsPU("Bleep Co.", 1000); MotherBoard motherBoard = new MotherBoard("BlackHat", ram, cpu, gpu, hardDrive); }
public bool CheckRequirements(Applications application, HardDrive hardDrive, RAM ram, GraphicsPU gpu, Games game) { if (ram.totalGigabytes > application.requiredRAM && gpu.effectiveMemory > game.requiredEffectiveMemory) { return(true); } else { return(false); } }
public void ProcessInstall(Applications application, HardDrive hardDrive, RAM ram, GraphicsPU gpu, Games game) { if (CheckRequirements(application, hardDrive, ram, gpu, game)) { hardDrive.applicationsInHardDrive.Add(application); } else { Console.WriteLine("Error: system does not have enough RAM access memory"); } }