22 #ifndef SGPROBABILITYTABLEMODEL_H
23 #define SGPROBABILITYTABLEMODEL_H
26 #include <QAbstractTableModel>
29 #include "sgpayofftablemodel.hpp"
53 int _state,
int _nextState):
61 QVariant
data(
const QModelIndex & index,
62 int role)
const Q_DECL_OVERRIDE;
67 bool setData(
const QModelIndex & index,
const QVariant & value,
int role);
Reimplements SGPayoffTable model to specialize to probabilities.
Definition: sgprobabilitytablemodel.hpp:39
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE
Reimplements the data method.
Definition: sgprobabilitytablemodel.cpp:25
bool setData(const QModelIndex &index, const QVariant &value, int role)
Reimplements the setData method.
Definition: sgprobabilitytablemodel.cpp:47
Describes a stochastic game.
Definition: sggame.hpp:40
bool setNextState(int newState)
Sets nextState.
Definition: sgprobabilitytablemodel.hpp:70
Derived class for payoff table models.
Definition: sgpayofftablemodel.hpp:42
SGGame * game
Pointer to the associated game.
Definition: sgtablemodel.hpp:79
int nextState
Tomorrow's state.
Definition: sgprobabilitytablemodel.hpp:46
int getNumStates() const
Returns the number of states.
Definition: sggame.hpp:179
SGProbabilityTableModel(SGGame *_game, int _state, int _nextState)
Constructor.
Definition: sgprobabilitytablemodel.hpp:52