org.opensourcephysics.sip.ch02
Class FallingParticleCalcApp

java.lang.Object
  extended by org.opensourcephysics.controls.AbstractCalculation
      extended by org.opensourcephysics.sip.ch02.FallingParticleCalcApp
All Implemented Interfaces:
Calculation

public class FallingParticleCalcApp
extends AbstractCalculation

FallingParticleCalcApp computes the time for a particle to fall to the ground and displays the variables.


Field Summary
 
Fields inherited from class org.opensourcephysics.controls.AbstractCalculation
control, decimalFormat, mainFrame
 
Constructor Summary
FallingParticleCalcApp()
           
 
Method Summary
 void calculate()
          Calculates the time it takes a ball to fall to the ground and displays the variables.
static void main(java.lang.String[] args)
          Starts the Java application.
 void reset()
          Resets the program to its initial state.
 
Methods inherited from class org.opensourcephysics.controls.AbstractCalculation
addChildFrame, clearChildFrames, getChildFrames, getLoader, getMainFrame, getOSPApp, resetCalculation, setControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FallingParticleCalcApp

public FallingParticleCalcApp()
Method Detail

calculate

public void calculate()
Calculates the time it takes a ball to fall to the ground and displays the variables.

Specified by:
calculate in interface Calculation
Specified by:
calculate in class AbstractCalculation

reset

public void reset()
Resets the program to its initial state.

Overrides:
reset in class AbstractCalculation

main

public static void main(java.lang.String[] args)
Starts the Java application.

Parameters:
args - command line parameters