Ejemplo n.º 1
0
        private static void HiveGenerationEvent(object source, ElapsedEventArgs e)
        {
            Console.WriteLine("Hive generation started");
            //generate new hives in top 10% event saturated locs, lower event saturation
            List <UserMovementHistory> umh = UsersManager.GetHighestEventSaturationLocations((decimal)0.1);

            foreach (UserMovementHistory u in umh)
            {
                HiveNode h = HiveManager.generateRandomHive(u.location);
                UsersManager.UpdateEventSaturations(u.location, -5);
                Console.WriteLine("Hive generated: " + h.location.Latitude + " | " + h.location.Longitude);
            }
        }