Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit b06f0149 authored by Harald Martini's avatar Harald Martini
Browse files

removed unused code from SimulatorFactoryDeclaration

parent 90c5a1fd
Branches
Tags
No related merge requests found
...@@ -163,48 +163,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl.SimulatorFactory ...@@ -163,48 +163,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl.SimulatorFactory
} }
case IMultistagePrimaryAndStageInputDataProvider multiStagePrimaryAndStageInputData: { case IMultistagePrimaryAndStageInputDataProvider multiStagePrimaryAndStageInputData: {
throw new VectoException("Why are we here ? "); throw new VectoException("Simulation should be split up in separate steps");
//Create Temporary Writer to hold the files only in Memory
#pragma warning disable 162
var tempOutputWriter = new TempFileOutputWriter(ReportWriter, ReportType.DeclarationReportManufacturerXML);
var originalReportWriter = ReportWriter;
ReportWriter = tempOutputWriter;
var tempPrimaryReport = new XMLDeclarationReportPrimaryVehicle(tempOutputWriter);
RunDataFactory = CreateRunDataReader(multiStagePrimaryAndStageInputData.PrimaryVehicle, tempPrimaryReport);
CreateFollowUpSimulatorFactory = true;
Func<ISimulatorFactory> _followingSimulatorFactoryCreator = () =>
{
try
{
var primaryInputData = _xmlInputDataReader.CreateDeclaration(tempOutputWriter
.GetDocument(ReportType.DeclarationReportPrimaryVehicleXML).CreateReader());
var vifInputData = new XMLDeclarationVIFInputData(
primaryInputData as IMultistepBusInputDataProvider,
multiStagePrimaryAndStageInputData.StageInputData);
var manStagesCount =
vifInputData.MultistageJobInputData.JobInputData.ManufacturingStages?.Count ?? -1;
originalReportWriter.NumberOfManufacturingStages = manStagesCount;
return _simFactoryFactory.Factory(_mode, vifInputData, originalReportWriter, null,
vtpReport, Validate);
}
catch (Exception ex)
{
Log.Error($"Failed to create additional Simulation run: {ex.Message}");
return null;
}
};
return;
#pragma warning restore 162
} }
default: default:
throw new VectoException("Unknown InputData for Declaration Mode!"); throw new VectoException("Unknown InputData for Declaration Mode!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment