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

Method initMyControl

src/debugging/physicsapps/IsingApp.java:87–94  ·  view source on GitHub ↗

Initializes this model and its control. Invoked after the control is set.

()

Source from the content-addressed store, hash-verified

85 * Invoked after the control is set.
86 */
87 protected void initMyControl() {
88 control.setValue("grid size", size);
89 control.setValue("T", T);
90 control.setValue("H", H);
91 initializeAnimation(); // initialize the Ising model
92 randomizeCells(); // start with random spins
93 resetAnimation(); // make sure this model is in the default state
94 }
95
96 /**
97 * Resets the calculation.

Callers 2

setControlMethod · 0.95
setControlMethod · 0.80

Calls 4

initializeAnimationMethod · 0.95
randomizeCellsMethod · 0.95
resetAnimationMethod · 0.95
setValueMethod · 0.65

Tested by

no test coverage detected