public NaturalLanguageProcessor(HAL9000Brain hal9000Brain)
 {
     this.hal9000Brain = hal9000Brain;
     this.commonQuestions = new SortedList<int, string>();
     this.answersToCommonQuestions = new SortedList<int, string>();
     this.whatAmIThinkingAnswers = new List<string>();
     this.knownVerbs = new SortedList<int, string>();
     this.knownVerbsTypes = new SortedList<int, VerbType>();
     this.random = new Random(DateTime.Now.Second);
 }
Example #2
0
        public frmActionPlanner()
        {
            InitializeComponent();
            if (!Directory.Exists(".\\" + DateTime.Today.ToString("yyyy-MM-dd")))
                Directory.CreateDirectory(".\\" + DateTime.Today.ToString("yyyy-MM-dd"));
            TextBoxStreamWriter.DefaultLog = new TextBoxStreamWriter(txtConsole, ".\\" + DateTime.Today.ToString("yyyy-MM-dd") + "\\" +
                 DateTime.Now.ToString("HH.mm.ss") + ".txt", 300);

            TextBoxStreamWriter.DefaultLog.AppendDate = false;
            TextBoxStreamWriter.DefaultLog.DefaultPriority = 1;
            TextBoxStreamWriter.DefaultLog.TextBoxVerbosityThreshold = 1;
            this.hal9000Brain = new HAL9000Brain();
        }
 public CmdRecognized(HAL9000Brain brain)
     : base("recognized")
 {
     this.hal9000Brain = brain;
 }
 public CmdStartTest(HAL9000Brain brain)
     : base("start_robocup_test")
 {
     this.hal9000Brain = brain;
 }