22 #ifndef SGSIMULATIONHANDLER_HPP
23 #define SGSIMULATIONHANDLER_HPP
28 #include <QFormLayout>
30 #include "sgsimulator.hpp"
31 #include "sgsimulationplot.hpp"
32 #include "qcustomplot.h"
QLineEdit * simEdit
Displays the number of simulations to run.
Definition: sgsimulationhandler.hpp:73
void simulate()
Triggers a new simulation.
Definition: sgsimulationhandler.cpp:267
const SGSolution_PencilSharpening & soln
Constant reference to the associated SGSolution object.
Definition: sgsimulationhandler.hpp:55
QCPBars * stateBars
Bars displaying for the distribution of states.
Definition: sgsimulationhandler.hpp:88
Records the progress of SGSolver::solve().
Definition: sgsolution_pencilsharpening.hpp:41
QCPAxisRect * tupleDistrRect
The QCPAxisRect object associated with the tuple distributions.
Definition: sgsimulationhandler.hpp:97
QLineEdit * longRunPayoffEdit
Displays the average payoffs over the course of the simulation.
Definition: sgsimulationhandler.hpp:77
QCPBars * tupleBars
Bars displaying the distribution of tuples.
Definition: sgsimulationhandler.hpp:90
virtual ~SGSimulationHandler()
Destructor.
Definition: sgsimulationhandler.hpp:109
SGSimulationHandler(QWidget *parent, const SGSolution_PencilSharpening &_soln, const SGPoint &_point, int _state)
Constructor.
Definition: sgsimulationhandler.cpp:24
QCPAxisRect * stateDistrRect
The QCPAxisRect object associated with the state distributions.
Definition: sgsimulationhandler.hpp:95
vector< QCPAxisRect * > actionDistrRects
The QCPAxisRect objects associated with the action distributions.
Definition: sgsimulationhandler.hpp:99
const int state
Initial state for the simulation.
Definition: sgsimulationhandler.hpp:65
A vector in .
Definition: sgpoint.hpp:35
QTextEdit * transitionTableEdit
Displays the decomposition of extremal equilibria.
Definition: sgsimulationhandler.hpp:85
Widget for forward simulating an equilibrium.
Definition: sgsimulationhandler.hpp:54
SGSimulator sim
The associated SGSimulator object.
Definition: sgsimulationhandler.hpp:68
QTextEdit * textEdit
Displays the first 200 periods of the simulation.
Definition: sgsimulationhandler.hpp:83
vector< QCPBars * > actionBars
Bars displaying the distributions of actions in each state.
Definition: sgsimulationhandler.hpp:92
Class for forward simulating equilibria.
Definition: sgsimulator.hpp:74
int initialTuple
The initial tuple for the simulation.
Definition: sgsimulationhandler.hpp:70
QLineEdit * iterationEdit
Displays the number of periods for which to simulate.
Definition: sgsimulationhandler.hpp:75
A customized version of QCustomPlot.
Definition: sgsimulationplot.hpp:35
QLineEdit * timeEdit
Displays the time it took the simulation to run.
Definition: sgsimulationhandler.hpp:79
const SGPoint & point
Discounted payoffs in the simulated equilibrium.
Definition: sgsimulationhandler.hpp:63
SGSimulationPlot * distrPlot
Displays the distribution of tuples, states, and action profiles.
Definition: sgsimulationhandler.hpp:81