Пример #1
0
 public Cpu(IRam ram, IVideoCard videoCard, byte numberOfCores, CpuArchitecture architecture)
 {
     this.Ram = ram;
     this._videoCard = videoCard;
     NumberOfCores = numberOfCores;
     this.Architecture = architecture;
 }
Пример #2
0
 public Computer(ICpu cpu, IRamMemory ram, IVideoCard videoCard, IEnumerable<IHardDrive> hardDrives)
 {
     this.cpu = cpu;
     this.ram = ram;
     this.videoCard = videoCard;
     this.hardDrives = hardDrives;
 }
Пример #3
0
 public MotherBoard(IRamMemory ram, ICpu cpu, IHardDrive hardDrive, IVideoCard videoCard)
 {
     this.ram = ram;
     this.cpu = cpu;
     this.hardDrive = hardDrive;
     this.videoCard = videoCard;
 }
Пример #4
0
 public Computer(ICpu cpu, IRam ram, IVideoCard gpu, IStorage storage)
 {
     Storage = storage;
     Gpu = gpu;
     Ram = ram;
     Cpu = cpu;
 }
Пример #5
0
 public Cpu(byte numberOfCores, byte numberOfBits, IRamMemory ram)
 {
     this.numberOfBits = numberOfBits;
     this.ram = ram;
     this.NumberOfCores = numberOfCores;
     this.videoCard = this.defaultVideoCard;
 }
Пример #6
0
 public Computer(ComputerType type, ICpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
 {
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     this.Type = type;
 }
Пример #7
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;
 }
 public BaseComputer(ICpu cpu, IRam ram, IVideoCard videoCard, IEnumerable <IHardDrive> hardDrives)
 {
     this.CPU         = cpu;
     this.Ram         = ram;
     this.HardDrives  = hardDrives;
     this.VideoCard   = videoCard;
     this.Motherboard = new MotherBoard(videoCard, ram, cpu);
 }
Пример #9
0
 protected Computer(ICPU cpu, IRAM ram, IVideoCard videoCard, RAID hardDriveRaid, IMotherboard motherBoard)
 {
     this.cpu = cpu;
     this.ram = ram;
     this.videoCard = videoCard;
     this.hardDriveRaid = hardDriveRaid;
     this.motherBoard = motherBoard;
 }
Пример #10
0
 protected Computer(ICPU cpu, IRAM ram, IVideoCard videoCard, RAID hardDriveRaid, IMotherboard motherBoard)
 {
     this.cpu           = cpu;
     this.ram           = ram;
     this.videoCard     = videoCard;
     this.hardDriveRaid = hardDriveRaid;
     this.motherBoard   = motherBoard;
 }
Пример #11
0
 public Computer(ICpu cpu, IRam ram, IEnumerable <IHardDriver> driver, IVideoCard videoCard)
 {
     this.Cpu         = cpu;
     this.Ram         = ram;
     this.Driver      = driver; // to do
     this.VideoCard   = videoCard;
     this.Motherboard = new Motherboard(this.Cpu, this.Ram, this.VideoCard);
 }
Пример #12
0
        internal Computer(IRam ram, ICpu cpu, IEnumerable <IHardDrive> drives, IVideoCard videoCard)
        {
            this.Ram       = ram;
            this.Cpu       = cpu;
            this.Drives    = drives;
            this.VideoCard = videoCard;

            this.motherboard = new Motherboard(ram, cpu, videoCard);
        }
Пример #13
0
 public Cpu(
     byte numberOfCores,
     IRam ram,
     IVideoCard videoCard)
 {
     this.NumberOfCores = numberOfCores;
     this.Ram           = ram;
     this.VideoCard     = videoCard;
 }
Пример #14
0
 public Computer(ComputerType type, IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
 {
     // TODO: validate
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     this.Motherboard = motherboard;
 }
Пример #15
0
 internal Laptop(
     Cpu cpu,
     Ram ram,
     IEnumerable <IHardDrive> hardDrives,
     IVideoCard videoCard,
     LaptopBattery battery)
     : base(cpu, ram, hardDrives, videoCard)
 {
     this.battery = battery;
 }
Пример #16
0
        public Motherboard(ICpu cpu, IRam ram, IVideoCard videoCard)
        {
            cpu.Motherboard = this;
            this.Cpu        = cpu;

            ram.Motherboard = this;
            this.Ram        = ram;

            videoCard.Motherboard = this;
            this.VideoCard        = videoCard;
        }
Пример #17
0
        public MotherBoard(IVideoCard videoCard, IRam ram, ICpu cpu)
        {
            videoCard.Motherboard = this;
            this.VideoCard        = videoCard;

            ram.Motherboard = this;
            this.Ram        = ram;

            cpu.Motherboard = this;
            this.Cpu        = cpu;
        }
Пример #18
0
        protected Computer(
				  Cpu cpu,
				  Rammstein ram,
				  IEnumerable<HardDrive> hardDrives,
				  IVideoCard videoCard)
        {
            Cpu = cpu;
            this.Ram = ram;
            this.HardDrives = hardDrives;
            this.VideoCard = videoCard;
        }
Пример #19
0
        public Motherboard(ICpu cpu, IRam ram, IVideoCard videoCard)
        {
            cpu.Motherboard = this;
            this.Cpu = cpu;

            ram.Motherboard = this;
            this.Ram = ram;

            videoCard.Motherboard = this;
            this.VideoCard = videoCard;
        }
Пример #20
0
 internal Computer(
     ICpu cpu,
     Ram ram,
     IEnumerable <IHardDrive> hardDrives,
     IVideoCard videoCard)
 {
     this.Cpu        = cpu;
     this.Ram        = ram;
     this.HardDrives = hardDrives;
     this.VideoCard  = videoCard;
 }
Пример #21
0
 protected Computer(
     ICpu cpu,
     IRam ram,
     IEnumerable<IHardDrive> hardDrives,
     IVideoCard videoCard)
 {
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     this.Motherboard = new Motherboard(this.Cpu, this.Ram, this.VideoCard);
 }
Пример #22
0
 protected Computer(
     ICpu cpu,
     IRam ram,
     IEnumerable <IHardDrive> hardDrives,
     IVideoCard videoCard)
 {
     this.Cpu         = cpu;
     this.Ram         = ram;
     this.HardDrives  = hardDrives;
     this.VideoCard   = videoCard;
     this.Motherboard = new Motherboard(this.Cpu, this.Ram, this.VideoCard);
 }
Пример #23
0
        // The hardcoded values are used on only one place so i think that there is no need of constants.
        public override PersonalComputer ManufacturePC()
        {
            this.ram = new RamMemory(4);
            this.videoCard = new MonochromeVideoCard();
            this.cpu = new Cpu(2, 64, this.ram, this.videoCard);
            this.hardDrives = new[]
            {
                new HardDriver(2000, false, 0)
            };

            return new PersonalComputer(this.cpu, this.ram, this.videoCard, this.hardDrives);
        }
Пример #24
0
        // The hardcoded values are used on only one place so i think that there is no need of constants.
        public override PersonalComputer ManufacturePC()
        {
            this.ram = new RamMemory(8);
            this.videoCard = new ColorfulVideoCard();
            this.cpu = new Cpu(4, 64, this.ram, this.videoCard);
            this.hardDrives = new[]
            {
                new HardDriver(1000, false, 0)
            };

            return new PersonalComputer(this.cpu, this.ram, this.videoCard, this.hardDrives);
        }
Пример #25
0
        public override Laptop ManufactureLaptop()
        {
            this.ram = new RamMemory(8);
            this.videoCard = new ColorfulVideoCard();
            this.cpu = new Cpu(4, 32, this.ram, this.videoCard);
            this.hardDrives = new[]
            {
                new HardDriver(1000, false, 0)
            };
            IBattery battery = BatteryFactory.GetBattery(BatteryType.LaptopBattery);

            return new Laptop(this.cpu, this.ram, this.videoCard, this.hardDrives, battery);
        }
Пример #26
0
 public Computer(
         ComputerType type,
         Cpu cpu, 
         Ram ram,
         IEnumerable<HardDrive> hardDrives,
         IVideoCard videoCard,
         LaptopBattery battery)
 {
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     this.battery = battery;
 }
Пример #27
0
        internal Computer(
            string type,
            Cpu cpu,
            RAMMemory ram,
            IEnumerable<HardDriver> hardDrives,
            IVideoCard videoCard,
            LaptopBattery battery)
        {
            this.type = type;
            this.Cpu = cpu;
            this.Ram = ram;
            this.HardDrives = hardDrives;
            this.VideoCard = videoCard;

            this.battery = battery;
            this.motherBoard = new MotherBoard(this.Cpu, this.Ram, this.VideoCard);
        }
Пример #28
0
 public MotherBoard(Cpu cpu, RAMMemory ram, IVideoCard videoCard)
 {
     this.cpu = cpu;
     this.ram = ram;
     this.videoCard = videoCard;
 }
Пример #29
0
 public Motherboard(IRam ram, ICpu cpu, IVideoCard videoCard)
 {
     this.ram       = ram;
     this.videoCard = videoCard;
     cpu.AttachToMotherboard(this);
 }
Пример #30
0
 protected Desktop(ICpu cpu, IMotherBoard motherBoard, IVideoCard videoCard)
 {
     _cpu         = cpu;
     _motherBoard = motherBoard;
     _videoCard   = videoCard;
 }
Пример #31
0
 public Motherboard(RandomAcessMemory ram, IVideoCard videoCard)
 {
     this.RandomAcessMemory = ram;
     this.VideoCard         = videoCard;
 }
Пример #32
0
 public Server(IRam ram, ICpu cpu, IEnumerable <IHardDrive> drives, IVideoCard videoCard)
     : base(ram, cpu, drives, videoCard)
 {
 }
Пример #33
0
 public PersonalComputer(IRam ram, ICpu cpu, IEnumerable <IHardDrive> drives, IVideoCard videoCard)
     : base(ram, cpu, drives, videoCard)
 {
 }
 public Motherboard(IVideoCard videocard, IRamMemory ram)
 {
     this.VideoCard = videocard;
     this.Ram = ram;
 }
Пример #35
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;
 }
Пример #36
0
 public Server(ICpu cpu, IRam ram, IVideoCard gpu, IStorage storage)
     : base(cpu, ram, new MonochromVideoCard(), storage)
 {
 }
Пример #37
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;
 }
Пример #38
0
 public Laptop(ICpu cpu, IRam ram, IEnumerable <IHardDriver> driver, IVideoCard videoCard, ILaptopBattery battery) :
     base(cpu, ram, driver, videoCard)
 {
     this.battery = battery;
 }
Пример #39
0
 public Pc(ICpu cpu, IRam ram, IEnumerable <IHardDrive> hardDrives, IVideoCard videoCard)
     : base(cpu, ram, hardDrives, videoCard)
 {
 }
Пример #40
0
 public PersonalComputer(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable <HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
 }
 public Laptop(ICpu cpu, IRam ram, IVideoCard videoCard, IEnumerable <IHardDrive> hardDrives) : base(cpu, ram, videoCard, hardDrives)
 {
     this.LaptopBattery = new LaptopBattery();
 }
Пример #42
0
 public Motherboard(IRam ram, IVideoCard videoCard)
 {
     this.Ram = ram;
     this.VideoCard = videoCard;
 }
Пример #43
0
 public Server(CentralProcessingUnit cpu, RandomAcessMemory ram, IEnumerable <HardDriver> hardDrives, IVideoCard videoCard, IMotherboard motherBoard)
     : base(cpu, ram, hardDrives, videoCard, motherBoard)
 {
     this.CheckIfVideoCardIsMonochrome();
 }
Пример #44
0
 public ServerComputer(IMotherboard motherboard, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, IVideoCard videoCard)
     : base(ComputerType.SERVER, motherboard, cpu, ram, hardDrives, videoCard)
     {
     }
Пример #45
0
 public Laptop(ICpu cpu, IRam ram, IEnumerable <IHardDrive> hardDrives, IVideoCard videoCard, IBattery battery)
     : base(cpu, ram, hardDrives, videoCard)
 {
     this.battery = battery;
 }
Пример #46
0
 public PcMotherBoard(IRamMemory ram, ICpu cpu, IHardDrive hardDrive, IVideoCard videoCard)
     : base(ram, cpu, hardDrive, videoCard)
 {
 }
Пример #47
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;
 }
Пример #48
0
 public Pc(ICpu cpu, IRam ram, IEnumerable<IHardDrive> hardDrives, IVideoCard videoCard)
     : base(cpu, ram, hardDrives, videoCard)
 {
 }
Пример #49
0
 protected PersonalComputer(ICpu cpu, IRam ram, IVideoCard gpu, IStorage storage)
     : base(cpu, ram, gpu, storage)
 {
 }
Пример #50
0
 public Motherboard(Ram ram, IVideoCard videoCard)
 {
     this.ram = ram;
     this.videoCard = videoCard;
 }
 public PC(ICpu cpu, IRam ram, IVideoCard videoCard, IEnumerable <IHardDrive> hardDrives) : base(cpu, ram, videoCard, hardDrives)
 {
 }
Пример #52
0
 public Motherboard(IRam ram, IVideoCard videoCard)
 {
     this.Ram       = ram;
     this.VideoCard = videoCard;
 }
Пример #53
0
 public PC(ICPU cpu, IRAM ram, IVideoCard videoCard, RAID hardDriveRaid, IMotherboard motherBoard) 
     : base(cpu, ram, videoCard, hardDriveRaid, motherBoard)
 {
 }
Пример #54
0
 public PC(ICPU cpu, IRAM ram, IVideoCard videoCard, RAID hardDriveRaid, IMotherboard motherBoard)
     : base(cpu, ram, videoCard, hardDriveRaid, motherBoard)
 {
 }
 public Motherboard(IVideoCard videocard, IRamMemory ram)
 {
     this.VideoCard = videocard;
     this.Ram       = ram;
 }
Пример #56
0
 public Laptop(IRam ram, ICpu cpu, IEnumerable<IHardDrive> drives, IVideoCard videoCard, IBattery battery)
     : base(ram, cpu, drives, videoCard)
 {
     this.Battery = battery;
 }
Пример #57
0
 public GamingDesktop(ICpu cpu, IMotherBoard motherBoard, IVideoCard videoCard) : base(cpu, motherBoard, videoCard)
 {
 }
Пример #58
0
 public Laptop(ICPU cpu, IRAM ram, IVideoCard videoCard, RAID hardDriveRaid, IMotherboard motherBoard, IBattery battery)
     : base(cpu, ram, videoCard, hardDriveRaid, motherBoard)
 {
     this.battery = battery;
 }
Пример #59
0
 public OfficeDesktop(ICpu cpu, IMotherBoard motherBoard, IVideoCard videoCard) : base(cpu, motherBoard, videoCard)
 {
 }