Class Odes
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----ChaosDemos.dynamicGraph
|
+----Odes
- public class Odes
- extends dynamicGraph
Iterates and plots the chaos models described by coupled ODEs.
Uses the "Java Graph Class Library" by Leigh Brookshaw
- Version:
- 3 August, 1997
- Author:
- Michael Cross
-
a
- function parameter
-
aThread
-
-
buttons
-
-
choices
-
-
clicked
- true after first mouse click
-
delay
-
-
documentBase
- location of marker.txt
-
function
- function type
-
functionChoice
-
-
ghostTime
-
-
graph
-
-
marker
- input marker size
-
markerScale
- marker size
-
markerType
- type of marker (see marker.txt)
-
ncurve
- number of curves
-
nVariables
- number of variables (icluding time)
-
odesFunction
-
-
parameters
-
-
plot
- plot type
-
plotChoice
-
-
showGhost
- true if ghost to be showed
-
showTime
- true if time to be displayed
-
solver
-
-
status
-
-
topRightPanel
-
-
transientColor
- color of ghost
-
variables
-
-
xmax
-
-
xmin
-
-
xmouse
-
-
ymax
-
-
ymin
-
-
ymouse
-
-
Odes(startOdes, URL)
-
-
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 ODE and updates graph
-
movieStart()
- Start movie thread
-
movieStop()
- Stop movie thread
-
respondToButtons(int)
- Respond to buttonControls
-
respondToChoices()
- Responds to choiceControls
-
respondToMouse(double, boolean, double, boolean)
- Responds to mouse events
-
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)
-
graph
superGraph2D graph
solver
ode solver
odesFunction
OdesFunction odesFunction
aThread
Thread aThread
variables
textControls variables
parameters
textControls parameters
buttons
buttonControls buttons
choices
choiceControls choices
topRightPanel
Panel topRightPanel
plotChoice
Choice plotChoice
functionChoice
Choice functionChoice
status
Label status
documentBase
URL documentBase
- location of marker.txt
marker
double marker
- input marker size
markerScale
double markerScale
- marker size
markerType
int markerType
- type of marker (see marker.txt)
clicked
boolean clicked
- true after first mouse click
showTime
boolean showTime
- true if time to be displayed
showGhost
boolean showGhost
- true if ghost to be showed
nVariables
int nVariables
- number of variables (icluding time)
ncurve
int ncurve
- number of curves
plot
int plot
- plot type
function
int function
- function type
ghostTime
double ghostTime
delay
int delay
xmin
double xmin
xmax
double xmax
ymin
double ymin
ymax
double ymax
xmouse
double xmouse
ymouse
double ymouse
a
double a[]
- function parameter
transientColor
Color transientColor
- color of ghost
Odes
Odes(startOdes target,
URL in_documentBase)
- 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 ODE 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
respondToMouse
public void respondToMouse(double xcoord,
boolean xcoordValid,
double ycoord,
boolean ycoordValid)
- Responds to mouse events
- Parameters:
- xcoord - x-coordinate of mouse click
- xcoordValid - true if x-coordinate of mouse click within graph
- ycoord - y-coordinate of mouse click
- ycoordValid - true if y-coordinate of mouse click within graph
- Overrides:
- respondToMouse in class dynamicGraph