/// <summary>
        /// Initializes Prediction Services
        /// </summary>
        public static void Initialize(Menu mainMenu, string prefMenuName = "SPRED")
        {
            if (blInitialized)
            {
                throw new Exception("SPrediction Already Initialized");
            }

            PathTracker.Initialize();
            StasisPrediction.Initialize();
            ConfigMenu.Initialize(mainMenu, prefMenuName);
            Drawings.Initialize();

            blInitialized = true;
        }
示例#2
0
        /// <summary>
        /// Initializes Prediction Services
        /// </summary>
        public static void Initialize(Menu mainMenu)
        {
            if (mainMenu == null)
            {
                throw new NullReferenceException("Menu cannot be null!");
            }

            PathTracker.Initialize();
            Collision.Initialize();
            StasisPrediction.Initialize();
            ConfigMenu.Initialize(mainMenu);
            Drawings.Initialize();

            blInitialized = true;
        }
示例#3
0
        /// <summary>
        /// Initializes Prediction Services
        /// </summary>
        public static void Initialize(Menu mainMenu, string prefMenuName = "SPRED")
        {
            if (blInitialized)
            {
                Console.WriteLine("SPrediction Already Initialized");
                return;
            }

            PathTracker.Initialize();
            Collision.Initialize();
            StasisPrediction.Initialize();
            ConfigMenu.Initialize(mainMenu, prefMenuName);
            Drawings.Initialize();

            blInitialized = true;
        }
示例#4
0
        public static void Initialize()
        {
            try
            {
                PathTracker.Initialize();
                Collision.Initialize();
                StasisPrediction.Initialize();
                ConfigMenu.Initialize();
                Drawings.Initialize();

                blInitialized = true;
            }
            catch
            {
                Menu m = MainMenu.AddMenu("SPrediction", "SPREDX");
                m.Add("PREDICTONLIST", new Slider("Prediction Method (0 : SPrediction | 1 : EB/Common Prediction)", 0, 0, 1));
            }
        }
示例#5
0
        public static Menu Initialize()
        {
            if (blInitialized)
            {
                throw new Exception("SPrediction Already Initialized");
            }

            PathTracker.Initialize();
            Collision.Initialize();
            StasisPrediction.Initialize();
            Menu spredMenu = ConfigMenu.Initialize();

            Drawings.Initialize();

            blInitialized = true;

            return(spredMenu);
        }
示例#6
0
        /// <summary>
        ///     Initializes Prediction Services
        /// </summary>
        public static void Initialize(Menu mainMenu, string prefMenuName = "SPRED")
        {
            if (blInitialized)
            {
                throw new Exception("SPrediction Already Initialized");
            }

            if (mainMenu == null)
            {
                throw new NullReferenceException("Menu cannot be null!");
            }

            PathTracker.Initialize();
            Collision.Initialize();
            StasisPrediction.Initialize();
            ConfigMenu.Initialize(prefMenuName);
            Drawings.Initialize();

            blInitialized = true;
        }
示例#7
0
        public static Menu Initialize()
        {
            try
            {
                PathTracker.Initialize();
                Collision.Initialize();
                StasisPrediction.Initialize();
                Menu spredMenu = ConfigMenu.Initialize();
                Drawings.Initialize();

                blInitialized = true;
                return(spredMenu);
            }
            catch
            {
                Menu m = new Menu("SPrediction", "SPREDX");
                m.AddItem(new MenuItem("PREDICTONLIST", "Prediction Method").SetValue(new StringList(new[] { "SPrediction", "Common Prediction" }, 1)));
                return(m);
            }
        }
        public static Menu Initialize()
        {
            try
            {
                PathTracker.Initialize();
                StasisPrediction.Initialize();
                Menu spredMenu = ConfigMenu.Initialize();
                Drawings.Initialize();

                blInitialized = true;
                return(spredMenu);
            }
            catch
            {
                Menu m = new Menu("SPREDX", "SPrediction");
                m.Add(new MenuList <string>("PREDICTONLIST", "Prediction Method", new[] { "SPrediction", "Common Prediction" })
                {
                    Index = 1
                });
                return(m);
            }
        }