Package javaff.data

Examples of javaff.data.TotalOrderPlan


   
                State goalState = goalState = performFFSearch(initialState);
               
    long afterPlanning = System.currentTimeMillis();

                TotalOrderPlan top = null;
    if (goalState != null) top = (TotalOrderPlan) goalState.getSolution();
    if (top != null) top.print(planOutput);


    /*javaff.planning.PlanningGraph pg = initialState.getRPG();
    Plan plan  = pg.getPlan(initialState);
    plan.print(planOutput);
View Full Code Here


  }

  public Object clone()
  {
    Set nf = (Set) ((HashSet) facts).clone();
    TotalOrderPlan p = (TotalOrderPlan) plan.clone();
    Map nfuncs = (Map) ((Hashtable) funcValues).clone();
    Set oA = (Set) ((HashSet)openActions).clone();
    List i = (List) ((ArrayList)invariants).clone();
    Set na = (Set) ((HashSet) actions).clone();
    TemporalMetricState ts = new TemporalMetricState(na, nf, goal, nfuncs, p, metric, oA, i);
View Full Code Here

  }

  public Object clone()
  {
    Set nf = (Set) ((HashSet) facts).clone();
    TotalOrderPlan p = (TotalOrderPlan) plan.clone();
    STRIPSState SS = new STRIPSState(actions, nf, goal, p);
    SS.setRPG(RPG);
//    SS.setFilter(filter);
    return SS;
  }
View Full Code Here

  }

  public Object clone()
  {
    Set nf = (Set) ((HashSet) facts).clone();
    TotalOrderPlan p = (TotalOrderPlan) plan.clone();
    Map nfuncs = (Map) ((Hashtable) funcValues).clone();
    MetricState ms = new MetricState(actions, nf, goal, nfuncs, p, metric);
    ms.setRPG(RPG);
//    ms.setFilter(filter);
    return ms;
View Full Code Here


    if (plan != null)
    {
      Iterator pit = plan.iterator();
      TotalOrderPlan p = new TotalOrderPlan();
      while (pit.hasNext())
      {
        PGAction a = (PGAction) pit.next();
        if (!(a instanceof PGNoOp)) p.addAction(a.action);
      }
      //p.print(javaff.JavaFF.infoOutput);
      return p;
    }
    else return null;
View Full Code Here

TOP

Related Classes of javaff.data.TotalOrderPlan

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.