13template<
typename ValueType>
27 std::shared_ptr<DFTElement<ValueType>>
clone()
const override {
41 for (
auto const& child : this->
children()) {
47 this->
fail(state, queues);
bool hasFailed(size_t id) const
bool isOperational(size_t id) const
void checkFailsafe(storm::dft::storage::DFTState< ValueType > &state, storm::dft::storage::DFTStateSpaceGenerationQueues< ValueType > &queues) const override
Check failsafe status.
DFTAnd(size_t id, std::string const &name, std::vector< std::shared_ptr< DFTElement< ValueType > > > const &children={})
Constructor.
std::shared_ptr< DFTElement< ValueType > > clone() const override
Create a shallow copy of the element.
void checkFails(storm::dft::storage::DFTState< ValueType > &state, storm::dft::storage::DFTStateSpaceGenerationQueues< ValueType > &queues) const override
Check failed status.
storm::dft::storage::elements::DFTElementType type() const override
Get type.
bool isStaticElement() const override
Check whether the element is static, ie a BE or a static gate (AND, OR, VOT).
bool hasFailsafeChild(storm::dft::storage::DFTState< ValueType > &state) const
Check whether it has a failsafe child.
DFTElementVector const & children() const
Get children.
Abstract base class for DFT elements.
virtual size_t id() const
Get id.
virtual std::string const & name() const
Get name.
Abstract base class for gates.
void failsafe(storm::dft::storage::DFTState< ValueType > &state, storm::dft::storage::DFTStateSpaceGenerationQueues< ValueType > &queues) const override
void childrenDontCare(storm::dft::storage::DFTStateSpaceGenerationQueues< ValueType > &queues) const
Propagate Don't Care to children.
void fail(storm::dft::storage::DFTState< ValueType > &state, storm::dft::storage::DFTStateSpaceGenerationQueues< ValueType > &queues) const override
#define STORM_LOG_ASSERT(cond, message)
DFTElementType
Element types in a DFT.