public class Application extends MultiplePartsPanel implements java.util.Observer, IExperiment
MultiplePartsPanel.SOCRToolBar| Modifier and Type | Field and Description |
|---|---|
protected int |
numStocks |
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars| Constructor and Description |
|---|
Application() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTool2(javax.swing.JComponent c) |
void |
doExperiment()
This method defines what the experiment actually does, and should be
overridden
|
void |
emptyTool() |
void |
emptyTool2() |
java.lang.String |
getAppletInfo() |
java.awt.Container |
getDisplayPane() |
static Application |
getInstance(java.lang.String classname) |
java.lang.String |
getLocalAbout() |
java.lang.String |
getLocalHelp() |
java.lang.String |
getOnlineDescription() |
javax.swing.JTable |
getResultTable() |
int |
getStopFreq()
This method returns the stop frequency
|
int |
getTime()
This method gets the time parameter of the stochastic process.
|
java.lang.String |
getWikiAbout() |
java.lang.String |
getWikiHelp() |
void |
graphUpdate() |
void |
init() |
void |
initialize() |
void |
loadSlider(double[] r1,
double[] c1,
double[] m1) |
void |
reset()
This method is the default reset method, that resets the process to its
initial state.
|
void |
setApplet(javax.swing.JApplet a) |
void |
setNumberStocks(java.lang.String number) |
void |
setShowModelDistribution(boolean flag) |
void |
setStopFreq(int i)
This method sets the stop frequency
|
void |
setStopNow(boolean b)
This method defines the boolean variable that stops the process, when the
simulation is in run mode
|
void |
setTangent(boolean t) |
void |
step()
This method is the default step method, that runs the process one time
unit.
|
void |
stop()
This method stops the simulation thread
|
void |
update()
This method is the default update method and defines how the display is
updated.
|
void |
updateGraph(javax.swing.JComponent c) |
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, setName, updatecreateComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSettersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic static Application getInstance(java.lang.String classname) throws java.lang.Exception
java.lang.Exceptionpublic void init()
public void setNumberStocks(java.lang.String number)
public void addTool2(javax.swing.JComponent c)
public void emptyTool()
public void emptyTool2()
public void updateGraph(javax.swing.JComponent c)
public void setApplet(javax.swing.JApplet a)
setApplet in interface PluginablesetApplet in class MultiplePartsPanelpublic java.lang.String getLocalAbout()
public void setTangent(boolean t)
public java.lang.String getLocalHelp()
public java.lang.String getWikiAbout()
public java.lang.String getWikiHelp()
public java.awt.Container getDisplayPane()
getDisplayPane in interface Pluginablepublic void doExperiment()
IExperimentdoExperiment in interface IExperimentpublic java.lang.String getAppletInfo()
getAppletInfo in interface IExperimentpublic java.lang.String getOnlineDescription()
getOnlineDescription in interface IExperimentpublic javax.swing.JTable getResultTable()
getResultTable in interface IExperimentpublic int getStopFreq()
IExperimentgetStopFreq in interface IExperimentpublic int getTime()
IExperimentgetTime in interface IExperimentpublic void graphUpdate()
graphUpdate in interface IExperimentpublic void initialize()
initialize in interface IExperimentpublic void reset()
IExperimentreset in interface IExperimentpublic void setShowModelDistribution(boolean flag)
setShowModelDistribution in interface IExperimentpublic void setStopFreq(int i)
IExperimentsetStopFreq in interface IExperimentpublic void setStopNow(boolean b)
IExperimentsetStopNow in interface IExperimentpublic void step()
IExperimentstep in interface IExperimentpublic void stop()
IExperimentstop in interface IExperimentpublic void update()
IExperimentupdate in interface IExperimentpublic void loadSlider(double[] r1,
double[] c1,
double[] m1)