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

Method doStep

src/csm/ch02/SimulationApp.java:25–29  ·  view source on GitHub ↗

Does a simulation step by decrementing the counter.

()

Source from the content-addressed store, hash-verified

23 * Does a simulation step by decrementing the counter.
24 */
25 @Override
26public void doStep() { // does a simulation step
27 control.println("Counter = "+(counter--));
28 control.setAdjustableValue("counter", counter);
29 }
30
31 /**
32 * Initializes the simulation by setting the counter variable

Callers

nothing calls this directly

Calls 2

printlnMethod · 0.65
setAdjustableValueMethod · 0.65

Tested by

no test coverage detected