16template<
typename ValueType>
31 std::shared_ptr<DFTElement<ValueType>>
clone()
const override {
40 return this->
isInclusive() ?
"POR (incl)" :
"POR (excl)";
54 auto childIter = this->
children().begin();
55 if (state.
hasFailed((*childIter)->id())) {
57 this->
fail(state, queues);
61 for (; childIter != this->
children().end(); ++childIter) {
62 if (state.
hasFailed((*childIter)->id())) {
74 if (state.
isFailsafe(this->children().front()->id())) {
bool hasFailed(size_t id) const
bool isOperational(size_t id) const
bool isFailsafe(size_t id) const
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
std::string typestring() const override
Get type as string.
storm::dft::storage::elements::DFTElementType type() const override
Get type.
void checkFailsafe(storm::dft::storage::DFTState< ValueType > &state, storm::dft::storage::DFTStateSpaceGenerationQueues< ValueType > &queues) const override
Check failsafe status.
bool isInclusive() const
Return whether the PAND is inclusive.
std::shared_ptr< DFTElement< ValueType > > clone() const override
Create a shallow copy of the element.
DFTPor(size_t id, std::string const &name, bool inclusive, std::vector< std::shared_ptr< DFTElement< ValueType > > > const &children={})
Constructor.
void checkFails(storm::dft::storage::DFTState< ValueType > &state, storm::dft::storage::DFTStateSpaceGenerationQueues< ValueType > &queues) const override
Check failed status.
#define STORM_LOG_ASSERT(cond, message)
DFTElementType
Element types in a DFT.