public TemporalRoom GetTemporalRoomReadings(LiveRoom liveRoom, DateTime timeFrom,
     DateTime timeTo)
 {
     TemporalRoom room = GetTemporalRoom(liveRoom);
     sMapManagerTemporal.TemporalUpdateAll(room, timeFrom, timeTo);
     return room;
 }
 public void TemperatureUpdate(LiveRoom room)
 {
     if (room.Endpoints != null && room.Endpoints.SmapEndponts.ContainsValue(SensorType.Temperature))
         room.Temperature =
             smapDal.GetCurrentSensorValue(
                 room.Endpoints.SmapEndponts.First(s => s.Value == SensorType.Temperature).Key);
 }
 private void SaveLiveRoom(LiveRoom liveRoom)
 {
     using (BuildingDbContext context = new BuildingDbContext())
     {
         context.SensorRoom.AddOrUpdate(liveRoom);
         context.SaveChanges();
     }
     SaveCorners(liveRoom.Corners);
     if (liveRoom.Endpoints != null)
         SaveSmapEndpoints(liveRoom.Endpoints);
 }
        public void Co2Update(LiveRoom room)
        {
            if (room.Endpoints != null && room.Endpoints.SmapEndponts.ContainsValue(SensorType.CO2))

                room.CO2 = (int)smapDal.GetCurrentSensorValue(room.Endpoints.SmapEndponts.First(s => s.Value == SensorType.CO2).Key);
        }
        private void CreateGroundFloorRooms()
        {
            Ø22_603_1 = new LiveRoom("Ø22-603-1", new Corners(new List<Coordinates>()
            {
                new Coordinates(10.430624295,55.3671750980001),
                new Coordinates(10.430809507,55.3671831080001),
                new Coordinates(10.430821,55.3670972850001),
                new Coordinates(10.4306357890001,55.3670892740001)
            }))
            {
                Alias = "U175",
                MaxOccupants = 48,
                MaxWifiClients = 60,
                MaxTemperature = 25,
                MaxLux = 700,
                Temperature = 22,
                CO2 = 600,
                MaxCO2 = 800,
                TotalPowerConsumption = 22,
                HardwareConsumption = 8,
                VentilationConsumption =7,
                OtherConsumption = 4,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 400,
                Motion = true,
                Occupants = 30,
                WifiClients = 40,
                SurfaceArea = 108,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "52b533d9-ca2d-5b46-9d94-59e4ba98bce2", SensorType.CO2 },
                        { "2ac063fc-96f2-5e68-b277-3339f9eb89ff",SensorType.MotionDetection },
                        { "30721f0d-606d-5a07-8cdb-9f9b20380369" , SensorType.Temperature}

                    }
                }
            };

            Ø20_510_1 = new LiveRoom("Ø20-510-1", new Corners(new List<Coordinates>()
            {
                new Coordinates(10.43076928, 55.36748349),
                new Coordinates(10.430584067, 55.3674754790001),
                new Coordinates(10.4305754100001, 55.367540122),
                new Coordinates(10.430760623, 55.3675481330001)
            }))
            {
                Alias = "U172",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 50,
                Temperature = 23,
                CO2 = 550,
                TotalPowerConsumption = 13,
                HardwareConsumption = 5,
                VentilationConsumption = 4,
                OtherConsumption = 2,
                LightConsumption = 2,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = false,
                Lux = 0,
                Motion = false,
                Occupants = 0,
                WifiClients = 0,
                SurfaceArea = 80,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "b7c51bf1-bd68-58d9-9cb1-d81fb2ee6f67", SensorType.CO2 },
                        { "53dfbf10-7aba-50f9-9aa5-6401993ffcee", SensorType.MotionDetection },
                        { "57ef0c6d-8801-5315-8916-c55cf4721e35", SensorType.Temperature }

                    }
                }
            };

            Ø20_511_1 = new LiveRoom("Ø20-511-1", new Corners(new List<Coordinates>()
            {
                new Coordinates(10.43077966,55.367405983),
                new Coordinates(10.430594447,55.367397972),
                new Coordinates(10.430584067,55.3674754790001),
                new Coordinates(10.43076928,55.36748349)
            }))
            {
                Alias = "U170",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 120,
                MaxWifiClients = 150,
                Temperature = 24,
                CO2 = 700,
                TotalPowerConsumption = 33.5,
                HardwareConsumption = 9,
                VentilationConsumption = 9.5,
                OtherConsumption = 8,
                LightConsumption = 7,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 550,
                Motion = true,
                Occupants = 60,
                WifiClients = 76,
                SurfaceArea = 97,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "9a4de872-0414-5d2e-868d-fe649c06ee56" , SensorType.CO2},
                        { "535b9bf9-8a6a-56bb-b43a-31b2c2a090e3", SensorType.MotionDetection },
                        {"dbcdc366-a30e-52be-8940-5c4ee9cdaa29" ,  SensorType.Temperature}

                    }
                }
            };

            Ø20_508a_1 = new LiveRoom("Ø20-508a-1", new Corners(new List<Coordinates>()
            {
                new Coordinates(10.430723347,55.3675465210001),
                new Coordinates(10.4305754100001,55.367540122),
                new Coordinates(10.4305582060001,55.3676685890001),
                new Coordinates(10.4307061420001,55.367674987)
            }))
            {
                RoomType = RoomType.Studyzone,
                Alias = "Studiezone 7",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 430,
                TotalPowerConsumption = 8,
                HardwareConsumption = 1,
                VentilationConsumption = 3,
                OtherConsumption = 1,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 200,
                Motion = false,
                Occupants = 5,
                WifiClients = 4,
                SurfaceArea = 125,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "bec6ad6b-753a-548d-bb8c-4e03f4d67b2e" , SensorType.CO2},
                        { "b4cb304d-1425-5165-b83d-f3dc985858a6", SensorType.MotionDetection },
                        { "411d6c5e-da82-526a-8825-c27c3db4137b" , SensorType.Temperature}

                    }
                }
            };

            Ø22_508_1 = new LiveRoom("Ø22-508-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4309014460001, 55.367554225),
                new Coordinates(10.4308842190001, 55.3676828480001),
                new Coordinates(10.4310319320001, 55.367689237),
                new Coordinates(10.4310491580001, 55.3675606140001)
            }))
            {
                RoomType = RoomType.Studyzone,
                Alias = "Studiezone 8",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 480,
                TotalPowerConsumption = 16,
                HardwareConsumption = 5,
                VentilationConsumption = 6,
                OtherConsumption = 2,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 390,
                Motion = true,
                Occupants = 16,
                WifiClients = 20,
                SurfaceArea = 125,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "a19b2b8c-a4f0-5fc1-84af-d94e07329589" , SensorType.CO2},
                        { "34fb23ff-8d91-59ed-b30f-3a80d6262251", SensorType.MotionDetection },
                        { "b498b5ce-9084-57e6-905a-e0c15a8399f7", SensorType.Temperature }
                    }
                }
            };

            Ø22_510_1 = new LiveRoom("Ø22-510-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.431057781, 55.3674962250001),
                new Coordinates(10.4308716730001, 55.3674881760001),
                new Coordinates(10.4308630510001, 55.3675525640001),
                new Coordinates(10.4310491580001, 55.3675606140001)
            }))
            {
                Alias = "U171",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 60,
                Temperature = 24,
                CO2 = 420,
                TotalPowerConsumption = 10,
                HardwareConsumption = 2,
                VentilationConsumption = 3,
                OtherConsumption = 1,
                LightConsumption = 4,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 450,
                Motion = true,
                Occupants = 15,
                WifiClients = 20,
                SurfaceArea = 80,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "686e2e0c-294b-59c3-b1aa-a39d04044bfa", SensorType.CO2 },
                        { "30c18abd-3071-5283-95cd-341ad6b093f1", SensorType.MotionDetection },
                        {"b9dac0d2-0238-54e6-84e7-366e89610a61",  SensorType.Temperature }
                    }
                }
            };

            Ø22_601b_1 = new LiveRoom("Ø22-601b-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4311009210001, 55.3671740930001),
                new Coordinates(10.43091481, 55.3671660420001),
                new Coordinates(10.4308999900001, 55.367276712),
                new Coordinates(10.4310861000001, 55.3672847620001)
            }))
            {
                Alias = "U177",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 120,
                MaxWifiClients = 150,
                Temperature = 24,
                CO2 = 515,
                TotalPowerConsumption = 33,
                HardwareConsumption = 9,
                VentilationConsumption = 9,
                OtherConsumption = 7,
                LightConsumption = 8,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 600,
                Motion = true,
                Occupants = 100,
                WifiClients = 90,
                SurfaceArea = 139,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "ad415c75-5ef9-5e34-93d0-7ddccfb85010", SensorType.CO2 },
                        { "830364bb-6728-532b-bf58-2786d3d5a274" , SensorType.MotionDetection},
                        { "c4875c12-1198-5ca5-8a5d-23c81bf1701a", SensorType.Temperature }
                    }
                }
            };

            Ø22_604_1 = new LiveRoom("Ø22-604-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4309793780001,55.366974462),
                new Coordinates(10.430962113,55.3671033680001),
                new Coordinates(10.431109539,55.3671097450001),
                new Coordinates(10.431126803,55.3669808390001)
            }))
            {
                RoomType = RoomType.Studyzone,
                Endpoints = new Endpoints(){
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "c936d681-c892-5dd8-9ce5-28b59b428c2f", SensorType.CO2},
                        { "13650000-df43-5ba9-a909-ae918a3e1027", SensorType.MotionDetection},
                        { "e00a920b-31b7-5a99-a5e9-59eeeed69c9a", SensorType.Temperature}
                    }
                },
                Alias = "Studiezone 6",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 480,
                TotalPowerConsumption = 22,
                HardwareConsumption = 7,
                VentilationConsumption = 4,
                OtherConsumption = 5,
                LightConsumption = 6,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 240,
                Motion = true,
                Occupants = 12,
                WifiClients = 18,
                SurfaceArea = 125
            };

            Ø20_604b_1 = new LiveRoom("Ø20-604b-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430801009,55.3669667990001),
                new Coordinates(10.4306530480001,55.366960399),
                new Coordinates(10.4306357890001,55.3670892740001),
                new Coordinates(10.43078375,55.367095674)
            }))
            {
                Alias = "Studiezone 5",
                RoomType = RoomType.Studyzone,
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 23,
                CO2 = 535,
                TotalPowerConsumption = 23.1,
                HardwareConsumption = 7.5,
                VentilationConsumption = 6.2,
                OtherConsumption = 4.3,
                LightConsumption = 5.1,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 310,
                Motion = true,
                Occupants = 35,
                WifiClients = 50,
                SurfaceArea = 125,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "1b1fa3c0-a23f-5280-a221-e8bbb79210d4", SensorType.CO2 },
                        { "03db442e-b690-55a7-9cb4-a680bd27ba96", SensorType.MotionDetection },
                        { "d08b79ea-4145-5248-86a2-7cd61c772c65", SensorType.Temperature }
                    }
                }
            };

            Ø20_603_1 = new LiveRoom("Ø20-603-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.43091481,55.3671660420001),
                new Coordinates(10.4311009210001,55.3671740930001),
                new Coordinates(10.431109539,55.3671097450001),
                new Coordinates(10.430923427,55.367101694)
            }))
            {
                Alias = "U176",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 25,
                Temperature = 22.5,
                CO2 = 430,
                TotalPowerConsumption = 1.7,
                HardwareConsumption = 0.5,
                VentilationConsumption = 1.2,
                OtherConsumption = 0,
                LightConsumption = 0,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = false,
                Lux = 0,
                Motion = false,
                Occupants = 0,
                WifiClients = 0,
                SurfaceArea = 80,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "8b4072ba-6ce4-5e73-a643-12dfb6e0ec2f", SensorType.CO2 },
                        { "25c972e7-897a-5073-991c-1830b87f79fc", SensorType.MotionDetection },
                        { "7ab3149f-d9ee-57d0-8917-5a20e0b38660", SensorType.Temperature }

                    }
                }
            };

            Ø20_601b_1 = new LiveRoom("Ø20-601b-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4306123600001,55.367264219),
                new Coordinates(10.4307975720001,55.36727223),
                new Coordinates(10.430809507,55.3671831080001),
                new Coordinates(10.430624295,55.3671750980001)
            }))
            {
                Alias = "U174",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 60,
                MaxWifiClients = 100,
                Temperature = 22,
                CO2 = 485,
                TotalPowerConsumption = 15.9,
                HardwareConsumption = 4.8,
                VentilationConsumption = 5.2,
                OtherConsumption = 2.1,
                LightConsumption = 3.8,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 340,
                Motion = true,
                Occupants = 24,
                WifiClients = 28,
                SurfaceArea = 111,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "4655c0eb-25b9-5652-816a-933e50e6e296", SensorType.CO2 },
                        { "bdb11d16-75bc-55c4-8aef-2cd2c9972973", SensorType.MotionDetection },
                        { "7c4fc2e8-47ea-56b1-a1a7-58c2b8f6ef5a", SensorType.Temperature }

                    }
                }
            };

            Ø22_511_1 = new LiveRoom("Ø22-511-1", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.431072543,55.3673859940001),
                new Coordinates(10.4308864340001,55.3673779440001),
                new Coordinates(10.4308716730001,55.3674881760001),
                new Coordinates(10.431057781,55.3674962250001)
            }))
            {
                Alias = "U173",
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 60,
                MaxWifiClients = 75,
                Temperature = 20,
                CO2 = 490,
                TotalPowerConsumption = 14,
                HardwareConsumption = 3.7,
                VentilationConsumption = 4.1,
                OtherConsumption = 1.9,
                LightConsumption = 4.3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 445,
                Motion = false,
                Occupants = 20,
                WifiClients = 16,
                SurfaceArea = 139,
                Endpoints = new Endpoints()
                {
                    SmapEndponts = new Dictionary<string, SensorType>()
                    {
                        { "e7f08bd3-4096-5b76-a90b-ccaac7451730", SensorType.CO2 },
                        { "208d2238-69cd-5b3f-9469-cc94e2c089e3", SensorType.MotionDetection },
                        { "4782fdad-a676-54e3-a70b-eeffd5491d13", SensorType.Temperature }
                    }
                }
            };
        }
        private void CreateParterreFloorRooms()
        {
            Ø20_604_0 = new LiveRoom("Ø20-604-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430841441,55.366968517),
                new Coordinates(10.430653052,55.3669603690001),
                new Coordinates(10.430635802,55.367089175),
                new Coordinates(10.430824193,55.367097324)
            }))
            {
                RoomType = RoomType.Studyzone,
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 430,
                HardwareConsumption = 1,
                VentilationConsumption = 3,
                OtherConsumption = 1,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 200,
                Motion = false,
                Occupants = 5,
                WifiClients = 4,
                SurfaceArea = 162
            };

            Ø20_603_0 = new LiveRoom("Ø20-603-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430824193,55.367097324),
                new Coordinates(10.430635802,55.367089175),
                new Coordinates(10.4306243130001,55.3671749660001),
                new Coordinates(10.4308127080001,55.367183089)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 430,
                HardwareConsumption = 1,
                VentilationConsumption = 3,
                OtherConsumption = 1,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 200,
                Motion = false,
                Occupants = 5,
                WifiClients = 4,
                SurfaceArea = 108
            };

            Ø20_601b_0 = new LiveRoom("Ø20-601b-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430612384,55.367264042),
                new Coordinates(10.4308007770001,55.3672721890001),
                new Coordinates(10.4308127080001,55.367183089),
                new Coordinates(10.4306243130001,55.3671749660001)
            }))
            {
                MaxOccupants = 48,
                MaxWifiClients = 60,
                MaxTemperature = 25,
                MaxLux = 700,
                Temperature = 22,
                CO2 = 600,
                MaxCO2 = 800,
                TotalPowerConsumption = 22,
                HardwareConsumption = 8,
                VentilationConsumption = 7,
                OtherConsumption = 4,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 400,
                Motion = true,
                Occupants = 30,
                WifiClients = 40,
                SurfaceArea = 111
            };

            Ø20_511_0 = new LiveRoom("Ø20-511-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4307828560001,55.367406014),
                new Coordinates(10.430594462,55.367397866),
                new Coordinates(10.4305840530001,55.367475588),
                new Coordinates(10.430772448,55.367483737)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 120,
                MaxWifiClients = 150,
                Temperature = 24,
                CO2 = 515,
                TotalPowerConsumption = 33,
                HardwareConsumption = 9,
                VentilationConsumption = 9,
                OtherConsumption = 7,
                LightConsumption = 8,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 600,
                Motion = true,
                Occupants = 100,
                WifiClients = 90,
                SurfaceArea = 98
            };

            Ø20_510a_0 = new LiveRoom("Ø20-510a-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4305754280001,55.3675399900001),
                new Coordinates(10.4307638240001,55.3675481390001),
                new Coordinates(10.430772448,55.367483737),
                new Coordinates(10.4305840530001,55.367475588)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 60,
                Temperature = 24,
                CO2 = 420,
                TotalPowerConsumption = 10,
                HardwareConsumption = 2,
                VentilationConsumption = 3,
                OtherConsumption = 1,
                LightConsumption = 4,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 450,
                Motion = true,
                Occupants = 15,
                WifiClients = 20,
                SurfaceArea = 80
            };

            Ø20_508a_0 = new LiveRoom("Ø20-508a-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4307638240001,55.3675481390001),
                new Coordinates(10.4305754280001,55.3675399900001),
                new Coordinates(10.4305581780001,55.3676687940001),
                new Coordinates(10.4307465750001,55.367676943)
            }))
            {
                RoomType = RoomType.Studyzone,
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 480,
                TotalPowerConsumption = 22,
                HardwareConsumption = 7,
                VentilationConsumption = 4,
                OtherConsumption = 5,
                LightConsumption = 6,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 240,
                Motion = true,
                Occupants = 12,
                WifiClients = 18,
                SurfaceArea = 162
            };

            Ø22_604_0 = new LiveRoom("Ø22-604-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4311268000001,55.366980862),
                new Coordinates(10.430940122,55.3669727860001),
                new Coordinates(10.430922874,55.3671015880001),
                new Coordinates(10.43110955,55.367109665)
            }))
            {
                RoomType = RoomType.Studyzone,
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 480,
                TotalPowerConsumption = 16,
                HardwareConsumption = 5,
                VentilationConsumption = 6,
                OtherConsumption = 2,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 390,
                Motion = true,
                Occupants = 16,
                WifiClients = 20,
                SurfaceArea = 162
            };

            Ø22_603_0 = new LiveRoom("Ø22-603-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.43110955,55.367109665),
                new Coordinates(10.430922874,55.3671015880001),
                new Coordinates(10.4309142490001,55.3671659950001),
                new Coordinates(10.4311009250001,55.367174069)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 25,
                Temperature = 22.5,
                CO2 = 430,
                TotalPowerConsumption = 1.7,
                HardwareConsumption = 0.5,
                VentilationConsumption = 1.2,
                OtherConsumption = 0,
                LightConsumption = 0,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = false,
                Lux = 0,
                Motion = false,
                Occupants = 0,
                WifiClients = 0,
                SurfaceArea = 80
            };

            Ø22_601b_0 = new LiveRoom("Ø22-601b-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4308994830001,55.367276254),
                new Coordinates(10.431086158,55.367284328),
                new Coordinates(10.4311009250001,55.367174069),
                new Coordinates(10.4309142490001,55.3671659950001)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 120,
                MaxWifiClients = 150,
                Temperature = 24,
                CO2 = 700,
                TotalPowerConsumption = 33.5,
                HardwareConsumption = 9,
                VentilationConsumption = 9.5,
                OtherConsumption = 8,
                LightConsumption = 7,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 550,
                Motion = true,
                Occupants = 60,
                WifiClients = 76,
                SurfaceArea = 139
            };

            Ø22_512a_0= new LiveRoom("Ø22-512a-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.43107259,55.3673856410001),
                new Coordinates(10.430885916,55.3673775670001),
                new Coordinates(10.4308797510001,55.3674236040001),
                new Coordinates(10.431066425,55.3674316780001)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 430,
                TotalPowerConsumption = 8,
                HardwareConsumption = 1,
                VentilationConsumption = 3,
                OtherConsumption = 1,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 200,
                Motion = false,
                Occupants = 5,
                WifiClients = 4,
                SurfaceArea = 57
            };

            Ø22_511_0 = new LiveRoom("Ø22-511-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.431066425,55.3674316780001),
                new Coordinates(10.4308797510001,55.3674236040001),
                new Coordinates(10.430871127,55.367488006),
                new Coordinates(10.4310578000001,55.3674960800001)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 23,
                CO2 = 535,
                TotalPowerConsumption = 23.1,
                HardwareConsumption = 7.5,
                VentilationConsumption = 6.2,
                OtherConsumption = 4.3,
                LightConsumption = 5.1,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 310,
                Motion = true,
                Occupants = 35,
                WifiClients = 50,
                SurfaceArea = 80
            };

            Ø22_510_0 = new LiveRoom("Ø22-510-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4310578000001,55.3674960800001),
                new Coordinates(10.430871127,55.367488006),
                new Coordinates(10.4308625030001,55.3675524080001),
                new Coordinates(10.4310491750001,55.367560482)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 22.5,
                CO2 = 515,
                TotalPowerConsumption = 23.6,
                HardwareConsumption = 7.1,
                VentilationConsumption = 6.9,
                OtherConsumption = 4.2,
                LightConsumption = 5.4,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 325,
                Motion = true,
                Occupants = 31,
                WifiClients = 33,
                SurfaceArea = 80
            };

            Ø22_508_0 = new LiveRoom("Ø22-508-0", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4310491750001,55.367560482),
                new Coordinates(10.4308625030001,55.3675524080001),
                new Coordinates(10.4308452550001,55.367681212),
                new Coordinates(10.4310319250001,55.367689286)
            }))
            {
                RoomType = RoomType.Studyzone,
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 23,
                CO2 = 535,
                TotalPowerConsumption = 23.1,
                HardwareConsumption = 7.5,
                VentilationConsumption = 6.2,
                OtherConsumption = 4.3,
                LightConsumption = 5.1,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 310,
                Motion = true,
                Occupants = 35,
                WifiClients = 50,
                SurfaceArea = 162
            };
        }
 private void CreateCellarFloorRooms()
 {
     cellarPlaceholderRoom = new LiveRoom("Placeholder", new Corners(new List<Coordinates>()
      {
         new Coordinates(10.430841441,55.366968517),
         new Coordinates(10.430653052,55.3669603690001),
         new Coordinates(10.430635802,55.367089175),
         new Coordinates(10.430824193,55.367097324)
     }))
     {
         RoomType = RoomType.Studyzone,
         MaxTemperature = 25,
         MinTemperature = 20,
         MaxCO2 = 1000,
         MaxLux = 600,
         MaxOccupants = 50,
         MaxWifiClients = 75,
         Temperature = 20,
         CO2 = 350,
         HardwareConsumption = 290,
         VentilationConsumption = 310,
         OtherConsumption = 90,
         LightConsumption = 150,
         MaxHardwareConsumption = 400,
         MaxLightConsumption = 800,
         MaxOtherConsumption = 500,
         MaxVentilationConsumption = 1000,
         Light = false,
         Lux = 0,
         Motion = false,
         Occupants = 0,
         WifiClients = 0,
         SurfaceArea = 162
     };
 }
        private void CreateFirstFloorRooms()
        {
            Ø20_603c_2 = new LiveRoom("Ø20-603c-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430821947,55.3671189720001),
                new Coordinates(10.4306329070001,55.3671107960001),
                new Coordinates(10.4306271780001,55.3671535780001),
                new Coordinates(10.4308162180001,55.3671617540001),
            }))
            {
                MaxOccupants = 36,
                MaxWifiClients = 60,
                MaxTemperature = 25,
                MaxLux = 700,
                Temperature = 22,
                CO2 = 600,
                MaxCO2 = 800,
                TotalPowerConsumption = 22,
                HardwareConsumption = 8,
                VentilationConsumption = 7,
                OtherConsumption = 4,
                LightConsumption = 3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 400,
                Motion = true,
                Occupants = 20,
                WifiClients = 28,
                SurfaceArea = 53
            };

            Ø20_601b_2 = new LiveRoom("Ø20-601b-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4308162180001,55.3671617540001),
                new Coordinates(10.4306271780001,55.3671535780001),
                new Coordinates(10.43061241,55.367263849),
                new Coordinates(10.430801452,55.3672720260001)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 120,
                MaxWifiClients = 150,
                Temperature = 24,
                CO2 = 700,
                TotalPowerConsumption = 33.5,
                HardwareConsumption = 9,
                VentilationConsumption = 9.5,
                OtherConsumption = 8,
                LightConsumption = 7,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 550,
                Motion = true,
                Occupants = 60,
                WifiClients = 76,
                SurfaceArea = 139
            };
            
            Ø20_511_2 = new LiveRoom("Ø20-511-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430783557,55.3674056510001),
                new Coordinates(10.4305945140001,55.367397474),
                new Coordinates(10.4305840530001,55.367475589),
                new Coordinates(10.430773097,55.367483765)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 420,
                TotalPowerConsumption = 10,
                HardwareConsumption = 2,
                VentilationConsumption = 3,
                OtherConsumption = 1,
                LightConsumption = 4,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 450,
                Motion = true,
                Occupants = 25,
                WifiClients = 30,
                SurfaceArea = 98
            };

            Ø20_510b_2 = new LiveRoom("Ø20-510b-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430773097,55.367483765),
                new Coordinates(10.4305840530001,55.367475589),
                new Coordinates(10.4305783130001,55.3675184460001),
                new Coordinates(10.430767358,55.36752662)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 50,
                Temperature = 23,
                CO2 = 550,
                TotalPowerConsumption = 13,
                HardwareConsumption = 5,
                VentilationConsumption = 4,
                OtherConsumption = 2,
                LightConsumption = 2,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = false,
                Lux = 0,
                Motion = false,
                Occupants = 0,
                WifiClients = 0,
                SurfaceArea = 53
            };

            Ø22_603b_2 = new LiveRoom("Ø22-603b-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.431106696,55.367130978),
                new Coordinates(10.4309197540001,55.3671228920001),
                new Coordinates(10.430913984,55.3671659830001),
                new Coordinates(10.4311009250001,55.367174069)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 25,
                Temperature = 22.5,
                CO2 = 430,
                TotalPowerConsumption = 1.7,
                HardwareConsumption = 0.5,
                VentilationConsumption = 1.2,
                OtherConsumption = 0,
                LightConsumption = 0,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = false,
                Lux = 0,
                Motion = false,
                Occupants = 0,
                WifiClients = 0,
                SurfaceArea = 53
            };

            Ø22_601b_2 = new LiveRoom("Ø22-601b-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4311009250001,55.367174069),
                new Coordinates(10.430913984,55.3671659830001),
                new Coordinates(10.430899213,55.367276288),
                new Coordinates(10.431086153,55.3672843740001)

            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 120,
                MaxWifiClients = 150,
                Temperature = 24,
                CO2 = 515,
                TotalPowerConsumption = 23,
                HardwareConsumption = 9,
                VentilationConsumption = 9,
                OtherConsumption = 7,
                LightConsumption = 8,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 600,
                Motion = true,
                Occupants = 100,
                WifiClients = 90,
                SurfaceArea = 139
            };

            Ø22_511_2 = new LiveRoom("Ø22-511-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.4310725510001,55.3673859370001),
                new Coordinates(10.430885613,55.3673778510001),
                new Coordinates(10.4308708630001,55.367487995),
                new Coordinates(10.4310578000001,55.3674960810001)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 48,
                MaxWifiClients = 75,
                Temperature = 24,
                CO2 = 480,
                TotalPowerConsumption = 22,
                HardwareConsumption = 7,
                VentilationConsumption = 4,
                OtherConsumption = 5,
                LightConsumption = 6,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 240,
                Motion = true,
                Occupants = 12,
                WifiClients = 18,
                SurfaceArea = 139
            };

            Ø22_510b_2 = new LiveRoom("Ø22-510b-2", new Corners(new List<Coordinates>()
             {
                new Coordinates(10.430865135,55.3675307730001),
                new Coordinates(10.4310520710001,55.367538859),
                new Coordinates(10.4310578000001,55.3674960810001),
                new Coordinates(10.4308708630001,55.367487995)
            }))
            {
                MaxTemperature = 25,
                MaxCO2 = 800,
                MaxLux = 700,
                MaxOccupants = 36,
                MaxWifiClients = 50,
                Temperature = 20,
                CO2 = 490,
                TotalPowerConsumption = 14,
                HardwareConsumption = 3.7,
                VentilationConsumption = 4.1,
                OtherConsumption = 1.9,
                LightConsumption = 4.3,
                MaxHardwareConsumption = 10,
                MaxLightConsumption = 10,
                MaxOtherConsumption = 10,
                MaxVentilationConsumption = 10,
                Light = true,
                Lux = 445,
                Motion = false,
                Occupants = 20,
                WifiClients = 16,
                SurfaceArea = 53
            };
        }
 private TemporalRoom GetTemporalRoom(LiveRoom liveRoom)
 {
     TemporalRoom room = (TemporalRoom)liveRoom;
     return room;
 }