Browse Source

Fixed export of sync input for no-action

Former-commit-id: 7124276a86 [formerly 1e63ff5245]
Former-commit-id: 05f1f33c49
tempestpy_adaptions
sjunges 8 years ago
parent
commit
e0fd50cb9d
  1. 9
      src/storage/jani/JSONExporter.cpp

9
src/storage/jani/JSONExporter.cpp

@ -71,7 +71,14 @@ namespace storm {
std::vector<modernjson::json> synElems;
for (auto const& syncs : composition.getSynchronizationVectors()) {
modernjson::json syncDecl;
syncDecl["synchronise"] = syncs.getInput();
syncDecl["synchronise"] = std::vector<std::string>();
for (auto const& syncIn : syncs.getInput()) {
if (syncIn == SynchronizationVector::NO_ACTION_INPUT) {
syncDecl["synchronise"].push_back(nullptr);
} else {
syncDecl["synchronise"].push_back(syncIn);
}
}
syncDecl["result"] = syncs.getOutput();
synElems.push_back(syncDecl);
}

Loading…
Cancel
Save