13template<
typename ValueType>
26 std::shared_ptr<DFTElement<ValueType>>
clone()
const override {
49 std::stringstream stream;
50 stream <<
"const " << (this->
failed() ?
"failed" :
"failsafe");
BE which is either constant failed or constant failsafe.
ValueType getUnreliability(ValueType time) const override
Return the unreliability of the BE up to the given time point.
std::shared_ptr< DFTElement< ValueType > > clone() const override
Create a shallow copy of the element.
BEConst(size_t id, std::string const &name, bool failed)
Constructor.
bool failed() const
Return whether the BE has failed.
bool canFail() const override
Return whether the BE can fail.
storm::dft::storage::elements::BEType beType() const override
Get type of BE (constant, exponential, etc.).
std::string distributionString() const override
Print information about failure distribution to string.
Abstract base class for basic events (BEs) in DFTs.
virtual size_t id() const
Get id.
virtual std::string const & name() const
Get name.