Examples of addOperatorTemplate()


Examples of graphplan.flyweight.OperatorFactory.addOperatorTemplate()

    OperatorFactory operatorFactory = OperatorFactory.getInstance();
   
    for(Iterator<Operator> iter = description.getOperators().iterator(); iter.hasNext(); ) {
      try {
        //OperatorFactory.getInstance().addOperatorTemplate(iter.next());
        operatorFactory.addOperatorTemplate(iter.next());
      } catch (OperatorFactoryException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of graphplan.flyweight.OperatorFactory.addOperatorTemplate()

    OperatorFactory operatorFactory = OperatorFactory.getInstance();
    Operator operTemplate = operatorFactory.createOperatorTemplate("move(A,B)",
        new String[] { "~at(B)", "at(A)" },
        new String[] { "at(B)", "~at(A)" });
   
    operatorFactory.addOperatorTemplate(operTemplate);
   
    planningGraph = new PlanningGraph(initialState);
   
    ActionLevel actionLevel = new ActionLevel();
    Operator operator = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.