|
|||||||||
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.ch10.LaplaceApp
public class LaplaceApp
LaplaceApp uses the Jacobi relaxation method to solve Laplace's equation. Revised 04/04/2006 to fix missing "size" parameter in initialize 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 | |
---|---|
LaplaceApp()
The LaplaceApp constructor. |
Method Summary | |
---|---|
void |
doStep()
Does a single relaxation step and redraws the panel. |
void |
handleMouseAction(InteractivePanel panel,
java.awt.event.MouseEvent evt)
Handles mouse actions by dragging the current interactive drawable object. |
void |
initArrays()
Initialize voltage and conductor arrays. |
void |
initialize()
Initializes the animation and reads parameters from the control. |
static void |
main(java.lang.String[] args)
Starts the Java application. |
void |
reset()
Resets the animation model to a predefined state. |
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 LaplaceApp()
Method Detail |
---|
public void initialize()
initialize
in class AbstractSimulation
public void initArrays()
public void doStep()
doStep
in class AbstractAnimation
public void reset()
reset
in class AbstractSimulation
public void handleMouseAction(InteractivePanel panel, java.awt.event.MouseEvent evt)
handleMouseAction
in interface InteractiveMouseHandler
panel
- evt
- 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 |