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

Skip to content
Snippets Groups Projects
Commit ad0f229a authored by Michael KRISPER's avatar Michael KRISPER
Browse files

PowertrainBuilder.GetGearbox: Simplified overrides into one method.

parent e7f6bf92
No related branches found
No related tags found
No related merge requests found
......@@ -1214,14 +1214,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
modData.AddAuxiliary(auxId);
}
private static IGearbox GetGearbox(IVehicleContainer container)
{
var strategy = GetShiftStrategy(container);
return GetGearbox(container, strategy);
}
private static IGearbox GetGearbox(IVehicleContainer container, IShiftStrategy strategy)
private static IGearbox GetGearbox(IVehicleContainer container, IShiftStrategy strategy = null)
{
strategy = strategy ?? GetShiftStrategy(container);
switch (container.RunData.GearboxData.Type) {
case GearboxType.AMT:
case GearboxType.MT:
......
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