public class VoterExperiment extends Experiment
MultiplePartsPanel.SOCRToolBar
showModelDistribution
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
Constructor and Description |
---|
VoterExperiment()
This method initializes the experiment, including the set of voters, the
toolbar with choices and labels.
|
Modifier and Type | Method and Description |
---|---|
void |
doExperiment()
This method defines the experiment.
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
This method handles the events associated with the stop choice and the
voter choice.
|
void |
mouseClicked(java.awt.event.MouseEvent event)
This method handles the mouse events that correspond to clicking on a
voter.
|
void |
mouseMoved(java.awt.event.MouseEvent event)
This method handles the mouse events that correspond moving the mouse
over the voters.
|
void |
reset()
This method resets the experiment.
|
void |
update()
This method updates the experiment, including the voters and the record
table.
|
actionPerformed, getAppletInfo, getDisplayPane, getInstance, getName, getOnlineDescription, getResultTable, getStopChoice, getStopFreq, getTime, getUpdateChoice, graphUpdate, initialize, resetUpdateCount, run, setShowModelDistribution, setStopFreq, setStopNow, step, stop
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, 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 VoterExperiment()
public void doExperiment()
doExperiment
in interface IExperiment
doExperiment
in class Experiment
public void reset()
reset
in interface IExperiment
reset
in class Experiment
public void update()
update
in interface IExperiment
update
in class Experiment
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
itemStateChanged
in class Experiment
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class MultiplePartsPanel
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class MultiplePartsPanel