Examples of PlanningGraphException


Examples of graphplan.graph.planning.PlanningGraphException

        if(planFound) {
          logger.info("Plan found with "+((int)this.planningGraph.size()/2)+" steps");
        } else {
          logger.info("Plan not found with "+((int)this.planningGraph.size()/2)+" steps");
          if(!planPossible()) {
            throw new PlanningGraphException("Graph has levelled off, plan is not possible.",this.planningGraph.levelOffIndex());
          }
        }
      } else {
        logger.info("Goals not possible with "+((int)this.planningGraph.size()/2)+" steps");
        //If the goals are not possible, and the graph has levelled off,
        //then this problem has no possible plan
        if(this.planningGraph.levelledOff()) {
          throw new PlanningGraphException("Goals are not possible and graph has levelled off, plan is not possible.",this.planningGraph.levelOffIndex());
        }
      }
    }
   
    return this.solutionExtraction.getPlanResult();
View Full Code Here

Examples of graphplan.graph.planning.PlanningGraphException

            logger.info("Planner timed out after "+timeout+" milliseconds");
            throw new TimeoutException("No plan possible in "+timeout+" milliseconds");
          }
          logger.info("Plan not found with "+((int)this.planningGraph.size()/2)+" steps");
          if(!planPossible()) {
            throw new PlanningGraphException("Graph has levelled off, plan is not possible.",this.planningGraph.levelOffIndex());
          }
        }
      } else {
        logger.info("Goals not possible with "+((int)this.planningGraph.size()/2)+" steps");
        //If the goals are not possible, and the graph has levelled off,
        //then this problem has no possible plan
        if(this.planningGraph.levelledOff()) {
          throw new PlanningGraphException("Goals are not possible and graph has levelled off, plan is not possible.",this.planningGraph.levelOffIndex());
        }
      }
    }
   
    return solutionExtraction.getPlanResult();
View Full Code Here

Examples of graphplan.graph.planning.PlanningGraphException

    //Piece of crap algorithm used before has been replaced by this call
   
    try {
      opSet.addAll(opFactory.getAllPossibleInstantiations(new ArrayList<Operator>(opTemplateSet), preconds));
    } catch (OperatorFactoryException e) {
      throw new PlanningGraphException(e.getMessage(),propositionLevel.getIndex()+1);
    }
   
    for (Operator operator : opSet) {
      actionLevel.addAction(operator);
    }
View Full Code Here

Examples of graphplan.graph.planning.PlanningGraphException

        opFactory.setTypes(this.getTypes());
        opFactory.setParameterTypes(this.getParameterTypes());
        opSet.addAll(opFactory.getAllPossibleInstantiations(new ArrayList<Operator>(opTemplateSet), preconds, initialState));
      } else opSet.addAll(opFactory.getAllPossibleInstantiations(new ArrayList<Operator>(opTemplateSet), preconds));
    } catch (OperatorFactoryException e) {
      throw new PlanningGraphException(e.getMessage(),propositionLevel.getIndex()+1);
    }
   
    for (Operator operator : opSet) {
      actionLevel.addAction(operator);
    }
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.