|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.core.SOCRValueSettable edu.ucla.stat.SOCR.core.MultiplePartsPanel edu.ucla.stat.SOCR.core.Experiment edu.ucla.stat.SOCR.experiments.FireExperiment
public class FireExperiment
This class models the fire experiment. Each tree in a rectangular forest can be on fire, burnt, or green. When a tree is on fire at time t, it may catch any of its neighboring trees on fire at time t + 1. A tree on fire at time t is burnt at time t + 1, and remains burnt thereafter.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel |
---|
MultiplePartsPanel.SOCRToolBar |
Field Summary |
---|
Fields inherited from class edu.ucla.stat.SOCR.core.Experiment |
---|
showModelDistribution |
Fields inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel |
---|
applet, fName, graphs, mainPane, recordTable, tables, toolbar2, toolbars |
Constructor Summary | |
---|---|
FireExperiment()
This method initializes the experiment, including the toolbars, scrollbars, labels, forest. |
Method Summary | |
---|---|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
This method handles the scrollbar events associated with changes in the fire-spread probabilities. |
void |
doExperiment()
This method defines the experiment. |
void |
itemStateChanged(java.awt.event.ItemEvent event)
This method handles the choice events associated with changing the size of the forest and changing the edit color. |
void |
mouseClicked(java.awt.event.MouseEvent event)
This method handles the mouse click events that are associated with changing the states of trees. |
void |
mouseMoved(java.awt.event.MouseEvent event)
This method handles the mouse move events, so the the mouse position can be tracked. |
void |
reset()
This method resets the experiment, including the forest, and the record table. |
void |
update()
This method updates the experiment, including the forest and the update record. |
Methods inherited from class edu.ucla.stat.SOCR.core.Experiment |
---|
actionPerformed, getAppletInfo, getDisplayPane, getInstance, getName, getOnlineDescription, getResultTable, getStopChoice, getStopFreq, getTime, getUpdateChoice, graphUpdate, initialize, pasteData, resetUpdateCount, run, setShowModelDistribution, setStopFreq, setStopNow, step, stop |
Methods inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel |
---|
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, play, removeToolbar, setApplet, setName, update |
Methods inherited from class edu.ucla.stat.SOCR.core.SOCRValueSettable |
---|
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.ucla.stat.SOCR.core.Pluginable |
---|
setApplet |
Constructor Detail |
---|
public FireExperiment()
Method Detail |
---|
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 adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |