Exemplo n.º 1
0
        public static void Main()
        {
            EventSimulator simulator = new EventSimulator();

            simulator.Run();
            simulator.Exit();
        }
Exemplo n.º 2
0
        public static void Run()
        {
            if (parties.Count == 0)
            {
                throw new Exception("At least one party must be added before running the simulation.");
            }

            foreach (var party in parties.Values)
            {
                party.Start();
            }

            des.Run();
        }