|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.controls.AbstractAnimation
org.opensourcephysics.controls.AbstractSimulation
org.opensourcephysics.sip.ch02.BouncingBallApp
public class BouncingBallApp
BouncingBall models a collection of bouncing balls.
Field Summary |
---|
Fields inherited from class org.opensourcephysics.controls.AbstractSimulation |
---|
control, showStepsPerDisplay, stepCounter, stepsPerDisplay |
Fields inherited from class org.opensourcephysics.controls.AbstractAnimation |
---|
animationThread, decimalFormat, delayTime, mainFrame |
Constructor Summary | |
---|---|
BouncingBallApp()
|
Method Summary | |
---|---|
void |
doStep()
Does a simulation step by stepping (advancing) each ball. |
void |
initialize()
Initializes the simulation by creating the BouncingBall objects and adding them to the frame. |
static void |
main(java.lang.String[] args)
Starts the Java application. |
void |
reset()
Resets the simulation parameters to their intial state. |
void |
startRunning()
Checks the time step parameter whenever the start or step button is pressed. |
Methods inherited from class org.opensourcephysics.controls.AbstractSimulation |
---|
enableStepsPerDisplay, getControl, getLoader, getStepCounter, getStepsPerDisplay, initializeAnimation, resetAnimation, run, setControl, setStepsPerDisplay, start, startAnimation, startSimulation, stepAnimation, stop, stopAnimation, stopRunning, stopSimulation |
Methods inherited from class org.opensourcephysics.controls.AbstractAnimation |
---|
addChildFrame, clearChildFrames, getChildFrames, getDelayTime, getMainFrame, getOSPApp, isRunning, setDelayTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensourcephysics.controls.Simulation |
---|
isRunning |
Constructor Detail |
---|
public BouncingBallApp()
Method Detail |
---|
public void initialize()
initialize
in class AbstractSimulation
public void doStep()
doStep
in class AbstractAnimation
public void startRunning()
startRunning
in class AbstractSimulation
public void reset()
reset
in class AbstractSimulation
public static void main(java.lang.String[] args)
args
- command line parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |