Initializes this model and its control. Invoked after the control is set.
()
| 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. |
no test coverage detected