org.opensourcephysics.sip.ch03
Class FallingParticleODEApp

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

public class FallingParticleODEApp
extends AbstractCalculation

FallingParticleODEApp demonstrates how to use an ODE solver to model a falling particle.


Field Summary
 
Fields inherited from class org.opensourcephysics.controls.AbstractCalculation
control, decimalFormat, mainFrame
 
Constructor Summary
FallingParticleODEApp()
           
 
Method Summary
 void calculate()
          Calculates the time required for an falling particle to reach the ground and prints the result.
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

FallingParticleODEApp

public FallingParticleODEApp()
Method Detail

calculate

public void calculate()
Calculates the time required for an falling particle to reach the ground and prints the result.

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