Пример #1
0
        // member methods (Can do)



        public void CheckRequirements(Applications applications, HardDrive hardDrive, RAM ram, GPU gpu)
        {
            if (ram.totalGigabytes >= applications.requiredRAM && hardDrive.availableStorage >= applications.requiredStorage)
            {
                hardDrive.ProcessInstall(applications, hardDrive, ram, gpu);
            }
            else
            {
                Console.WriteLine("Does not meet requirements to run");
            }
        }
Пример #2
0
        // constructor (Spawner)

        public Motherboard(string manufacturer, RAM ram, CPU cpu, HardDrive hardDrive, GPU gpu)
        {
            this.manufacturer    = manufacturer;
            this.temporaryMemory = ram;
            this.processor       = cpu;
            this.storage         = hardDrive;
            this.graphics        = gpu;
        }
Пример #3
0
        // member methods (Can do)

        public void ProcessInstall(Applications applications, HardDrive hardDrive, RAM ram, GPU gpu)
        {
            hardDrive.ApplicationsInHardDrive.Add(applications);
        }