Class Chua
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----ChaosDemos.dynamicGraph
|
+----Chua
- public class Chua
- extends dynamicGraph
Iterates and plots the Chua model
Uses the "Java Graph Class Library" by Leigh Brookshaw
- Version:
- 3 August, 1997
- Author:
- Michael Cross
-
a
- parameter of equations R1/R
-
axisLabel
- axis labels
-
b
- parameter of equations (R2-R1)/R2
-
c
- parameter of equations R1*R1*C1/L
-
delay
- delay in graph update , and factor reducing time step
-
dt
- time step (after reduction by delay)
-
dtp
- input time step
-
err
- error estimates from ode solver
-
errp
- error estimates from ode solver
-
ncurve
- number of curves
-
ncurve1
- index of data curve
-
ntrans
- number of iterations to eliminate transient = trans/dt
-
numSliders
- number of parameters set by sliders
-
nVariables
- number of variables (icluding time)
-
params
- inital values of R,R1,R2,C1,C2,L,r
-
plot_x
- variable to be plotted on x-axis
-
plot_y
- variable to be plotted on x-axis
-
r
- parameter of equations C1/C2
-
rl
- parameter of equations r/R1
-
runTrans
- true if transient is to be run on call to restart()
-
showTime
- true if time to be shown.
-
status
- GUI item
-
t
- evolving time
-
trans
- transient time
-
transientColor
- Color of ghost
-
x
- evolving variables
-
x0
- starting values of x
-
Chua(startChua)
-
-
derivs(double[], double, int)
- Returns RHS of differential equations for Chua model
-
disableAll()
- Disables text input in variables
-
enableAll()
-
Enables text input in variables
-
handleEvent(Event)
- Event handler:
Stops iteration on minimising and handles close window event
(May fail under Windows95)
-
insets()
-
-
iterate()
- Iterates Chua equations and updates graph
-
movieStart()
- Start movie thread
-
movieStop()
- Stop movie thread
-
respondToButtons(int)
- Respond to buttonControls
-
respondToChoices()
- Responds to choiceControls
-
respondToSliderButtons()
- Responds to buttons in sliderControls
-
respondToSliderText()
- Responds to text boxes in sliderControls
-
respondToText()
- Responds to textControls
-
restart()
- Resets plot by deleting all curves and restarting
-
stop()
- Stop thread
-
updateParameters()
- Updates parameters from the sliderControls
-
updateSpeed(int)
-
-
updateVariables()
- Update parameters form the textControls
ncurve
int ncurve
- number of curves
ncurve1
int ncurve1
- index of data curve
plot_x
int plot_x
- variable to be plotted on x-axis
plot_y
int plot_y
- variable to be plotted on x-axis
delay
int delay
- delay in graph update , and factor reducing time step
trans
double trans
- transient time
ntrans
int ntrans
- number of iterations to eliminate transient = trans/dt
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
t
double t
- evolving time
dt
double dt
- time step (after reduction by delay)
dtp
double dtp
- input time step
x
double x[]
- evolving variables
a
double a
- parameter of equations R1/R
b
double b
- parameter of equations (R2-R1)/R2
c
double c
- parameter of equations R1*R1*C1/L
r
double r
- parameter of equations C1/C2
rl
double rl
- parameter of equations r/R1
params
double params[]
- inital values of R,R1,R2,C1,C2,L,r
x0
double x0[]
- starting values of x
err
double err
- error estimates from ode solver
errp
double errp
- error estimates from ode solver
axisLabel
String axisLabel[]
- axis labels
transientColor
Color transientColor
- Color of ghost
numSliders
int numSliders
- number of parameters set by sliders
status
Label status
- GUI item
Chua
public Chua(startChua target)
- Parameters:
- target - starting class
- See Also:
- startChua
respondToText
public void respondToText()
- Responds to textControls
- Overrides:
- respondToText in class dynamicGraph
- See Also:
- textControls
respondToSliderButtons
public void respondToSliderButtons()
- Responds to buttons in sliderControls
- Overrides:
- respondToSliderButtons in class dynamicGraph
- See Also:
- sliderControls
respondToSliderText
public void respondToSliderText()
- Responds to text boxes in sliderControls
- Overrides:
- respondToSliderText in class dynamicGraph
- See Also:
- sliderControls
insets
public Insets insets()
- Overrides:
- insets in class Container
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 in variables
enableAll
public void enableAll()
- Enables text input in variables
derivs
public double[] derivs(double x[],
double t,
int n)
- Returns RHS of differential equations for Chua 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 sliderControls
updateVariables
public void updateVariables()
- Update parameters form the textControls
restart
public void restart()
- Resets plot by deleting all curves and restarting
iterate
public boolean iterate()
- Iterates Chua equations and updates graph
- Overrides:
- iterate in class dynamicGraph
stop
public void stop()
- Stop thread
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
updateSpeed
public void updateSpeed(int in_delay)
- Overrides:
- updateSpeed in class dynamicGraph