Browse Source

Helpful comment

Former-commit-id: 96bef1efb4
tempestpy_adaptions
Mavo 9 years ago
parent
commit
8211b8091d
  1. 4
      src/storage/dft/DFTState.cpp
  2. 5
      src/storage/dft/DFTState.h

4
src/storage/dft/DFTState.cpp

@ -83,7 +83,9 @@ namespace storm {
{ {
assert(index < mIsCurrentlyFailableBE.size()); assert(index < mIsCurrentlyFailableBE.size());
STORM_LOG_TRACE("currently failable: " << getCurrentlyFailableString()); STORM_LOG_TRACE("currently failable: " << getCurrentlyFailableString());
std::pair<std::shared_ptr<DFTBE<ValueType>>,bool> res(mDft.getBasicElement(mIsCurrentlyFailableBE[index]), false);
// TODO set when implementing functional dependencies
bool dueToFdep = false;
std::pair<std::shared_ptr<DFTBE<ValueType>>,bool> res(mDft.getBasicElement(mIsCurrentlyFailableBE[index]), dueToFdep);
mIsCurrentlyFailableBE.erase(mIsCurrentlyFailableBE.begin() + index); mIsCurrentlyFailableBE.erase(mIsCurrentlyFailableBE.begin() + index);
setFailed(res.first->id()); setFailed(res.first->id());
return res; return res;

5
src/storage/dft/DFTState.h

@ -107,6 +107,11 @@ namespace storm {
return mIsCurrentlyFailableBE.size(); return mIsCurrentlyFailableBE.size();
} }
/**
* Sets the next BE as failed
* @param smallestIndex Index in currentlyFailableBE of BE to fail
* @return Pair of BE which fails and flag indicating if the failure was due to functional dependencies
*/
std::pair<std::shared_ptr<DFTBE<ValueType>>, bool> letNextBEFail(size_t smallestIndex = 0); std::pair<std::shared_ptr<DFTBE<ValueType>>, bool> letNextBEFail(size_t smallestIndex = 0);
std::string getCurrentlyFailableString() { std::string getCurrentlyFailableString() {

Loading…
Cancel
Save