Package aima.core.search.nondeterministic

Examples of aima.core.search.nondeterministic.Plan


    // push...
    if (currentStep instanceof Action) {
      return (Action) this.stack.pop();
    } // case: next step is a plan
    else if (currentStep instanceof Plan) {
      Plan newPlan = (Plan) currentStep;
      if (newPlan.size() > 0) {
        this.stack.push(newPlan.removeFirst());
      } else {
        this.stack.pop();
      }
      return this.execute(percept);
    } // case: next step is an if-then
View Full Code Here

TOP

Related Classes of aima.core.search.nondeterministic.Plan

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.