Browse Source

Use representant for usage flag in DFTBuilder

Former-commit-id: 9084ce2f2f
tempestpy_adaptions
Mavo 9 years ago
parent
commit
0a21431c07
  1. 3
      src/builder/ExplicitDFTModelBuilder.cpp

3
src/builder/ExplicitDFTModelBuilder.cpp

@ -146,7 +146,8 @@ namespace storm {
// Set failure rate according to usage
bool isUsed = true;
if (mDft.hasRepresentant(nextBE->id())) {
isUsed = newState.isUsed(nextBE->id());
DFTElementPointer representant = mDft.getRepresentant(nextBE->id());
isUsed = newState.isUsed(representant->id());
}
STORM_LOG_TRACE("BE " << nextBE->name() << " is " << (isUsed ? "used" : "not used"));
ValueType rate = isUsed ? nextBE->activeFailureRate() : nextBE->passiveFailureRate();

Loading…
Cancel
Save