Example #1
0
        static void Main()
        {
            SimulatorController controller = new SimulatorController();

            controller.Setup();
            controller.Run();
        }
Example #2
0
 public ObserverSetup(Course c, SimulatorController contr)
 {
     InitializeComponent();
     myCourse   = c;
     controller = contr;
     checkedListBox1.Items.Add("Report to console");
     checkedListBox1.Items.Add("Report athletes in list");
     checkedListBox1.Items.Add("Report athletes on a 1D line");
     checkedListBox1.Items.Add("Compare 2 athletes");
     observersToAdd = new List <Observer>();
 }
Example #3
0
        private void StartSimulation()
        {
            Thread myThread = new Thread(new ThreadStart(subjectListener));
            SimulatorController controller = new SimulatorController();

            running = true;
            myThread.Start();

            controller.Run("../../../SimulationData/Short Race Simulation-01.csv");

            myThread.Abort();
        }
Example #4
0
        static void Main()
        {
            SimulatorController controller = new SimulatorController();
            Course myCourse = new Course();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new CourseSetup(myCourse));
            Application.Run(new RaceSetup(myCourse));
            Application.Run(new ObserverSetup(myCourse, controller));

            return;
        }