| 52 | self.plugin = plugin |
| 53 | |
| 54 | def store(self, ram): |
| 55 | existing = self.retrieve(ram['planners'], self.unique) |
| 56 | if not existing: |
| 57 | ram['planners'].append(self) |
| 58 | return self.retrieve(ram['planners'], self.unique) |
| 59 | else: |
| 60 | existing.update('stopping_conditions', self.stopping_conditions) |
| 61 | existing.update('params', self.params) |
| 62 | existing.update('plugin', self.plugin) |
| 63 | existing.update('description', self.description) |
| 64 | existing.update('allow_repeatable_abilities', self.allow_repeatable_abilities) |
| 65 | return existing |
| 66 | |
| 67 | async def which_plugin(self): |
| 68 | return self.plugin |