Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
BESamples.cpp
Go to the documentation of this file.
1
#include "
BESamples.h
"
2
3
#include "
storm/exceptions/InvalidArgumentException.h
"
4
5
namespace
storm::dft
{
6
namespace
storage {
7
namespace
elements {
8
9
template
<
typename
ValueType>
10
ValueType
BESamples<ValueType>::getUnreliability
(ValueType time)
const
{
11
auto
iter = mActiveSamples.find(time);
12
STORM_LOG_THROW
(iter != mActiveSamples.end(), storm::exceptions::InvalidArgumentException,
"No sample for time point "
<< time <<
" given."
);
13
return
iter->second;
14
}
15
16
// Explicitly instantiate the class.
17
template
class
BESamples<double>
;
18
template
class
BESamples<RationalFunction>
;
19
20
}
// namespace elements
21
}
// namespace storage
22
}
// namespace storm::dft
BESamples.h
InvalidArgumentException.h
storm::dft::storage::elements::BESamples
BE where the failure distribution is defined by samples.
Definition
BESamples.h:16
storm::dft::storage::elements::BESamples::getUnreliability
ValueType getUnreliability(ValueType time) const override
Return the unreliability of the BE up to the given time point.
Definition
BESamples.cpp:10
STORM_LOG_THROW
#define STORM_LOG_THROW(cond, exception, message)
Definition
macros.h:30
storm::dft
Definition
SFTBDDPropertyFormulaAdapter.h:19
src
storm-dft
storage
elements
BESamples.cpp
Generated by
1.9.8