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

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

Added inputdataprovider to VectoRunData in DeclarationModeHeavyLorryVectoRunDataFactory

parent 36e235a3
No related branches found
No related tags found
No related merge requests found
......@@ -172,13 +172,16 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
IVehicleDeclarationInputData vehicle, int modeIdx, Mission mission, KeyValuePair<LoadingType, Tuple<Kilogram, double?>> loading)
{
if (InputDataProvider.JobInputData.Vehicle.ExemptedVehicle) {
return new VectoRunData {
var runData = new VectoRunData {
InputData = InputDataProvider,
Exempted = true,
Report = Report,
Mission = new Mission() { MissionType = MissionType.ExemptedMission },
VehicleData = DataAdapter.CreateVehicleData(InputDataProvider.JobInputData.Vehicle, new Segment(), null, new KeyValuePair<LoadingType, Tuple<Kilogram, double?>>(LoadingType.ReferenceLoad, Tuple.Create<Kilogram, double?>(0.SI<Kilogram>(), null)), _allowVocational),
InputDataHash = InputDataProvider.XMLHash
};
runData.VehicleData.InputData = vehicle;
return runData;
}
var engine = InputDataProvider.JobInputData.Vehicle.Components.EngineInputData;
......@@ -220,6 +223,7 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl
};
simulationRunData.EngineData.FuelMode = modeIdx;
simulationRunData.VehicleData.VehicleClass = _segment.VehicleClass;
simulationRunData.VehicleData.InputData = vehicle;
return simulationRunData;
}
......
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