Performs a single step of simulation.
(self)
| 167 | return finished |
| 168 | |
| 169 | def single_step(self): |
| 170 | """Performs a single step of simulation.""" |
| 171 | if self._state == State.RUNNING: |
| 172 | finished = self._step() |
| 173 | self._state = State.STOP if finished else State.RUNNING |
| 174 | |
| 175 | def stop(self): |
| 176 | """Stops the runtime.""" |