예제 #1
0
        void Init()
        {
            //Console.Out.WriteLine("Program Starts...");
            Global global = Global.getInstance();
            VANETOrganization.GenerateNodes();
            VANETOrganization.GenerateOrganizations();
            VANETOrganization.GenerateNetworks();
            VANETOrganization.GenerateNodePositionsAllRandom();
            EventManager handler = new EventManager();
            handler.LoadEvents();

            global.mainForm = (MainForm)this;
            inited = true;
        }
예제 #2
0
 private void generateObjectMotionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Global global = Global.getInstance();
     EventGenerator generator = new EventGenerator();
     generator.GenerateRandomObjectMotionEvents(true, 30, 5, global.objectNum, NodeType.OBJECT, global.eventsFileName);
     EventManager manager = new EventManager();
     manager.LoadEvents(true);
 }
예제 #3
0
 public static void LoadEvents()
 {
     EventManager manager = new EventManager();
     manager.LoadEvents();
 }
예제 #4
0
 public static void LoadEvents(bool clear)
 {
     EventManager manager = new EventManager();
     manager.LoadEvents(clear);
 }
예제 #5
0
 public static void AddEvent(Event e)
 {
     EventManager manager = new EventManager();
     manager.AddEvent(e);
 }