org.opensourcephysics.sip.ch02
Class FallingParticlePlotApp

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

public class FallingParticlePlotApp
extends AbstractCalculation

FallingParticlePlotApp computes the time for a particle to fall to the ground and plots the position as a funciton of time.


Field Summary
 
Fields inherited from class org.opensourcephysics.controls.AbstractCalculation
control, decimalFormat, mainFrame
 
Constructor Summary
FallingParticlePlotApp()
           
 
Method Summary
 void calculate()
          Calculates the trajectory of a falling particle and plots the position as a function of time.
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

FallingParticlePlotApp

public FallingParticlePlotApp()
Method Detail

calculate

public void calculate()
Calculates the trajectory of a falling particle and plots the position as a function of time.

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