예제 #1
0
 private static bool CheckModelReady()
 {
     if (BTMMAlgorithm.IsModelReady())
     {
         return(true);
     }
     Console.WriteLine("[!] You have to Train or Load trained data to be able to use BTMM Algorithm.");
     ConsoleUtil.WriteAndWaitKey("> Go to tab BTMM in MainMenu to Config BTMM.");
     return(false);
 }
예제 #2
0
        private static void BTMMMenu()
        {
            var userChoice = 0;

            while (true)
            {
                userChoice = GetUserChoice(
                    "BTMM Menu", new[]
                {
                    "<- Back",
                    BTMMAlgorithm.IsModelReady() ? "* Status: READY" : "* Status: NOT READY!!",
                    "Train",
                    "Load",
                    "Read Log"
                }, userChoice);

                if (userChoice == 0)
                {
                    return;
                }
                if (userChoice == 1)
                {
                    CheckModelReady();
                }
                else if (userChoice == 2)
                {
                    TrainMenu();
                }
                else if (userChoice == 3)
                {
                    LoadMenu();
                }
                else
                {
                    ConsoleUtil.WriteAndWaitKey(GameLogger.ReadLog());
                }
            }
        }