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 77554dc9 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

JSONInputData: moved setting of Retarder closer to vehicle

parent fe8cb025
Branches
Tags
No related merge requests found
...@@ -145,15 +145,12 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON ...@@ -145,15 +145,12 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
Path.Combine(BasePath, vehicleFile)); Path.Combine(BasePath, vehicleFile));
AngularGear = VehicleData as IAngularGearInputData; AngularGear = VehicleData as IAngularGearInputData;
Retarder = VehicleData as IRetarderInputData;
} }
} catch (Exception e) { } catch (Exception e) {
throw new VectoException("JobFile: Failed to read Vehicle file '{0}': {1}", e, Body[JsonKeys.Vehicle_VehicleFile], throw new VectoException("JobFile: Failed to read Vehicle file '{0}': {1}", e, Body[JsonKeys.Vehicle_VehicleFile],
e.Message); e.Message);
} }
var retarder = VehicleData as IRetarderInputData;
if (retarder != null) {
Retarder = retarder;
}
} }
#region IInputDataProvider #region IInputDataProvider
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment