Browse Source

Scheduler extraction is only supported for quantitative checks

tempestpy_adaptions
Matthias Volk 5 years ago
parent
commit
ddff929cbd
  1. 4
      src/storm-cli-utilities/model-handling.h

4
src/storm-cli-utilities/model-handling.h

@ -824,6 +824,7 @@ namespace storm {
}, },
[&sparseModel,&ioSettings] (std::unique_ptr<storm::modelchecker::CheckResult> const& result) { [&sparseModel,&ioSettings] (std::unique_ptr<storm::modelchecker::CheckResult> const& result) {
if (ioSettings.isExportSchedulerSet()) { if (ioSettings.isExportSchedulerSet()) {
if (result->isExplicitQuantitativeCheckResult()) {
if (result->template asExplicitQuantitativeCheckResult<ValueType>().hasScheduler()) { if (result->template asExplicitQuantitativeCheckResult<ValueType>().hasScheduler()) {
auto const& scheduler = result->template asExplicitQuantitativeCheckResult<ValueType>().getScheduler(); auto const& scheduler = result->template asExplicitQuantitativeCheckResult<ValueType>().getScheduler();
STORM_PRINT_AND_LOG("Exporting scheduler ... ") STORM_PRINT_AND_LOG("Exporting scheduler ... ")
@ -831,6 +832,9 @@ namespace storm {
} else { } else {
STORM_LOG_ERROR("Scheduler requested but could not be generated."); STORM_LOG_ERROR("Scheduler requested but could not be generated.");
} }
} else {
STORM_LOG_THROW(false, storm::exceptions::NotSupportedException, "Scheduler export not supported for this property.");
}
} }
}); });
} }

Loading…
Cancel
Save