Recursively marked as finish, until the above inter_val nodes of action_input type (including yourself)
(self,inter_val=1)
| 124 | |
| 125 | |
| 126 | def make_finish(self,inter_val=1): |
| 127 | ''' |
| 128 | Recursively marked as finish, until the above inter_val nodes of action_input type (including yourself) |
| 129 | ''' |
| 130 | self.finished = True |
| 131 | if self.node_type == "Action Input": |
| 132 | inter_val -= 1 |
| 133 | if self.father != None and inter_val >= 0: |
| 134 | self.father.make_finish(inter_val) |
| 135 | |
| 136 | |
| 137 | def get_train_messages_from_this_node(self): |