org.opensourcephysics.sip.ch10
Class MaxwellApp

java.lang.Object
  extended by org.opensourcephysics.controls.AbstractAnimation
      extended by org.opensourcephysics.controls.AbstractSimulation
          extended by org.opensourcephysics.sip.ch10.MaxwellApp
All Implemented Interfaces:
java.lang.Runnable, Animation, Simulation

public class MaxwellApp
extends AbstractSimulation

MaxwellApp creates the Maxwell model and displays time dependent solution to Maxwell's equations. Method plotField() revised 04/04/2006.


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
MaxwellApp()
          Constructor MaxwellApp
 
Method Summary
protected  void doStep()
          Does a time step.
 void initialize()
          Initializes the animation.
static void main(java.lang.String[] args)
          Starts the Java application.
 void reset()
          Resets the 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

MaxwellApp

public MaxwellApp()
Constructor MaxwellApp

Method Detail

reset

public void reset()
Resets the model to a predefined state.

Overrides:
reset in class AbstractSimulation

initialize

public void initialize()
Initializes the animation.

Overrides:
initialize in class AbstractSimulation

doStep

protected void doStep()
Does a time step.

Specified by:
doStep in class AbstractAnimation

main

public static void main(java.lang.String[] args)
Starts the Java application.

Parameters:
args - command line parameters