edu.ucla.stat.SOCR.core
Interface IExperiment

All Superinterfaces:
Pluginable
All Known Implementing Classes:
Application, BallotExperiment, BallotExperiment, BertrandExperiment, BertrandExperiment, BetaCoinExperiment, BetaCoinExperiment, BetaEstimateExperiment, BetaEstimateExperiment, BinomialCoinExperiment, BinomialCoinExperiment, BinomialTimelineExperiment, BinomialTimelineExperiment, BinomialTradingApplication, BirthdayExperiment, BirthdayExperiment, BivariateNormalExperiment, BivariateNormalExperiment, BivariateUniformExperiment, BivariateUniformExperiment, BlackScholesApplication, BuffonCoinExperiment, BuffonCoinExperiment, BuffonNeedleExperiment, BuffonNeedleExperiment, CardExperiment, CardExperiment, ChiSquareFitExperiment, ChiSquareFitExperiment, ChuckALuckExperiment, ChuckALuckExperiment, CoinDieExperiment, CoinDieExperiment, CoinSampleExperiment, CoinSampleExperiment, CoinTossLawOfLargeNumbersExperiment, ConfidenceIntervalExperimentGeneral, ConfidenceIntervalExperimentSimple, CouponCollectorExperiment, CouponCollectorExperiment, CrapsExperiment, CrapsExperiment, DiceExperiment, DiceExperiment, DiceSampleExperiment, DiceSampleExperiment, DieCoinExperiment, DieCoinExperiment, EstimateExperiment, EstimateExperiment, Experiment, Experiment, ExponentialExperiment, ExponentialTimesCarExperiment, FiniteOrderStatisticExperiment, FiniteOrderStatisticExperiment, FireExperiment, FireExperiment, GaltonBoardExperiment, GaltonBoardExperiment, GammaEstimateExperiment, GammaEstimateExperiment, GammaExperiment, GammaExperiment, GeneralBirthdayExperiment, LLN_SimpleExperiment, MarkovChainExperiment, MatchExperiment, MeanEstimateExperiment, MeanEstimateExperiment, MeanTestExperiment, MeanTestExperiment, MixtureEMExperiment, MixtureEMExperiment, MontyHallExperiment, MontyHallExperiment, NegativeBinomialExperiment, NegativeBinomialExperiment, NoApp, NormalEstimateExperiment, NormalEstimateExperiment, OrderStatisticExperiment, OrderStatisticExperiment, ParetoEstimateExperiment, PointExperiment, PointExperiment, Poisson2DExperiment, Poisson2DExperiment, PoissonExperiment, PoissonExperiment, PoissonSplitExperiment, PoissonSplitExperiment, PokerDiceExperiment, PokerDiceExperiment, PokerExperiment, PokerExperiment, PortfolioApplication, PortfolioApplication2, ProbabilityPlotExperiment, ProbabilityPlotExperiment, ProportionEstimateExperiment, ProportionEstimateExperiment, ProportionTestExperiment, ProportionTestExperiment, RandomVariableExperiment, RandomVariableExperiment, RandomWalkExperiment, RandomWalkExperiment, RedBlackExperiment, RedBlackExperiment, RouletteExperiment, RouletteExperiment, SampleMeanExperiment, SampleMeanExperiment, SamplingDistributionExperiment, SignTestExperiment, SignTestExperiment, SimulationResampleExperiment, SpinnerExperiment, SpinnerExperiment, StockApplication, StockSimulationApplication, TriangleExperiment, TriangleExperiment, Uniform_E_EstimateExperiment, UniformEstimateExperiment, UniformEstimateExperiment, UrnExperiment, UrnExperiment, VarianceEstimateExperiment, VarianceEstimateExperiment, VarianceTestExperiment, VarianceTestExperiment, VoterExperiment, VoterExperiment

public interface IExperiment
extends Pluginable

Author:
Jeff Ma

Method Summary
 void doExperiment()
          This method defines what the experiment actually does, and should be overridden
 java.lang.String getAppletInfo()
           
 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.
 void graphUpdate()
           
 void initialize()
           
 void pasteData(java.awt.datatransfer.Clipboard c)
           
 void reset()
          This method is the default reset method, that resets the process to its initial state.
 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 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.
 
Methods inherited from interface edu.ucla.stat.SOCR.core.Pluginable
getDisplayPane, getName, setApplet
 

Method Detail

getResultTable

javax.swing.JTable getResultTable()

getTime

int getTime()
This method gets the time parameter of the stochastic process. If the process is to replicate a basic random experiment, then the time parameter is the number of runs.


stop

void stop()
This method stops the simulation thread


doExperiment

void doExperiment()
This method defines what the experiment actually does, and should be overridden


step

void step()
This method is the default step method, that runs the process one time unit. This method can be overridden to add sound or other elements


reset

void reset()
This method is the default reset method, that resets the process to its initial state. This method should be overridden.


update

void update()
This method is the default update method and defines how the display is updated. This method should be overridden.


graphUpdate

void graphUpdate()

pasteData

void pasteData(java.awt.datatransfer.Clipboard c)

setStopNow

void setStopNow(boolean b)
This method defines the boolean variable that stops the process, when the simulation is in run mode


getStopFreq

int getStopFreq()
This method returns the stop frequency


setStopFreq

void setStopFreq(int i)
This method sets the stop frequency


getOnlineDescription

java.lang.String getOnlineDescription()

initialize

void initialize()

getAppletInfo

java.lang.String getAppletInfo()

setShowModelDistribution

void setShowModelDistribution(boolean flag)