Browse Source

set seed for the simulator after initialization

refactoring
Sebastian Junges 4 years ago
parent
commit
92268776fd
  1. 3
      lib/stormpy/simulator.py

3
lib/stormpy/simulator.py

@ -99,6 +99,9 @@ class SparseSimulator(Simulator):
self._state_valuations = None self._state_valuations = None
self.set_full_observability(self._model.model_type != stormpy.storage.ModelType.POMDP) self.set_full_observability(self._model.model_type != stormpy.storage.ModelType.POMDP)
def set_seed(self, value):
self._engine.set_seed(value)
def available_actions(self): def available_actions(self):
if self._action_mode == SimulatorActionMode.INDEX_LEVEL: if self._action_mode == SimulatorActionMode.INDEX_LEVEL:
return range(self.nr_available_actions()) return range(self.nr_available_actions())

Loading…
Cancel
Save