Files
single_ursim_control/single_ursim_control/plugins/abstract_plugin.py
marcsello 964a072e80
All checks were successful
continuous-integration/drone/push Build is passing
Added abort to command
2021-04-11 14:10:14 +02:00

37 lines
606 B
Python

from typing import Dict
from abc import ABC, abstractmethod
class AbstractCommand(ABC):
@abstractmethod
def execute(self):
pass
@abstractmethod
def abort(self):
pass
@abstractmethod
def describe(self) -> dict:
pass
class AbstractCommandCompiler(ABC):
@abstractmethod
def compile(self, *args, **kwargs) -> AbstractCommand:
pass
class AbstractPlugin(ABC):
plugin_name = ""
@abstractmethod
def load_compilers(self) -> Dict[str, AbstractCommandCompiler]:
pass
@abstractmethod
def close(self):
pass