public class BertrandExperiment extends Experiment
MultiplePartsPanel.SOCRToolBar
Modifier and Type | Field and Description |
---|---|
static int |
UNIFORM_ANGLE |
static int |
UNIFORM_DISTANCE |
showModelDistribution
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
Constructor and Description |
---|
BertrandExperiment()
Initialize the experiment: Set the name, add the toolbar with the model
choices; add the floor graph and the random variable graph; add the
record table and the random variable table
|
Modifier and Type | Method and Description |
---|---|
void |
doExperiment()
Perform the experiment: compute random distance or angle (depending on
the model), compute the x and y coordinates of the chord
|
void |
initialize()
used for some sublcass to initialize before be used
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
Determine which model is used: random distance or random angle
|
void |
reset()
Reset the experiment: record table, floor, random variable, random
variable graph and table
|
void |
step()
Single step.
|
void |
update()
Update the display: record table, floor, random variable graph and table
|
actionPerformed, getAppletInfo, getDisplayPane, getInstance, getName, getOnlineDescription, getResultTable, getStopChoice, getStopFreq, getTime, getUpdateChoice, graphUpdate, resetUpdateCount, run, setShowModelDistribution, setStopFreq, setStopNow, stop
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getRecordTable, getTextPanel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setApplet, setName, update
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setApplet
public static final int UNIFORM_DISTANCE
public static final int UNIFORM_ANGLE
public BertrandExperiment()
public void initialize()
Experiment
initialize
in interface IExperiment
initialize
in class Experiment
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
itemStateChanged
in class Experiment
public void doExperiment()
doExperiment
in interface IExperiment
doExperiment
in class Experiment
public void update()
update
in interface IExperiment
update
in class Experiment
public void step()
step
in interface IExperiment
step
in class Experiment
public void reset()
reset
in interface IExperiment
reset
in class Experiment