You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
#ifndef STORM_SOLVER_ABSTRACTGAMESOLVER_H_
|
|
#define STORM_SOLVER_ABSTRACTGAMESOLVER_H_
|
|
|
|
#include <cstdint>
|
|
|
|
namespace storm {
|
|
namespace solver {
|
|
/*!
|
|
* The abstract base class for the game solvers.
|
|
*/
|
|
class AbstractGameSolver {
|
|
public:
|
|
/*!
|
|
* Creates a game solver with the default parameters.
|
|
*/
|
|
AbstractGameSolver();
|
|
|
|
/*!
|
|
* Creates a game solver with the given parameters.
|
|
*
|
|
* @param precision The precision to achieve.
|
|
* @param maximalNumberOfIterations The maximal number of iterations to perform.
|
|
* @param relative A flag indicating whether a relative or an absolute stopping criterion is to be used.
|
|
*/
|
|
AbstractGameSolver(double precision, uint_fast64_t maximalNumberOfIterations, bool relative);
|
|
|
|
protected:
|
|
// The precision to achieve.
|
|
double precision;
|
|
|
|
// The maximal number of iterations to perform.
|
|
uint_fast64_t maximalNumberOfIterations;
|
|
|
|
// A flag indicating whether a relative or an absolute stopping criterion is to be used.
|
|
bool relative;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* STORM_SOLVER_ABSTRACTGAMESOLVER_H_ */
|