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

Method resetSimulation

src/davidson/gr/ClassicalWRApp.java:95–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 public void resetSimulation() {
96 model.stopSimulation();
97 getControl("runButton").setProperty("text", "Start");
98 model.reset();
99 createDefaultParticle();
100 loadDefaultXML();
101 if(getBoolean("showInspector")&&(model.defaultTrajectory!=null)&&(model.inspector!=null)) {
102 model.inspector.show();
103 }
104 model.plottingPanel.repaint();
105 }
106
107 void createDefaultParticle(){
108 model.createDefaultParticle();

Callers 1

clearDefaultXMLMethod · 0.95

Calls 9

createDefaultParticleMethod · 0.95
loadDefaultXMLMethod · 0.80
stopSimulationMethod · 0.65
setPropertyMethod · 0.65
getControlMethod · 0.65
resetMethod · 0.65
getBooleanMethod · 0.65
showMethod · 0.65
repaintMethod · 0.65

Tested by

no test coverage detected