Browse Source

Do not sort BEs anymore

Former-commit-id: 1789ad3644
tempestpy_adaptions
Mavo 8 years ago
parent
commit
ef7d4ac87b
  1. 12
      src/storage/dft/DFTState.cpp
  2. 5
      src/storage/dft/DFTState.h

12
src/storage/dft/DFTState.cpp

@ -32,8 +32,6 @@ namespace storm {
STORM_LOG_ASSERT(it != mCurrentlyNotFailableBE.end(), "Id not found.");
mCurrentlyNotFailableBE.erase(it);
}
sortFailableBEs();
}
template<typename ValueType>
@ -69,7 +67,6 @@ namespace storm {
STORM_LOG_TRACE("Spare " << index << " uses " << useId);
}
}
sortFailableBEs();
// Initialize failable dependencies
for (size_t dependencyId : mDft.getDependencies()) {
@ -324,7 +321,6 @@ namespace storm {
propagateActivation(uses(elem));
}
}
sortFailableBEs();
}
template<typename ValueType>
@ -423,14 +419,6 @@ namespace storm {
return changed;
}
template<typename ValueType>
void DFTState<ValueType>::sortFailableBEs() {
std::sort(mCurrentlyFailableBE.begin( ), mCurrentlyFailableBE.end( ), [&](size_t const& lhs, size_t const& rhs) {
// Sort decreasing
return getBERate(rhs, true) < getBERate(lhs, true);
});
}
// Explicitly instantiate the class.
template class DFTState<double>;

5
src/storage/dft/DFTState.h

@ -313,11 +313,6 @@ namespace storm {
*/
ValueType getBERate(size_t id, bool considerPassive) const;
/*!
* Sort failable BEs in decreasing order of their active failure rate.
*/
void sortFailableBEs();
};
}

Loading…
Cancel
Save