Set a state of a variable, the value is expected to be an array with length of 1.
(self, var, value)
| 48 | self.state = self.start_state.copy() |
| 49 | |
| 50 | def _set_state(self, var, value): |
| 51 | """Set a state of a variable, the value is expected to be an array with length |
| 52 | of 1.""" |
| 53 | # print("setting %s = %s" % (var, value)) |
| 54 | self.state[var] = value.pop(0) |
| 55 | |
| 56 | def _get_state(self, props): |
| 57 | """Return wanted properties.""" |
no outgoing calls