Browse Source

minor

Former-commit-id: 1a746c86f2
tempestpy_adaptions
sjunges 9 years ago
parent
commit
c25889bc3e
  1. 10
      src/storage/dft/DFT.cpp
  2. 1
      src/storage/dft/DFT.h
  3. 2
      src/storage/dft/DFTElements.h

10
src/storage/dft/DFT.cpp

@ -172,11 +172,21 @@ namespace storm {
return ISD;
}
template<typename ValueType>
std::vector<size_t> DFT<ValueType>::immediateFailureCauses(size_t index) const {
if(isGate(index)) {
} else {
return {index};
}
}
template<typename ValueType>
DFTColouring<ValueType> DFT<ValueType>::colourDFT() const {
return DFTColouring<ValueType>(*this);
}
template<typename ValueType>
DFTIndependentSymmetries DFT<ValueType>::findSymmetries(DFTColouring<ValueType> const& colouring) const {
std::vector<size_t> vec;

1
src/storage/dft/DFT.h

@ -232,6 +232,7 @@ namespace storm {
DFTIndependentSymmetries findSymmetries(DFTColouring<ValueType> const& colouring) const;
std::vector<size_t> immediateFailureCauses(size_t index) const;
private:
std::pair<std::vector<size_t>, std::vector<size_t>> getSortedParentAndOutDepIds(size_t index) const;

2
src/storage/dft/DFTElements.h

@ -173,6 +173,8 @@ namespace storm {
}
virtual void extendSpareModule(std::set<size_t>& elementsInModule) const;
// virtual void extendImmediateFailureCausePathEvents(std::set<size_t>& ) const;
virtual size_t nrChildren() const = 0;
Loading…
Cancel
Save