Commit be01f4c4 authored by Jakob Schöttl's avatar Jakob Schöttl

Refactor

parent a64169da
......@@ -146,21 +146,25 @@ public class VadereProject implements ScenarioFinishedListener {
}
private ScenarioRun prepareNextScenario() {
Scenario nextScenario = scenariosLeft.remove().clone();
final Scenario nextScenario = scenariosLeft.remove().clone();
nextScenario.setScenarioFinishedListener(this);
for (SingleScenarioFinishedListener listener : singleScenarioFinishedListener) {
listener.preScenarioRun(nextScenario, scenariosLeft.size() + 1);
}
notifySingleScenarioFinishListener(nextScenario);
if (!this.visualization.isEmpty()) {
nextScenario.addPassiveCallback(this.visualization.get(0));
if (!visualization.isEmpty()) {
nextScenario.addPassiveCallback(visualization.get(0));
}
final ScenarioRun scenarioRun = new ScenarioRun(nextScenario);
scenarioRun.setOutputPaths(outputDirectory);
return scenarioRun;
}
private void notifySingleScenarioFinishListener(final Scenario scenario) {
for (SingleScenarioFinishedListener listener : singleScenarioFinishedListener) {
listener.preScenarioRun(scenario, scenariosLeft.size() + 1);
}
}
public void runAllScenarios() {
runScenarios(getScenarios());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment