(self, stream_plan, action_plan, cost, complexity_limit, max_time=0, accelerate=False)
| 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 |
no test coverage detected