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

Method reset

src/demoJS/StateMachineTestApp.java:90–97  ·  view source on GitHub ↗

Reset the program to its initial state.

()

Source from the content-addressed store, hash-verified

88 * Reset the program to its initial state.
89 */
90 @Override
91 public void reset() {
92 counter=0;
93 dt=0;
94 animationThread=null;
95 control.setValue("counter", counter); // show value
96 control.setValue("dt", dt); // show value
97 }
98
99 public void startHelper() {
100 control.println("Start pressed");

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.65

Tested by

no test coverage detected