| 34 | |
| 35 | |
| 36 | class BasePlotterTask(object): |
| 37 | _task_name: str # unique name of the task |
| 38 | _task_type: str # type of the task is used to identify which callable |
| 39 | |
| 40 | def __init__(self, task_name: str, task_type: str) -> None: |
| 41 | self._task_name = task_name |
| 42 | self._task_type = task_type |
| 43 | |
| 44 | @property |
| 45 | def task_name(self): |
| 46 | return self._task_name |
| 47 | |
| 48 | @property |
| 49 | def task_type(self): |
| 50 | return self._task_type |
| 51 | |
| 52 | def get_scoped_name(self, name): |
| 53 | return self._task_name + "/" + name |
| 54 | |
| 55 | def __iter__(self): |
| 56 | """Should override this function to return a list of task primitives |
| 57 | """ |
| 58 | raise NotImplementedError |
| 59 | |
| 60 | |
| 61 | class BasePlotterTasks(object): |
nothing calls this directly
no outgoing calls
no test coverage detected