public void RetrieveDistributedList()
        {
            // Creating virtual Servers for testing.
            List<VirtualServer> LvServers = new List<VirtualServer>();
            LvServers.Add(new VirtualServer(12, 65, 32));
            LvServers.Add(new VirtualServer(8, 80, 16));
            LvServers.Add(new VirtualServer(8, 25, 24));
            LvServers.Add(new VirtualServer(4, 16, 8));
            LvServers.Add(new VirtualServer(24, 80, 32));

            // Creating a physical master server from a specific type.
            PhysicalServer masterServer = new PhysicalServer(64, 100, 128);

            // Create distribution object.
            VMDistribution vmDist = new VMDistribution(LvServers, masterServer);

            // Distribute the servers on the physical server blades.
            vmDist.DistributeVMServersFirstFit();

            // Retrieve List
            List<PhysicalServer> LpServer = vmDist.RetrieveDistributionList;

            foreach(var server in LpServer)
            {
                Console.WriteLine("---");
                Console.WriteLine("Server: ");
                Console.WriteLine("CPU: " + server.CPUCoreCountMax);
                Console.WriteLine("Bandwidth: " + server.BandwidthInMBit);
                Console.WriteLine("RAM: " + server.RAMInGByte);
                Console.WriteLine("State: " + server.ServerInstanceState);
                Console.WriteLine("Contains Nr. of VM Servers: " + server.ActiveVirtualServers.Count);
            }
        }
        public VMDistribution(List<VirtualServer> vServers, PhysicalServer physicalMasterServer)
        {
            _LvirtualServers = vServers;
            _MasterPhysicalServer = physicalMasterServer;

            _LPhysicalServers = new List<PhysicalServer>();
            _LPhysicalServers.Add(new PhysicalServer(_MasterPhysicalServer.CPUCoreCountMax, _MasterPhysicalServer.BandwidthInMBit, _MasterPhysicalServer.RAMInGByte));
        }
        public void DistributeVMServers()
        {
            // Creating virtual Servers for testing.
            List<VirtualServer> LvServers = new List<VirtualServer>();
            LvServers.Add(new VirtualServer(12, 100, 32));
            LvServers.Add(new VirtualServer(8, 80, 16));
            LvServers.Add(new VirtualServer(8, 25, 24));
            LvServers.Add(new VirtualServer(4, 16, 8));
            LvServers.Add(new VirtualServer(24, 80, 32));

            // Creating a physical master server from a specific type.
            PhysicalServer masterServer = new PhysicalServer(64, 100, 128);

            // Create distribution object.
            VMDistribution vmDist = new VMDistribution(LvServers, masterServer);

            // Distribute the servers on the physical server blades.
            vmDist.DistributeVMServersFirstFit();
        }