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

Method reset

src/csm/ch02/CalculationApp.java:35–38  ·  view source on GitHub ↗

Resets the program to its initial state.

()

Source from the content-addressed store, hash-verified

33 * Resets the program to its initial state.
34 */
35 @Override
36public void reset() {
37 control.setValue("x value", 10.0); // describes parameter and sets its value
38 }
39
40 public void myFunction() {
41 System.out.println("Button pressed."); // for debugging

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.65

Tested by

no test coverage detected