예제 #1
0
 protected Computer(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable <HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
 {
     this.CentralProcessingUnit = cpu;
     this.RandomAcessMemory     = ram;
     this.HardDrives            = hardDrives;
     this.VideoCard             = videoCard;
     this.MotherBoard           = motherBoard;
 }
예제 #2
0
 protected Computer(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable<HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
 {
     this.CentralProcessingUnit = cpu;
     this.RandomAcessMemory = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     this.MotherBoard = motherBoard;
 }
예제 #3
0
        public override PersonalComputer MakePersonalComputer()
        {
            var ram = new RandomAcessMemory(PersonalComputerRam);
            var videoCard = new VideoCard(PersonalComputerMonochromeVideoCard);
            var motherBoard = new Motherboard(ram, videoCard);
            var cpu = new CentralProcessingUnit(PersonalComputerNumberOfCores, PersonalComputerBits, motherBoard);
            var hardDrive = new HardDriver(PersonalComputerHardDriveCapacity, false, 0);

            var dellPersonalComputer = new PersonalComputer(
                cpu,
                ram,
                new List<HardDriver> { hardDrive },
                videoCard,
                motherBoard);
            return dellPersonalComputer;
        }
예제 #4
0
        public override Server MakeServer()
        {
            // TODO:make raid
            var ram = new RandomAcessMemory(ServerRam);
            var videoCard = new VideoCard(ServerMonochromeVideoCard);
            var motherBoard = new Motherboard(ram, videoCard);
            var cpu = new CentralProcessingUnit(ServerNumberOfCores, ServerBits, motherBoard);
            var hardDrive = new HardDriver(ServerHardDriveCapacity, false, 0);

            var dellServer = new Server(
                cpu,
                ram,
                new List<HardDriver> { hardDrive },
                videoCard,
                motherBoard);
            return dellServer;
        }
예제 #5
0
        public override Laptop MakeLaptop()
        {
            var ram = new RandomAcessMemory(LaptopRam);
            var videoCard = new VideoCard(LaptopMonochromeVideoCard);
            var motherBoard = new Motherboard(ram, videoCard);
            var cpu = new CentralProcessingUnit(LaptopNumberOfCores, LaptopBits, motherBoard);
            var hardDrive = new HardDriver(LaptopHardDriveCapacity, false, 0);
            var battery = new LaptopBattery();

            var dellLaptop = new Laptop(
                cpu,
                ram,
                new List<HardDriver> { hardDrive },
                videoCard,
                motherBoard,
                battery);
            return dellLaptop;
        }
예제 #6
0
        public override PersonalComputer MakePersonalComputer()
        {
            var ram         = new RandomAcessMemory(PersonalComputerRam);
            var videoCard   = new VideoCard(PersonalComputerMonochromeVideoCard);
            var motherBoard = new Motherboard(ram, videoCard);
            var cpu         = new CentralProcessingUnit(PersonalComputerNumberOfCores, PersonalComputerBits, motherBoard);
            var hardDrive   = new HardDriver(PersonalComputerHardDriveCapacity, false, 0);

            var dellPersonalComputer = new PersonalComputer(
                cpu,
                ram,
                new List <HardDriver> {
                hardDrive
            },
                videoCard,
                motherBoard);

            return(dellPersonalComputer);
        }
예제 #7
0
        public override Server MakeServer()
        {
            // TODO:make raid
            var ram         = new RandomAcessMemory(ServerRam);
            var videoCard   = new VideoCard(ServerMonochromeVideoCard);
            var motherBoard = new Motherboard(ram, videoCard);
            var cpu         = new CentralProcessingUnit(ServerNumberOfCores, ServerBits, motherBoard);
            var hardDrive   = new HardDriver(ServerHardDriveCapacity, false, 0);

            var dellServer = new Server(
                cpu,
                ram,
                new List <HardDriver> {
                hardDrive
            },
                videoCard,
                motherBoard);

            return(dellServer);
        }
예제 #8
0
        public override Laptop MakeLaptop()
        {
            var ram         = new RandomAcessMemory(LaptopRam);
            var videoCard   = new VideoCard(LaptopMonochromeVideoCard);
            var motherBoard = new Motherboard(ram, videoCard);
            var cpu         = new CentralProcessingUnit(LaptopNumberOfCores, LaptopBits, motherBoard);
            var hardDrive   = new HardDriver(LaptopHardDriveCapacity, false, 0);
            var battery     = new LaptopBattery();

            var dellLaptop = new Laptop(
                cpu,
                ram,
                new List <HardDriver> {
                hardDrive
            },
                videoCard,
                motherBoard,
                battery);

            return(dellLaptop);
        }
예제 #9
0
 public Laptop(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable <HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard, LaptopBattery battery)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
     this.LaptopBattery = battery;
 }
예제 #10
0
 public Laptop(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable<HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard, LaptopBattery battery)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
     this.LaptopBattery = battery;
 }
예제 #11
0
 public Server(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable <HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
     this.CheckIfVideoCardIsMonochrome();
 }
예제 #12
0
 public PersonalComputer(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable <HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
 }
예제 #13
0
 public Server(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable<HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
     this.CheckIfVideoCardIsMonochrome();
 }
 public PersonalComputer(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable<HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
 }