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

Method play

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

Sets the simulation in play mode

()

Source from the content-addressed store, hash-verified

80 * Sets the simulation in play mode
81 */
82 public void play() {
83 if (thread != null) {
84 return;
85 }
86 thread = new Thread(this);
87 thread.setPriority(Thread.MIN_PRIORITY);
88 thread.start();
89 isPlaying = true;
90 }
91
92 /**
93 * Stops the simulation

Callers 1

resetMethod · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected