Package javaff.planning

Examples of javaff.planning.TemporalMetricState


    // ********************************
    // Search for a plan
    // ********************************

    // Get the initial state
    TemporalMetricState initialState = ground.getTemporalMetricInitialState();
   
                State goalState = goalState = performFFSearch(initialState);
               
    long afterPlanning = System.currentTimeMillis();

View Full Code Here


          na.add(dact.startAction);
          na.add(dact.endAction);
          ni.add(dact.startAction);
        }
      }
      TemporalMetricState ts = new TemporalMetricState(ni, initial, goal, functionValues, metric);
      GroundProblem gp = new GroundProblem(na, initial, goal, functionValues, metric);
      ts.setRPG(new RelaxedTemporalMetricPlanningGraph(gp));
      state = ts;
    }
    return state;
  }
View Full Code Here


    //Sort out the Durations
    Map states = new Hashtable(); //Maps (Actions => states (which the actions are applied in))
    Iterator ait = top.getActions().iterator();
    TemporalMetricState state = problem.getTemporalMetricInitialState();
    while (ait.hasNext())
    {
      Action a = (Action) ait.next();
      if (a instanceof StartInstantAction)
      {
        StartInstantAction sia = (StartInstantAction) a;
        List l = TemporalConstraint.getBounds(sia, sia.getSibling(), sia.parent.getMaxDuration(state), sia.parent.getMinDuration(state));
        stn.addConstraints(new HashSet(l));
      }
      states.put(a, state);
      state = (TemporalMetricState) state.apply(a);
    }

   
   
    stn.consistent();
View Full Code Here

TOP

Related Classes of javaff.planning.TemporalMetricState

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.