org.opensourcephysics.sip.ch15
Class IsingApp

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

public class IsingApp
extends AbstractSimulation

IsingApp simulates a two-dimensional Ising model.


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
IsingApp()
           
 
Method Summary
 void doStep()
          Does an animation step.
static XML.ObjectLoader getLoader()
          Returns an XML.ObjectLoader to save and load data for this program.
 void initialize()
          Initializes the simulation.
static void main(java.lang.String[] args)
           
 void reset()
          Resets the simulation to its default state.
 void resetData()
           
 void startRunning()
          Performs an action before executing one or more animation steps.
 void stop()
          Stops the simulation.
 
Methods inherited from class org.opensourcephysics.controls.AbstractSimulation
enableStepsPerDisplay, getControl, getStepCounter, getStepsPerDisplay, initializeAnimation, resetAnimation, run, setControl, setStepsPerDisplay, start, startAnimation, startSimulation, stepAnimation, 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

IsingApp

public IsingApp()
Method Detail

initialize

public void initialize()
Description copied from class: AbstractSimulation
Initializes the simulation. Override this method to initialize a concrete simulation.

Overrides:
initialize in class AbstractSimulation

doStep

public void doStep()
Description copied from class: AbstractAnimation
Does an animation step.

Specified by:
doStep in class AbstractAnimation

stop

public void stop()
Description copied from class: AbstractSimulation
Stops the simulation. Override this method to perform custom actions after the animation thread stops running.

Overrides:
stop in class AbstractSimulation

startRunning

public void startRunning()
Description copied from class: AbstractSimulation
Performs an action before executing one or more animation steps.

Overrides:
startRunning in class AbstractSimulation

reset

public void reset()
Description copied from class: AbstractSimulation
Resets the simulation to its default state. Override this method to set the simulation's parameters.

Overrides:
reset in class AbstractSimulation

resetData

public void resetData()

getLoader

public static XML.ObjectLoader getLoader()
Returns an XML.ObjectLoader to save and load data for this program. LJParticle data can now be saved using the Save menu item in the control.

Returns:
the object loader

main

public static void main(java.lang.String[] args)