public class BertrandExperiment extends Experiment
MultiplePartsPanel.SOCRToolBar| Modifier and Type | Field and Description |
|---|---|
static int |
UNIFORM_ANGLE |
static int |
UNIFORM_DISTANCE |
showModelDistributionapplet, 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, stopaddGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getRecordTable, getTextPanel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setApplet, setName, updatecreateComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSettersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAppletpublic static final int UNIFORM_DISTANCE
public static final int UNIFORM_ANGLE
public BertrandExperiment()
public void initialize()
Experimentinitialize in interface IExperimentinitialize in class Experimentpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged in interface java.awt.event.ItemListeneritemStateChanged in class Experimentpublic void doExperiment()
doExperiment in interface IExperimentdoExperiment in class Experimentpublic void update()
update in interface IExperimentupdate in class Experimentpublic void step()
step in interface IExperimentstep in class Experimentpublic void reset()
reset in interface IExperimentreset in class Experiment