15template<
typename ValueType>
29 std::shared_ptr<DFTElement<ValueType>>
clone()
const override {
42 return mActiveSamples;
49 for (
auto const& sample : mActiveSamples) {
58 std::stringstream stream;
64 std::map<ValueType, ValueType> mActiveSamples;
bool canFail() const override
Return whether the BE can fail.
ValueType getUnreliability(ValueType time) const override
Return the unreliability of the BE up to the given time point.
storm::dft::storage::elements::BEType beType() const override
Get type of BE (constant, exponential, etc.).
std::map< ValueType, ValueType > const & activeSamples() const
Return samples defining unreliability in active state.
std::string distributionString() const override
Print information about failure distribution to string.
std::shared_ptr< DFTElement< ValueType > > clone() const override
Create a shallow copy of the element.
BESamples(size_t id, std::string const &name, std::map< ValueType, ValueType > activeSamples)
Constructor.
DFTBE(size_t id, std::string const &name)
Constructor.
virtual size_t id() const
Get id.
virtual std::string const & name() const
Get name.
#define STORM_LOG_ASSERT(cond, message)
bool isZero(ValueType const &a)