Package graphplan.graph

Examples of graphplan.graph.ActionLevel.addAction()


      PropositionLevel propositionLevel = (PropositionLevel) graph.getGraphLevel(graph.size()-1);
      //into which we add the preconditions for this action
      propositionLevel.addPropositions(concreteOperators[i].getPreconds());
      //We then create an action level to contain this action
      ActionLevel actionLevel = new ActionLevel();
      actionLevel.addAction(concreteOperators[i]);
      graph.addGraphLevel(actionLevel);
      //And create another proposition level for its effects
      PropositionLevel propositionLevel2 = new PropositionLevel();
      propositionLevel2.addPropositions(concreteOperators[i].getEffects());
     
View Full Code Here


    } catch (OperatorFactoryException e) {
      throw new PlanningGraphException(e.getMessage(),propositionLevel.getIndex()+1);
    }
   
    for (Operator operator : opSet) {
      actionLevel.addAction(operator);
    }
    // TODO discover how to properly instantiate operator templates
    // TODO optimize this algorithm
   
    return actionLevel;
View Full Code Here

    } catch (OperatorFactoryException e) {
      throw new PlanningGraphException(e.getMessage(),propositionLevel.getIndex()+1);
    }
   
    for (Operator operator : opSet) {
      actionLevel.addAction(operator);
    }
   
    return actionLevel;
  }
}
View Full Code Here

      operator = OperatorFactory.getInstance().getOperator(
          "move(a,b)");
    } catch (Exception e) {
      fail(e.toString());
    }
    actionLevel.addAction(operator);
    planningGraph.addGraphLevel(actionLevel);
  }

  @After
  public void tearDown() throws Exception {
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.