Пример #1
0
        /// <summary>
        /// Controller that runs the program by finding the routes, sorting the groups and simulates the movement
        /// </summary>
        /// <returns>Dictionary Time, People </returns>
        public Dictionary <int, int> RunProgram()
        {
            int AmountOfGroups = 0;

            AmountOfGroups = ControllerMap.Groups.Count;
            ControllerMap.SortGroupList();
            AStarAlgorithm.AStarCalcAndSetAllRoutes(ControllerMap.Groups);
            ControllerMap.PrepMapForSimulation();
            Console.WriteLine("[DEBUG] Im done!");
            Console.WriteLine(AmountOfGroups);
            return(ControllerMap.RunEachCycle());
        }