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

Method reset

src/davidson/gr/ClassicalApp.java:109–120  ·  view source on GitHub ↗

Resets the animation into a predefined state.

()

Source from the content-addressed store, hash-verified

107 * Resets the animation into a predefined state.
108 */
109 @Override
110 public void reset() {
111 // set the parameters
112 control.setValue("M", 1);
113 control.setValue("dt", 0.1);
114 control.setValue("editable inspector", true);
115 control.setValue("autoscale", false);
116 control.setValue("scale min max", scale.getDefault());
117 control.setValue("maximum time", 1.0e4);
118 enableStepsPerDisplay(true);
119 initialize();
120 }
121
122 /**
123 * Initializes the animation;

Callers

nothing calls this directly

Calls 4

initializeMethod · 0.95
enableStepsPerDisplayMethod · 0.80
setValueMethod · 0.65
getDefaultMethod · 0.45

Tested by

no test coverage detected