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

Method reset

src/csm/ch02/SimulationApp.java:43–48  ·  view source on GitHub ↗

Resets the simulation parameters to their initial state.

()

Source from the content-addressed store, hash-verified

41 * Resets the simulation parameters to their initial state.
42 */
43 @Override
44public void reset() { // invoked when reset button is pressed
45 control.setValue("a", 10.0); // unused parameter
46 control.setAdjustableValue("counter", 90); // allows counter to be changed after initialization
47 initialize();
48 }
49
50 /**
51 * Starts the Java application.

Callers

nothing calls this directly

Calls 3

initializeMethod · 0.95
setValueMethod · 0.65
setAdjustableValueMethod · 0.65

Tested by

no test coverage detected