|
|||||||||
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.ch13.DLAApp
public class DLAApp
DLAApp displays Diffusion Limited Aggregation (DLA) in a lattice frame. Add code to plot the mass distribution in the stopRunning method.
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 | |
---|---|
DLAApp()
|
Method Summary | |
---|---|
void |
doStep()
Does a simulation step by growing the DLA. |
void |
initialize()
Initializes the DLA lattice. |
static void |
main(java.lang.String[] args)
|
void |
reset()
Resets the DLA lattice size. |
void |
stopRunning()
Performs an action after the animation stops. |
boolean |
walk(int x,
int y)
Walk until next to perimeter site. |
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, 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 DLAApp()
Method Detail |
---|
public void initialize()
initialize
in class AbstractSimulation
public void reset()
reset
in class AbstractSimulation
public void stopRunning()
stopRunning
in class AbstractSimulation
public void doStep()
doStep
in class AbstractAnimation
public boolean walk(int x, int y)
x,y
- initial walker locationpublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |