org.opensourcephysics.controls
Interface Calculation

All Known Implementing Classes:
AbstractCalculation, Affine2DApp, AnalyzeApp, CalculationApp, DrawingApp, ElectricFieldApp, FallingParticleCalcApp, FallingParticleODEApp, FallingParticlePlotApp, FFT2DCalculationApp, FFTApp, FFTCalculationApp, FieldLineApp, FilesApp, FixedPointApp, IntegralCalcApp, IsingAutoCorrelatorApp, IterateMapApp, KochApp, LagrangeInterpolatorApp, MonteCarloSampleMean, NumericalIntegrationApp, OneDimensionalAutomatonApp, PBCTestApp, PercolationApp, PolynomialApp, PolynomialFitApp, QuaternionApp, RecursiveFixedPointApp, RGApp, SchroedingerApp, SynthesizeApp

public interface Calculation

Calculation performs a calculation in response to a control's action.


Method Summary
 void calculate()
          Does the calculation.
 void resetCalculation()
          Resets the simulation to a known initial state.
 void setControl(Control control)
          Sets object that controls this calculation.
 

Method Detail

setControl

void setControl(Control control)
Sets object that controls this calculation. The calculation should use this method to register its parameters with the control. This insures that the control displays the program's parameters when it appears onscreen.

Parameters:
control -

calculate

void calculate()
Does the calculation.


resetCalculation

void resetCalculation()
Resets the simulation to a known initial state.