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

Variable Index

 o a
parameter of equations R1/R
 o axisLabel
axis labels
 o b
parameter of equations (R2-R1)/R2
 o c
parameter of equations R1*R1*C1/L
 o delay
delay in graph update , and factor reducing time step
 o dt
time step (after reduction by delay)
 o dtp
input time step
 o err
error estimates from ode solver
 o errp
error estimates from ode solver
 o ncurve
number of curves
 o ncurve1
index of data curve
 o ntrans
number of iterations to eliminate transient = trans/dt
 o numSliders
number of parameters set by sliders
 o nVariables
number of variables (icluding time)
 o params
inital values of R,R1,R2,C1,C2,L,r
 o plot_x
variable to be plotted on x-axis
 o plot_y
variable to be plotted on x-axis
 o r
parameter of equations C1/C2
 o rl
parameter of equations r/R1
 o runTrans
true if transient is to be run on call to restart()
 o showTime
true if time to be shown.
 o status
GUI item
 o t
evolving time
 o trans
transient time
 o transientColor
Color of ghost
 o x
evolving variables
 o x0
starting values of x

Constructor Index

 o Chua(startChua)

Method Index

 o derivs(double[], double, int)
Returns RHS of differential equations for Chua model
 o disableAll()
Disables text input in variables
 o enableAll()
Enables text input in variables
 o handleEvent(Event)
Event handler: Stops iteration on minimising and handles close window event
(May fail under Windows95)
 o insets()
 o iterate()
Iterates Chua equations and updates graph
 o movieStart()
Start movie thread
 o movieStop()
Stop movie thread
 o respondToButtons(int)
Respond to buttonControls
 o respondToChoices()
Responds to choiceControls
 o respondToSliderButtons()
Responds to buttons in sliderControls
 o respondToSliderText()
Responds to text boxes in sliderControls
 o respondToText()
Responds to textControls
 o restart()
Resets plot by deleting all curves and restarting
 o stop()
Stop thread
 o updateParameters()
Updates parameters from the sliderControls
 o updateSpeed(int)
 o updateVariables()
Update parameters form the textControls

Variables

 o ncurve
 int ncurve
number of curves

 o ncurve1
 int ncurve1
index of data curve

 o plot_x
 int plot_x
variable to be plotted on x-axis

 o plot_y
 int plot_y
variable to be plotted on x-axis

 o delay
 int delay
delay in graph update , and factor reducing time step

 o trans
 double trans
transient time

 o ntrans
 int ntrans
number of iterations to eliminate transient = trans/dt

 o nVariables
 int nVariables
number of variables (icluding time)

 o runTrans
 boolean runTrans
true if transient is to be run on call to restart()

 o showTime
 boolean showTime
true if time to be shown. Set by choices

 o t
 double t
evolving time

 o dt
 double dt
time step (after reduction by delay)

 o dtp
 double dtp
input time step

 o x
 double x[]
evolving variables

 o a
 double a
parameter of equations R1/R

 o b
 double b
parameter of equations (R2-R1)/R2

 o c
 double c
parameter of equations R1*R1*C1/L

 o r
 double r
parameter of equations C1/C2

 o rl
 double rl
parameter of equations r/R1

 o params
 double params[]
inital values of R,R1,R2,C1,C2,L,r

 o x0
 double x0[]
starting values of x

 o err
 double err
error estimates from ode solver

 o errp
 double errp
error estimates from ode solver

 o axisLabel
 String axisLabel[]
axis labels

 o transientColor
 Color transientColor
Color of ghost

 o numSliders
 int numSliders
number of parameters set by sliders

 o status
 Label status
GUI item

Constructors

 o Chua
 public Chua(startChua target)
Parameters:
target - starting class
See Also:
startChua

Methods

 o respondToText
 public void respondToText()
Responds to textControls

Overrides:
respondToText in class dynamicGraph
See Also:
textControls
 o respondToSliderButtons
 public void respondToSliderButtons()
Responds to buttons in sliderControls

Overrides:
respondToSliderButtons in class dynamicGraph
See Also:
sliderControls
 o respondToSliderText
 public void respondToSliderText()
Responds to text boxes in sliderControls

Overrides:
respondToSliderText in class dynamicGraph
See Also:
sliderControls
 o insets
 public Insets insets()
Overrides:
insets in class Container
 o movieStop
 public void movieStop()
Stop movie thread

 o movieStart
 public void movieStart()
Start movie thread

 o 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
 o disableAll
 public void disableAll()
Disables text input in variables

 o enableAll
 public void enableAll()
Enables text input in variables

 o 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
 o updateParameters
 public void updateParameters()
Updates parameters from the sliderControls

 o updateVariables
 public void updateVariables()
Update parameters form the textControls

 o restart
 public void restart()
Resets plot by deleting all curves and restarting

 o iterate
 public boolean iterate()
Iterates Chua equations and updates graph

Overrides:
iterate in class dynamicGraph
 o stop
 public void stop()
Stop thread

 o respondToChoices
 public void respondToChoices()
Responds to choiceControls

Overrides:
respondToChoices in class dynamicGraph
See Also:
choiceControls
 o respondToButtons
 public void respondToButtons(int buttonIndex)
Respond to buttonControls

Parameters:
buttonIndex - index of button pushed
Overrides:
respondToButtons in class dynamicGraph
See Also:
buttonControls
 o updateSpeed
 public void updateSpeed(int in_delay)
Overrides:
updateSpeed in class dynamicGraph