Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SchedulerChoice.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace storm {
7namespace storage {
8
9template<typename ValueType>
11 public:
16
21 SchedulerChoice(uint_fast64_t deterministicChoice);
22
28
34
38 bool isDefined() const;
39
43 bool isDeterministic() const;
44
49 uint_fast64_t getDeterministicChoice() const;
50
55
59 template<typename NewValueType>
62 for (auto const& stateValuePair : distribution) {
63 newDistribution.addProbability(stateValuePair.first, storm::utility::convertNumber<NewValueType>(stateValuePair.second));
64 }
65 return SchedulerChoice<NewValueType>(std::move(newDistribution));
66 }
67
68 private:
70};
71
72template<typename ValueType>
73std::ostream& operator<<(std::ostream& out, SchedulerChoice<ValueType> const& schedulerChoice);
74} // namespace storage
75} // namespace storm
void addProbability(StateType const &state, ValueType const &probability)
Assigns the given state the given probability under this distribution.
uint_fast64_t getDeterministicChoice() const
If this choice is deterministic, this function returns the selected (local) choice index.
storm::storage::Distribution< ValueType, uint_fast64_t > const & getChoiceAsDistribution() const
Retrieves this choice in the form of a probability distribution.
SchedulerChoice()
Creates an undefined scheduler choice.
bool isDeterministic() const
Returns true iff this scheduler choice is deterministic (i.e., not randomized)
SchedulerChoice< NewValueType > toValueType() const
Changes the value type of this scheduler choice to the given one.
bool isDefined() const
Returns true iff this scheduler choice is defined.
std::ostream & operator<<(std::ostream &out, ParameterRegion< ParametricType > const &region)
LabParser.cpp.
Definition cli.cpp:18