org.opensourcephysics.sip.ch06
Class BifurcateApp

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

public class BifurcateApp
extends AbstractSimulation

BifurcateApp demonstrates chaos in the logistic equation by plotting the return map for different values of r.


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
BifurcateApp()
          Constructs the Bifurcate model.
 
Method Summary
 void doStep()
          Does a step by adding to the diagram using the current value of r.
 void initialize()
          Initializes the bifrucation diagram.
static void main(java.lang.String[] args)
          The main method starts the Java applicaiton.
 void reset()
          Resets all parameters to their defaults.
 
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

BifurcateApp

public BifurcateApp()
Constructs the Bifurcate model.

Method Detail

initialize

public void initialize()
Initializes the bifrucation diagram.

Overrides:
initialize in class AbstractSimulation

doStep

public void doStep()
Does a step by adding to the diagram using the current value of r. Increments the value of r at the end of the step in preparation for the next set.

Specified by:
doStep in class AbstractAnimation

reset

public void reset()
Resets all parameters to their defaults.

Overrides:
reset in class AbstractSimulation

main

public static void main(java.lang.String[] args)
The main method starts the Java applicaiton.

Parameters:
args - String[] command line parameters