|
|||||||||
| 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.ch07.BoxApp
public class BoxApp
Simulates approach to equilibrium for particles in a partioned box.
| 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 | |
|---|---|
BoxApp()
|
|
| Method Summary | |
|---|---|
void |
doStep()
Draws particles after each move, and plots data. |
void |
initialize()
Gets parameters and initializes model |
static void |
main(java.lang.String[] args)
Starts the Java application. |
void |
reset()
Resets to default values |
| Methods inherited from class org.opensourcephysics.controls.AbstractSimulation |
|---|
enableStepsPerDisplay, getControl, getLoader, getStepCounter, getStepsPerDisplay, initializeAnimation, resetAnimation, run, setControl, setStepsPerDisplay, start, startAnimation, startRunning, 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 BoxApp()
| Method Detail |
|---|
public void initialize()
initialize in class AbstractSimulationpublic void doStep()
doStep in class AbstractAnimationpublic void reset()
reset in class AbstractSimulationpublic 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 | ||||||||