public string act() { think(); // choose the highest ranked option var chosen = reasoner.choose(reasonerResults); // execute the action chosen.action(); // return the tag return(chosen.tag); }
protected override void makePlans() { // run the utility ai planner var resultTable = reasoner.execute(); // store plan log state.updatePlanLog(resultTable); var chosen = reasoner.choose(resultTable); // pick the best-scored option chosen.action(); // execute the action }