Stops the simulation
()
| 93 | * Stops the simulation |
| 94 | */ |
| 95 | public void pause() { |
| 96 | thread = null; |
| 97 | isPlaying = false; |
| 98 | if (OSPRuntime.isJS) { |
| 99 | if (stateHelper != null) |
| 100 | stateHelper.setState(STATE_DONE); |
| 101 | return; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | private StateHelper stateHelper; |
| 106 | private int delayJS = (/** @j2sNative delay || */ |