Class Lorenz
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----ChaosDemos.dynamicGraph
|
+----Lorenz
- public class Lorenz
- extends dynamicGraph
Iterates and plots the Lorenz model
Uses the "Java Graph Class Library" by Leigh Brookshaw
- Version:
- 3 August, 1997
- Author:
- Michael Cross
-
a
- parameter of equations
-
axisLabel
- axis labels
-
b
- parameter of equations
-
c
- parameter of equations
-
curve2
- true if second trace to be plotted
-
delay
- delay in graph update , and factor reducing time step
-
dt
- time step (after reduction by delay)
-
dtp
- input time step
-
dx
- perturbation for second trace
-
err
- error estimates from ode solver
-
errp
- error estimates from ode solver
-
ncurve
- number of curves
-
ncurve1
- index of first data curve
-
ncurve2
- index of second data curve
-
ntrans
- number of iterations to eliminate transient = trans/dt
-
nVariables
- number of variables (icluding time)
-
plot_x
- variable to be plotted on x-axis
-
plot_y
- variable to be plotted on y-axis
-
runTrans
- true if transient is to be run on call to restart()
-
showTime
- true if time to be shown.
-
t
- evolving time
-
trans
- transient time
-
transientColor
- Color of ghost
-
x
- evolving variables
-
x0
- starting values of x
-
Lorenz(startLor)
-
-
derivs(double[], double, int)
- Returns RHS of differential equations for Lorenz model
-
disableAll()
- Disables text input and choice controls
-
enableAll()
- Enables text input and choice contorls
-
handleEvent(Event)
- Event handler:
Stops iteration on minimising and handles close window event
(May fail under Windows95)
-
iterate()
- Iterates Lorenz equations and updates graph
-
movieStart()
- Start movie thread
-
movieStop()
- Stop movie thread
-
respondToButtons(int)
- Respond to buttonControls
-
respondToChoices()
- Responds to choiceControls
-
respondToText()
- Responds to textControls
-
restart()
- Resets plot by deleting all curves and restarting
-
stop()
- Stop movie thread
-
updateParameters()
- Updates parameters from the text controls
-
updateSpeed(int)
-
ncurve
int ncurve
- number of curves
ncurve1
int ncurve1
- index of first data curve
ncurve2
int ncurve2
- index of second data curve
plot_x
int plot_x
- variable to be plotted on x-axis
plot_y
int plot_y
- variable to be plotted on y-axis
delay
int delay
- delay in graph update , and factor reducing time step
ntrans
int ntrans
- number of iterations to eliminate transient = trans/dt
trans
double trans
- transient time
nVariables
int nVariables
- number of variables (icluding time)
runTrans
boolean runTrans
- true if transient is to be run on call to restart()
showTime
boolean showTime
- true if time to be shown. Set by choices
curve2
boolean curve2
- true if second trace to be plotted
dt
double dt
- time step (after reduction by delay)
dtp
double dtp
- input time step
t
double t
- evolving time
x
double x[]
- evolving variables
x0
double x0[]
- starting values of x
dx
double dx[]
- perturbation for second trace
a
double a
- parameter of equations
b
double b
- parameter of equations
c
double c
- parameter of equations
err
double err
- error estimates from ode solver
errp
double errp
- error estimates from ode solver
transientColor
Color transientColor
- Color of ghost
axisLabel
String axisLabel[]
- axis labels
Lorenz
Lorenz(startLor target)
- Parameters:
- target - starting class
- See Also:
- startLor
respondToText
public void respondToText()
- Responds to textControls
- Overrides:
- respondToText in class dynamicGraph
- See Also:
- textControls
respondToChoices
public void respondToChoices()
- Responds to choiceControls
- Overrides:
- respondToChoices in class dynamicGraph
- See Also:
- choiceControls
respondToButtons
public void respondToButtons(int buttonIndex)
- Respond to buttonControls
- Parameters:
- buttonIndex - index of button pushed
- Overrides:
- respondToButtons in class dynamicGraph
- See Also:
- buttonControls
movieStop
public void movieStop()
- Stop movie thread
movieStart
public void movieStart()
- Start movie thread
handleEvent
public boolean handleEvent(Event evt)
- Event handler:
Stops iteration on minimising and handles close window event
(May fail under Windows95)
- Overrides:
- handleEvent in class Component
disableAll
public void disableAll()
- Disables text input and choice controls
enableAll
public void enableAll()
- Enables text input and choice contorls
derivs
public double[] derivs(double x[],
double t,
int n)
- Returns RHS of differential equations for Lorenz model
- Parameters:
- x[] - vector of current value of dependent variables
- n - number of dependent variables in array x[]
- t - current value of independent variable
- Returns:
- n compoent vector giving derivatives of dependent variables
- Overrides:
- derivs in class dynamicGraph
updateParameters
public void updateParameters()
- Updates parameters from the text controls
restart
public boolean restart()
- Resets plot by deleting all curves and restarting
iterate
public boolean iterate()
- Iterates Lorenz equations and updates graph
- Overrides:
- iterate in class dynamicGraph
stop
public void stop()
- Stop movie thread
updateSpeed
public void updateSpeed(int in_delay)
- Overrides:
- updateSpeed in class dynamicGraph