Storm
1.11.1.1
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/adapters/RationalFunctionAdapter.h
"
4
#include "
storm/exceptions/InvalidArgumentException.h
"
5
6
namespace
storm::dft
{
7
namespace
storage {
8
namespace
elements {
9
10
template
<
typename
ValueType>
11
ValueType
BESamples<ValueType>::getUnreliability
(ValueType time)
const
{
12
auto
iter = mActiveSamples.find(time);
13
STORM_LOG_THROW
(iter != mActiveSamples.end(), storm::exceptions::InvalidArgumentException,
"No sample for time point "
<< time <<
" given."
);
14
return
iter->second;
15
}
16
17
// Explicitly instantiate the class.
18
template
class
BESamples<double>
;
19
template
class
BESamples<RationalFunction>
;
20
21
}
// namespace elements
22
}
// namespace storage
23
}
// namespace storm::dft
BESamples.h
InvalidArgumentException.h
RationalFunctionAdapter.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:11
STORM_LOG_THROW
#define STORM_LOG_THROW(cond, exception, message)
Definition
macros.h:30
storm::dft
Definition
SFTBDDPropertyFormulaAdapter.h:17
src
storm-dft
storage
elements
BESamples.cpp
Generated by
1.9.8