Storm 1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ConditionalAlgorithmSetting.cpp
Go to the documentation of this file.
2
3namespace storm {
4std::ostream& operator<<(std::ostream& stream, ConditionalAlgorithmSetting const& algorithm) {
5 switch (algorithm) {
7 return stream << "default";
9 return stream << "restart";
11 return stream << "bisection";
13 return stream << "bisection-advanced";
15 return stream << "bisection-pt";
17 return stream << "bisection-advanced-pt";
19 return stream << "pi";
20 }
21 STORM_LOG_THROW(false, storm::exceptions::UnexpectedException, "Unknown conditional algorithm");
22 return stream;
23}
24
26 if (algorithm == "default") {
28 } else if (algorithm == "restart") {
30 } else if (algorithm == "bisection") {
32 } else if (algorithm == "bisection-advanced") {
34 } else if (algorithm == "bisection-pt") {
36 } else if (algorithm == "bisection-advanced-pt") {
38 } else if (algorithm == "pi") {
40 }
41 STORM_LOG_THROW(false, storm::exceptions::UnexpectedException, "Unknown conditional algorithm: " << algorithm);
42}
43
44} // namespace storm
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:30
std::ostream & operator<<(std::ostream &stream, ConditionalAlgorithmSetting const &algorithm)
ConditionalAlgorithmSetting conditionalAlgorithmSettingFromString(std::string const &algorithm)