MCPcopy Create free account
hub / github.com/caelan/pddlstream / process

Method process

pddlstream/algorithms/skeleton.py:432–448  ·  view source on GitHub ↗
(self, stream_plan, action_plan, cost, complexity_limit, max_time=0, accelerate=False)

Source from the content-addressed store, hash-verified

430 # TODO: AssertionError: Could not find instantiation for numeric expression: dist
431
432 def process(self, stream_plan, action_plan, cost, complexity_limit, max_time=0, accelerate=False):
433 start_time = time.time()
434 if is_plan(stream_plan):
435 self.new_skeleton(stream_plan, action_plan, cost)
436 self.greedily_process()
437 elif (stream_plan is INFEASIBLE) and not self.process_until_new():
438 # Move this after process_complexity
439 return INFEASIBLE
440 if not self.queue:
441 return FAILED
442
443 # TODO: add and process
444 self.timed_process(max_time=(max_time - elapsed_time(start_time)))
445 self.process_complexity(complexity_limit)
446 if accelerate:
447 self.accelerate_best_bindings()
448 return FAILED

Callers 2

solve_abstractFunction · 0.95
constraint_satisfactionFunction · 0.95

Calls 8

new_skeletonMethod · 0.95
greedily_processMethod · 0.95
process_until_newMethod · 0.95
timed_processMethod · 0.95
process_complexityMethod · 0.95
is_planFunction · 0.90
elapsed_timeFunction · 0.90

Tested by

no test coverage detected