Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 01ac0658 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

VectoRun: in case no followUp run creator is provided, use noFollowUp creator as default

parent 4cf54c63
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
public virtual double Progress => CyclePort.Progress * (PostProcessingDone ? 1.0 : 0.99) * (WritingResultsDone ? 1.0 : 0.99);
protected VectoRun(IVehicleContainer container)
protected VectoRun(IVehicleContainer container, IFollowUpRunCreator followUpCreator = null)
{
Container = container;
RunIdentifier = Interlocked.Increment(ref _runIdCounter);
......@@ -79,11 +79,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
CyclePort = container.GetCycleOutPort();
PostProcessingDone = false;
WritingResultsDone = false;
}
protected VectoRun(IVehicleContainer container, IFollowUpRunCreator followUpCreator) : this(container)
{
_followUpCreator = followUpCreator;
_followUpCreator = followUpCreator ?? new NoFollowUpRunCreator();
}
public IVehicleContainer GetContainer() => Container;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment