示例#1
0
 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);
 }
示例#3
0
 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);
     }
 }
示例#4
0
        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");
            }
        }