All Packages Class Hierarchy
action(e,o)
is called when the button is pressed.
Enter
key is pressed.
action(e,o)
is called every time the button is pressed.
action(e,obj)
method is called when the button is
pressed.
add(SpinFlip spin)
is used to add a new spin to the
avalanche.
addCheck(check)
adds the object check
to the
list of objects which must approve changes in the value of the
variable.
addObserver(obs)
is overridden to make the notification of
observers more eficcient, and more predictable.
attributeIsSet(int)
method is used to check whether an
attribute has been set.
attributeSet(int)
method is used to set an attribute.
attributeUnSet(int)
method is used to unset an attribute.
AutoFitButton(model,loop,name)
constructor is
used to create a new button attatched to a particular model and view,
with the label given in the String
name.
Avalanche(double externalField, byte direction)
creates an Avalanche
data structure with the external
field and the direction set.
The intValue() method of ConfigurableInteger returns the value of the ConfigurableInteger as an int.
cDimensions
is a configurable integer containing the
number of dimensions of the lattice.
cDisorder
is a configurable double containing the
disorder of the system.
cDownSeed
is a configurable boolean which is true if there
is a row of seed spins initially flipped down.
cFieldGoal
is a configurable double containing the target
value for the external field.
check(variable,value)
is called by the configurable
variable
and returns true if value
is an
acceptable value for the variable, and false if it is not.
check(variable,value)
is called when either someone
tries to change either the width or the number of dimensions.
CheckLatticeSize(width,dimensions,maxSize,menu)
constructor constructs a new size checker, and attatches it to the
width and dimensions variables with the maximum size set to
maxSize.
checkSeedsDown()
is used to check the status of the DOWN
seed spins.
checkSeedsUp()
is used to check the status of the UP
seed spins.
checkValue(value)
asks all the registered
CheckConfigurable
instances whether the value of the
variable can be changed to value
.
clear()
is used to clear the display for a new
hysteresis loop.
clearAvalanche()
is used to erase the last avalanche
from the display.
cLorenzian
is a configurable boolean which is true if
the random fields obey a Lorenzian distribution, and false if they
obey a Gaussian distribution.
This constructor allows a ConfigurableBoolean to be constructed which exists outside the Configurable heirarchy and does not use its configurable functionality.
This constructor allows a ConfigurableBoolean to be constructed outside of the tree structure, but with short and long names.
This constructor is used to create a full-fledged ConfigurableBoolean with all of the functionality of a Configurable.
This constructor is used to create a full-fledged ConfigurableInteger with all of the functionality of a Configurable.
This constructor is used to create a full-fledged ConfigurableDouble with all of the functionality of a Configurable.
This constructor is used to create a full-fledged ConfigurableDouble with all of the functionality of a Configurable.
This constructor allows a ConfigurableDouble to be constructed which exists outside the Configurable heirarchy and does not use its configurable functionality.
This constructor allows a ConfigurableDouble to be constructed outside of the tree structure, but with short and long names.
ConfigurableException() constructs an exception without an error string by calling Exception's constructor.
ConfigurableException(String) constructs an exception with an error string by calling Exception's constructor.
This constructor is used to create a full-fledged ConfigurableInteger with all of the functionality of a Configurable.
This constructor is used to create a full-fledged ConfigurableInteger with all of the functionality of a Configurable.
This constructor allows a ConfigurableInteger to be constructed which exists outside the Configurable heirarchy and does not use its configurable functionality.
This constructor allows a ConfigurableInteger to be constructed outside of the tree structure, but with short and long names.
cUpSeed
is a configurable boolean which is true if there
is a row of seed spins initially flipped up.
cWidth
is a configurable integer containing the width
of the simulation.
deleteCheck(check)
removes the object check
from the list of objects which must approve changes in the value of
the variable.
deleteObserver(obs)
is overridden to make the notification
of observers more eficcient, and more predictable.
deleteObservers()
removes all observers from the
notification list.
The doubleValue() method of ConfigurableDouble returns the value of the ConfigurableDouble as a double.
downSeedsOff()
is used to turn off the row of seed spins
that are always flipped down.
downSeedsOn()
is used to turn on a row of seed spins
that are always flipped down.
drawAvalanche()
displays the last avalanche.
fit()
can be called from outside the class to zoom in
on the hysteresis loop without the user pressing the button.
The get(String) command is used to get the value of a variable in the ConfigurableCollections subtree.
getDirection()
returns the direction the spins flipped
to.
getExternalField()
returns the field at which the
avalanche flipped.
getField()
returns the current value of the external
field.
getField(sd)
returns a random field from some distribution
of random numbers which has a width sd
.
getFullName()
method is used to get the full, unique
name of a variable.
getLimits(lower,upper)
method is used to find
out the range of values possible for the external field (X)
and the magnetization (Y).
getLimits(lower,upper)
is used by consumers to find out
what range of values they can expect to receive.
getLongName()
method is used to get the long name
of a variable.
getShortName()
method is used to get the short name
of a variable.
getSize()
returns the size of the avalanche.
getSize()
returns the current size of the simulation
in an array of integers.
getSpin(int num)
returns spin number num
HysteresisPanel()
, the default constructor, is necessary
so that FastApplet
can load and construct the
HysteresisPanel
without knowing anything about it except
that it is a type of AppletPanel
.
incrementField(byte dir)
is used to start
a single avalanche in the direction direction
.
init()
reads in the param tags, sets up the splash screen
and starts a thread for loading the main applet class.
The intValue() method of ConfigurableInteger returns the value of the ConfigurableInteger as an int.
LatticeView(model,menu)
constructor is used to
create a new LatticeView
displaying the model
model
and attaching its menu to the menu menu
localMenu
contains the configuration menu for the
lattice view.
LoopButton(model,fit,name)
attatches the button
to the model, and the fit button which is used for zooming, and gives
the button a label given by the parameter name
LoopView(model,containerMenu)
constructor creates a
new LoopView
, attatches it to the model, and attatches
it to the applet menu system.
lxdflt=3
makeLoop()
is called to generate a new hysteresis loop.
maxlev=4
minimumSize()
returns the minimum size for the view.
mouseDown(evt,y)
is used to detect user mouse clicks.
mouseDrag(evt,y)
is called when the user drags the mouse
with the mouse down.
mouseUp(evt,x,y)
is called when the user lifts the mouse
button.
notify(avalanche,producer)
is called each time a
model generates an avalanche.
notify(avalanche,prod)
is called any time an avalanche
is produced.
notify(av,p)
is called every time a new avalanche is
generated by the model.
notify(XY,prod)
is called when there is a new point in
the hysteresis loop.
notify(XY,prod)
is called when a new avalanche has happened
in the model.
notify(XY,producer)
is called by an XYProducer
to send XY data to the consumer.
notifyObservers()
notifies all observers in the order in
which they were added.
notifyObservers(arg)
notifies all observers in the order in
which they were added.
The outputParams() method returns a string containing Param tags to set an entire subTree.
paint(g)
paints the background image and splash text
for the splash screen.
paint
is called whenever the display area needs to be
repainted.
paing(g)
does a number of things, depending on the
situation.
alpha
and lower cutoff
cut
preferredSize()
returns the preferred size of the view.
ProcessAvalanche(model)
constructor connects the
class to the hysteresis model, so that it is ready to start displaying
avalanches to standard out.
Math.random().
redraw()
is used to redraw the hysteresis loop from the
hystory when the user has zoomed in.
registerAvalancheConsumer(consumer)
is called to
add a consumer.
registerAvalancheConsumer(consumer)
method is used to keep track of what
classes want to be sent the avalanche data.
registerXYConsumer(consumer)
method is
used to keep track of what classes
want to be sent the external field and magnetization data.
registerXYConsumer(consumer)
is used to add a new
consumer.
removeAvalancheConsumer(consumer)
is called to
remove a consumer.
removeAvalancheConsumer(consumer)
method is used
to stop sending avalanche data to a consumer.
removeXYConsumer(consumer)
method is used
to stop sending field and magnetization data to a consumer.
removeXYConsumer
is used to remove a consumer.
resize(newSize)
is overridden so that the display will
be re-setup when the area is resized.
resize(d)
is overridden to make sure that the display
responds to the resizing of the canvas.
resize(x,y)
is overridden to make sure that the display
responds to the resizing of the canvas.
resizeView()
is used to respond to the fact that the size
of the canvas has changed.
restart()
is called when we want to reset the view.
run()
is called when the action method creates a new
thread.
run()
is called when the thread is started in the
init()
method.
run()
is called when makeLoop()
spawns
a new thread.
running
is a ConfigurableBoolean
which
contains the value true
if the model is running,
and false
otherwise.
We often will want to set the value of our ConfigurableInteger using an int, rather than a string, so we provide a set(int) method.
We often will want to set the value of our ConfigurableDouble using a double, rather than a string, so we provide a set(double) method.
We often will want to set the value of our ConfigurableInteger using an int, rather than a string, so we provide a set(int) method.
set(String val)
abstract method is used to set the
value of a variable.
The set(String) method of ConfigurableInteger takes a string as its argument, (e.g.
ConfigurableCollection
, the set(String)
method is implemented with logic for setting the values of the
collection's children.
The set(String) method of ConfigurableDouble takes a string as its argument, (e.g.
The set(String) method of ConfigurableInteger takes a string as its argument, (e.g.
setGoal(goal)
method is used to set the model
running until it passes a certain goal field.
setLongName(String)
method is used to reset the long
name of a variable.
setSize(dimensions,width)
method can be used to
the dimensions of the system.
setup(applet,label)
is called by the FastApplet
to do any initialization required by applet that is being loaded.
setup(applet, myLabel)
is used to set up the display
and the simulation.
SpinFlip(coords[],num,level,nField)
constructor
creates a new SpinFlip
with the appropriate values.
stop()
method will stop the simulation
as soon as the current avalanche is complete.
StopButton(model)
constructor attaches the button
to a model.
toString()
abstract method is used to get the value
of the variable as a string.
The toString() method of ConfigurableInteger returns a string representing the value of the ConfigurableInteger.
set(String)
method will
set all of the variables in the ConfigurableCollection's sub-tree.
The toString() method of ConfigurableDouble returns a string representing the value of the ConfigurableDouble.
The toString() method of ConfigurableInteger returns a string representing the value of the ConfigurableInteger.
update(g)
is overridden so that the screen is not blanked
before each repaint.
update(g)
is overridded so that the display will not be
blanked before it is redrawn.
update(g)
is overridden so that the display is not cleared
before repaints.
update(obs,obj)
is called whenever the parameters of the
simulation are changed.
Observer
interface is used to cause the edit-box to
change when its variable's value changes.
update(obs,obj)
method is called whenever
one of the configurable variables is changed.
update(obs, obj)
catches changes in the size of the
lattice.
update
is called when one of the configurable parameters
of the model has changed.
update(o,obj)
is called whenever one of the parameters
of the model is changed.
update(obs,obj)
is called when the Configurable parameters
of the model are changed.
update(obs,obj)
is called every time a new pass through
the simulation is started.
upSeedsOff()
is used to turn off the row of seed spins
that are always flipped up.
upSeedsOn()
is used to add a row of seed spins that are
always flipped up.
XYPair(X,Y)
constructs a new XYPair
with
the values X and Y.
zoomIn()
is used to zoom in to the coordinates the user
has dragged a box around.
zoomIn(min,max)
zooms the display to the coordinates
given in the variables min and max.
zoomOut()
is used to zoom out by a factor of two.