| 10 | |
| 11 | |
| 12 | class MyTemplateNode(GNode): |
| 13 | def __init__(self, num: int, score: float): |
| 14 | super().__init__() # must call super init function |
| 15 | self._num = num |
| 16 | self._score = score |
| 17 | |
| 18 | def run(self): |
| 19 | print('[{0}] num = [{1}], score = [{2}]'.format(self.getName(), self._num, self._score)) |
| 20 | return CStatus() |