MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / pause

Method pause

src/org/opensourcephysics/ejs/Simulation.java:95–103  ·  view source on GitHub ↗

Stops the simulation

()

Source from the content-addressed store, hash-verified

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 || */

Callers 1

resetMethod · 0.95

Calls 1

setStateMethod · 0.45

Tested by

no test coverage detected