Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
AnalysisEnvironment.cpp
Go to the documentation of this file.
2
5
6namespace storm::dft {
7
9 : useModularisation(false),
10 solveWithSMT(false),
11 chunksize(1),
12 mttfPrecision(1e-12),
13 mttfStepsize(1e-10),
14 mttfAlgorithm("proceeding"),
15 approximationHeuristic(storm::dft::builder::ApproximationHeuristic::DEPTH) {
16 // Intentionally left empty
17}
18
20
22 return useModularisation;
23}
24
26 useModularisation = value;
27}
28
30 return solveWithSMT;
31}
32
34 solveWithSMT = value;
35}
36
38 return chunksize;
39}
40
42 chunksize = value;
43}
44
46 return mttfPrecision;
47}
48
50 mttfPrecision = value;
51}
52
54 return mttfStepsize;
55}
56
58 mttfStepsize = value;
59}
60
61std::string const& AnalysisEnvironment::getMttfAlgorithm() const {
62 return mttfAlgorithm;
63}
64
65void AnalysisEnvironment::setMttfAlgorithm(std::string const& value) {
66 mttfAlgorithm = value;
67}
68
70 return approximationError.has_value();
71}
72
74 STORM_LOG_ASSERT(isApproximationErrorSet(), "Approximation error is not set.");
75 return approximationError.value();
76}
77
79 approximationError = value;
80}
81
83 approximationError = std::nullopt;
84}
85
89
93
94} // namespace storm::dft
void setMttfAlgorithm(std::string const &value)
void setApproximationHeuristic(storm::dft::builder::ApproximationHeuristic value)
std::string const & getMttfAlgorithm() const
storm::dft::builder::ApproximationHeuristic getApproximationHeuristic() const
#define STORM_LOG_ASSERT(cond, message)
Definition macros.h:9
ApproximationHeuristic
Enum representing the heuristic used for deciding which states to expand.