Browse Source

Fixed JSON parser

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
5c13fe624f
  1. 2
      src/storm-dft/parser/DFTJsonParser.cpp

2
src/storm-dft/parser/DFTJsonParser.cpp

@ -89,7 +89,7 @@ namespace storm {
} else if (type== "fdep") { } else if (type== "fdep") {
success = builder.addDepElement(name, childNames, storm::utility::one<ValueType>()); success = builder.addDepElement(name, childNames, storm::utility::one<ValueType>());
} else if (type== "pdep") { } else if (type== "pdep") {
ValueType probability = parseRationalExpression(parseJsonNumber(data.at("prob")));
ValueType probability = parseRationalExpression(parseJsonNumber(data.at("probability")));
success = builder.addDepElement(name, childNames, probability); success = builder.addDepElement(name, childNames, probability);
} else if (type == "be") { } else if (type == "be") {
ValueType failureRate = parseRationalExpression(parseJsonNumber(data.at("rate"))); ValueType failureRate = parseRationalExpression(parseJsonNumber(data.at("rate")));

Loading…
Cancel
Save