Example #1
0
        /// <summary>
        /// Keep running the application
        /// </summary>
        private void Run()
        {
            if (!LoadBlackboard())
            {
                return;
            }
            this.log.WriteLine("Starting Blackboard");
            this.blackboard.Start();
            Program.running = true;

            this.kernel         = new Kernel(blackboard);
            this.consoleManager = new ConsoleManager(blackboard, kernel, cLog);
            this.consoleManager.DisableLog();
            kernel.ListModules();
            kernel.Execute("help");
            consoleManager.WritePrompt();
            while (this.blackboard.IsRunning)
            {
                consoleManager.Poll();
            }
            Console.WriteLine("Good bye!");
            Console.WriteLine();
        }
Example #2
0
        /// <summary>
        /// Keep running the application
        /// </summary>
        private void Run()
        {
            if (!LoadBlackboard())
                return;
            this.log.WriteLine("Starting Blackboard");
            this.blackboard.Start();
            Program.running = true;

            this.kernel = new Kernel(blackboard);
            this.consoleManager = new ConsoleManager(blackboard, kernel, cLog);
            this.consoleManager.DisableLog();
            kernel.ListModules();
            kernel.Execute("help");
            consoleManager.WritePrompt();
            while (this.blackboard.IsRunning)
            {
                consoleManager.Poll();
            }
            Console.WriteLine("Good bye!");
            Console.WriteLine();
        }