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 d0e9faeb authored by Harald Martini's avatar Harald Martini
Browse files

added InputData to VectoRunData in DeclarationModeMockupTruckVectoRunDataFactory

parent dece2836
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,10 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.MockupRunDataFactories
protected override VectoRunData CreateVectoRunData(IVehicleDeclarationInputData vehicle, int modeIdx, Mission mission,
KeyValuePair<LoadingType, Tuple<Kilogram, double?>> loading)
{
VectoRunData runData;
if (InputDataProvider.JobInputData.Vehicle.ExemptedVehicle)
{
return new VectoRunData
runData = new VectoRunData
{
Exempted = true,
Report = Report,
......@@ -50,12 +51,10 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.MockupRunDataFactories
VehicleData = CreateMockupVehicleData(vehicle),
InputDataHash = InputDataProvider.XMLHash
};
}
} else {
var cycle = DeclarationData.CyclesCache.GetOrAdd(mission.MissionType, _ => DrivingCycleDataReader.ReadFromStream(mission.CycleFile, CycleType.DistanceBased, "", false));
return new VectoRunData() {
runData = new VectoRunData()
{
Loading = loading.Key,
Cycle = new DrivingCycleProxy(cycle, mission.MissionType.ToString()),
ExecutionMode = ExecutionMode.Declaration,
......@@ -68,6 +67,14 @@ namespace TUGraz.VectoCore.InputData.Reader.Impl.MockupRunDataFactories
};
}
runData.InputData = InputDataProvider;
return runData;
}
protected override void Initialize()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment