Browse Source

Extended Galileo parser to throw exception for inspections

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
7adab86f8e
  1. 4
      src/storm-dft/parser/DFTGalileoParser.cpp

4
src/storm-dft/parser/DFTGalileoParser.cpp

@ -145,6 +145,9 @@ namespace storm {
success = builder.addDepElement(name, childNames, probability); success = builder.addDepElement(name, childNames, probability);
} else if (type.find("=") != std::string::npos) { } else if (type.find("=") != std::string::npos) {
success = parseBasicElement(name, line, builder, valueParser); success = parseBasicElement(name, line, builder, valueParser);
} else if (type.find("insp") != std::string::npos) {
// Inspection as defined by DFTCalc
STORM_LOG_THROW(false, storm::exceptions::NotSupportedException, "Inspections (defined in line " << lineNo << ") are not supported.");
} else { } else {
STORM_LOG_THROW(false, storm::exceptions::NotSupportedException, "Type name: " << type << " in line " << lineNo << " not recognized."); STORM_LOG_THROW(false, storm::exceptions::NotSupportedException, "Type name: " << type << " in line " << lineNo << " not recognized.");
success = false; success = false;
@ -294,7 +297,6 @@ namespace storm {
break; break;
case Exponential: case Exponential:
return builder.addBasicElement(parseName(name), firstValDistribution, dormancyFactor, false); // TODO set transient BEs return builder.addBasicElement(parseName(name), firstValDistribution, dormancyFactor, false); // TODO set transient BEs
break;
case Erlang: case Erlang:
if (storm::utility::isOne<ValueType>(secondValDistribution)) { if (storm::utility::isOne<ValueType>(secondValDistribution)) {
// Erlang distribution reduces to exponential distribution // Erlang distribution reduces to exponential distribution

Loading…
Cancel
Save