public class MeanTestExperiment extends Experiment implements java.io.Serializable
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
static int |
LEFT |
static int |
RIGHT |
static int |
TWO_SIDED |
applet, GREEN, RED, showModelDistribution, stopChoice, stopCount, stopFreq, stopNow, time, timer, toolIndex, updateCount, updateFreq
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
MeanTestExperiment() |
Modifier and Type | Method and Description |
---|---|
void |
doExperiment()
This method defines the experiment.
|
java.lang.String |
getAppletInfo()
This method returns basic information about the applet, including copyright
information, descriptive information, and instructions.
|
javax.swing.JTable |
getResultTable() |
void |
graphUpdate() |
void |
init()
This method initializes the experiment, including the slider for the
parameters of the sampling distribution, the graph and table showing the
reject random variable, the choice boxes for the type of sampling distribution,
the type of test, the significnce leve, and the type of test statistic, and
the toolbar.
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
This event handles the choice events associated with a change in the
sampling distribution, a change in the type of test, a change in the
significance level, or a change in the type of test statistic.
|
void |
reset()
This method resets the experiment, including the sampling random variable,
the standard score variable, the test graph, the standard score graph, the
reject graph and table, and the record table.
|
void |
setDistribution()
This method sets the distribution of the sampling variable when the
parameters of the distribution have changed.
|
void |
setParameters()
This method sets the distribution of the standard score, and then updates
the record table, and standard score graph appropriately.
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
This method handles the scrollbar events associated with changes in the
sample size, the distribution parameters, or the test mean.
|
void |
step()
This method runs the experiment one time, and plays a sound depending
on the outcome.
|
void |
update()
This method updates the display, including the test graph, the standard
score graph, the reject graph and table, the sample table, and the record
table.
|
actionPerformed, addComponent, addComponent, addComponent, addTool, addToolBar, format, getComponentPanel, getDisplayPane, getMainToolBar, getOnlineDescription, getStopChoice, getStopFreq, getTime, getTimer, getUpdateChoice, initialize, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, playnote, playnote, run, setApplet, setDecimalFormat, setShowModelDistribution, setStopChoice, setStopChoiceTipText, setStopFreq, setStopNow, stop, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
public static final int TWO_SIDED
public static final int LEFT
public static final int RIGHT
public void init()
init
in class Experiment
public java.lang.String getAppletInfo()
getAppletInfo
in interface IExperiment
getAppletInfo
in class Experiment
public void reset()
reset
in interface IExperiment
reset
in class Experiment
public void doExperiment()
doExperiment
in interface IExperiment
doExperiment
in class Experiment
public void step()
step
in interface IExperiment
step
in class Experiment
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
itemStateChanged
in class Experiment
e
- the item eventpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
stateChanged
in class Experiment
e
- the change eventpublic void update()
update
in interface IExperiment
update
in class Experiment
public void graphUpdate()
graphUpdate
in interface IExperiment
graphUpdate
in class Experiment
public void setParameters()
public void setDistribution()
public javax.swing.JTable getResultTable()
getResultTable
in interface IExperiment
getResultTable
in class Experiment