| 13 | |
| 14 | |
| 15 | class BasePlotterTask(object): |
| 16 | _task_name: str # unique name of the task |
| 17 | _task_type: str # type of the task is used to identify which callable |
| 18 | |
| 19 | def __init__(self, task_name: str, task_type: str) -> None: |
| 20 | self._task_name = task_name |
| 21 | self._task_type = task_type |
| 22 | |
| 23 | @property |
| 24 | def task_name(self): |
| 25 | return self._task_name |
| 26 | |
| 27 | @property |
| 28 | def task_type(self): |
| 29 | return self._task_type |
| 30 | |
| 31 | def get_scoped_name(self, name): |
| 32 | return self._task_name + "/" + name |
| 33 | |
| 34 | def __iter__(self): |
| 35 | """Should override this function to return a list of task primitives |
| 36 | """ |
| 37 | raise NotImplementedError |
| 38 | |
| 39 | |
| 40 | class BasePlotterTasks(object): |
nothing calls this directly
no outgoing calls
no test coverage detected