示例#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
 public static void LoadEvents(bool clear)
 {
     EventManager manager = new EventManager();
     manager.LoadEvents(clear);
 }
示例#3
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);
 }
示例#4
0
 public static void LoadEvents()
 {
     EventManager manager = new EventManager();
     manager.LoadEvents();
 }