Ejemplo n.º 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");
            }
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
        // member methods (Can do)

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