Examples of goalsPossible()


Examples of graphplan.graph.PropositionLevel.goalsPossible()

      return planFound;
    } else {
      PropositionLevel propositionLevel = (PropositionLevel) graphLevel;
      Set<Proposition> subGoals = new TreeSet<Proposition>(subGoalStack.peek());
      //If the goals are possible in this level
      if(propositionLevel.goalsPossible(subGoals)){
        //Then push a set of potential actions for them
        //And try to fill this up with operators
        supportActionStack.push(new TreeSet<Operator>());
        logger.fine("At level "+propositionLevel.getIndex()+", trying to achieve "+subGoalStack.peek());
        boolean planFound = this.visitPropositionLevel(propositionLevel, subGoals);
View Full Code Here

Examples of graphplan.graph.PropositionLevel.goalsPossible()

   * @return
   */
  public boolean goalsPossible(List<Proposition> goals, int level) {
    if (graphLevels.get(level).isPropositionLevel()) {
      PropositionLevel propositionLevel = (PropositionLevel) this.graphLevels.get(level);
      return propositionLevel.goalsPossible(goals);
    } else {
      return false;
    }
  }

View Full Code Here

Examples of graphplan.graph.PropositionLevel.goalsPossible()

        return false;
      }
     
      //Then check if the goals are conceptually possible
      //If the goals are possible in this level
      if(propositionLevel.goalsPossible(subGoals)){
        //Then push a set of potential actions for them
        //And try to fill this up with operators
        //supportActionStack.push(new LinkedHashSet<Operator>());
        //logger.fine("At level "+propositionLevel.getIndex()+", trying to achieve "+subGoalStack.peek());
       
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.