private bool doSubGoal(RuleSet ruleSet, EmptyElement goal) { Sensact subGoal = new Sensact(m_ruleSets, m_sensors, m_actions); subGoal.setGoal(goal); return(subGoal.act()); }
/// <summary> /// The main entry point to activate the Simian. /// To run type Simian.exe ConfigName RulesName /// </summary> /// <param name="args">The exeName followed by config and script</param> public static void Main(string[] args) { // set up this simian from the default config file or that specified. string ConfigFile = null; if (args.Length > 1) { if (args[1].Length > 0 && args[1] != "") ConfigFile = args[1]; } Simian monkey = new Simian(ConfigFile); //Sensact testing = new Sensact(@"C:\Testing\XP\Simian\SimianRules.xml", monkey, monkey); Sensact testing = new Sensact(@"C:\Testing\XP\Simian\NavRules.xml", monkey, monkey); bool instruct = testing.setGoal(null); // use the one in the rules file bool done = testing.act(); Log log = Log.getOnly(); log.endElt(); // end the log }
/// <summary> /// The main entry point to activate the Simian. /// To run type Simian.exe ConfigName RulesName /// </summary> /// <param name="args">The exeName followed by config and script</param> public static void Main(string[] args) { // set up this simian from the default config file or that specified. string ConfigFile = null; if (args.Length > 1) { if (args[1].Length > 0 && args[1] != "") { ConfigFile = args[1]; } } Simian monkey = new Simian(ConfigFile); //Sensact testing = new Sensact(@"C:\Testing\XP\Simian\SimianRules.xml", monkey, monkey); Sensact testing = new Sensact(@"C:\Testing\XP\Simian\NavRules.xml", monkey, monkey); bool instruct = testing.setGoal(null); // use the one in the rules file bool done = testing.act(); Log log = Log.getOnly(); log.endElt(); // end the log }
private bool doSubGoal(RuleSet ruleSet, EmptyElement goal) { Sensact subGoal = new Sensact(m_ruleSets, m_sensors, m_actions); subGoal.setGoal(goal); return subGoal.act(); }