Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
DiscreteTimeSparseModelSimulator.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace storm {
7namespace simulator {
8
17template<typename ValueType, typename RewardModelType = storm::models::sparse::StandardRewardModel<ValueType>>
19 public:
21 void setSeed(uint64_t);
22 bool step(uint64_t action);
23 bool randomStep();
24 std::vector<ValueType> const& getLastRewards() const;
25 uint64_t getCurrentState() const;
26 bool resetToInitial();
27
28 protected:
30 uint64_t currentState;
31 std::vector<ValueType> lastRewards;
32 std::vector<ValueType> zeroRewards;
34};
35} // namespace simulator
36} // namespace storm
Base class for all sparse models.
Definition Model.h:32
This class is a low-level interface to quickly sample from Discrete-Time Models stored explicitly as ...
storm::models::sparse::Model< ValueType, RewardModelType > const & model
storm::utility::RandomProbabilityGenerator< ValueType > generator