Ejemplo n.º 1
0
        public PackageStub(HeatpumpId priPump, ContainerId solarContainer, int numContainers, BoilerId?secBoiler, SolarPanelId?solar,
                           int?numberOfSolars, ContainerId?container, TempControlId?tempControl)
        {
            var factory = new ApplianceFactory();

            ApplianceInstances.Add(new ApplianceInstance()
            {
                Appliance = factory.GetHeatpump((priPump)), IsPrimary = true
            });
            ApplianceInstances.Add(new ApplianceInstance()
            {
                Appliance        = factory.GetContainer(solarContainer),
                IsSolarContainer = true
            });
            ApplianceInstances.Add(new ApplianceInstance()
            {
                Appliance = factory.GetContainer(container ?? 0)
            });
            for (int i = 0; i < numberOfSolars; i++)
            {
                ApplianceInstances.Add(new ApplianceInstance()
                {
                    Appliance            = factory.GetSolarPanel(solar ?? 0),
                    IsUsedForRoomHeating = true
                });
            }
            ApplianceInstances.Add(new ApplianceInstance()
            {
                Appliance = factory.GetBoiler(secBoiler ?? 0)
            });
            ApplianceInstances.Add(new ApplianceInstance()
            {
                Appliance = factory.GetTempControl(tempControl ?? 0)
            });
            for (int i = 0; i < numContainers; i++)
            {
                ApplianceInstances.Add(new ApplianceInstance()
                {
                    Appliance        = factory.GetContainer(solarContainer),
                    IsSolarContainer = true
                });
            }
            for (int i = 0; i < numContainers - 1; i++)
            {
                ApplianceInstances.Add(new ApplianceInstance()
                {
                    Appliance = factory.GetContainer(solarContainer)
                });
            }
        }
Ejemplo n.º 2
0
        public Appliance GetHeatpump(HeatpumpId id)
        {
            switch (id)
            {
            case HeatpumpId.Compress7000:
                return(new ApplianceStub("Compress7000", new HeatingUnitDataSheet()
                {
                    AFUE = 158, AFUEColdClima = 164, AFUEWarmClima = 151, WattUsage = 10
                }, ApplianceTypes.HeatPump));

            case HeatpumpId.Vitocal200S:
                return(new ApplianceStub("Vitocal 200-S", new HeatingUnitDataSheet()
                {
                    AFUE = 118, AFUEColdClima = 100, AFUEWarmClima = 183, WattUsage = 9, InternalTempControl = "2"
                }, ApplianceTypes.HeatPump));

            case HeatpumpId.Compress5000:
                return(new ApplianceStub("Compress 5000", new HeatingUnitDataSheet()
                {
                    AFUE = 133, AFUEColdClima = 135, AFUEWarmClima = 132, WattUsage = 43, InternalTempControl = "7"
                }, ApplianceTypes.HeatPump));

            case HeatpumpId.Vitocal350A:
                return(new ApplianceStub("Vitocal 350-A", new HeatingUnitDataSheet()
                {
                    AFUE = 112, AFUEColdClima = 98, AFUEWarmClima = 138, WattUsage = 10, InternalTempControl = "3"
                }, ApplianceTypes.HeatPump));

            case HeatpumpId.Compress6000AW5:
                return(new ApplianceStub("Compress6000 AW-5", new HeatingUnitDataSheet()
                {
                    AFUE = 139, AFUEColdClima = 130, AFUEWarmClima = 164, WattUsage = 4
                }, ApplianceTypes.HeatPump));

            default:
                return(new Appliance());
            }
        }