12template<
typename ValueType>
26 std::shared_ptr<DFTElement<ValueType>>
clone()
const override {
44 ValueType
const&
shape()
const {
52 ValueType
const&
rate()
const {
59 std::stringstream stream;
60 stream <<
"weibull " << this->
rate() <<
", " << this->
shape();
BE with Weibull failure distribution.
ValueType const & rate() const
Return failure rate (also called scale parameter).
ValueType getUnreliability(ValueType time) const override
Return the unreliability of the BE up to the given time point.
bool canFail() const override
Return whether the BE can fail.
std::shared_ptr< DFTElement< ValueType > > clone() const override
Create a shallow copy of the element.
ValueType const & shape() const
Return shape parameter.
std::string distributionString() const override
Print information about failure distribution to string.
storm::dft::storage::elements::BEType beType() const override
Get type of BE (constant, exponential, etc.).
BEWeibull(size_t id, std::string const &name, ValueType shape, ValueType rate)
Constructor.
Abstract base class for basic events (BEs) in DFTs.
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)