From 089ca53bedb14d4c05e63c34287c82b519fa6084 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Mon, 9 May 2016 12:24:11 +0200 Subject: [PATCH] removed not implemented objects for ATShiftStrategy and CustomShiftStrategy (implement only when needed) --- .../Simulation/Impl/PowertrainBuilder.cs | 6 -- .../SimulationComponent/Impl/ShiftStrategy.cs | 58 ------------------- 2 files changed, 64 deletions(-) diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs b/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs index b257ec7263..1a84dd10c4 100644 --- a/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs +++ b/VectoCore/VectoCore/Models/Simulation/Impl/PowertrainBuilder.cs @@ -345,12 +345,6 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl case GearboxType.MT: strategy = new MTShiftStrategy(data, container); break; - case GearboxType.AT: - strategy = new ATShiftStrategy(data, container); - break; - case GearboxType.Custom: - strategy = new CustomShiftStrategy(data, container); - break; default: throw new VectoSimulationException("Unknown Gearbox Type: {0}", data.Type); } diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ShiftStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ShiftStrategy.cs index 38b620258c..4307d9ecb0 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ShiftStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ShiftStrategy.cs @@ -122,8 +122,6 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public AMTShiftStrategy(GearboxData data, IDataBus dataBus) : base(data, dataBus) { PreviousGear = 1; - - // todo: move to settings Data.EarlyShiftUp = true; Data.SkipGears = true; } @@ -326,60 +324,4 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl Data.SkipGears = true; } } - - // TODO Implement ATShiftStrategy - public class ATShiftStrategy : ShiftStrategy - { - public ATShiftStrategy(GearboxData data, IDataBus bus) : base(data, bus) {} - - public override uint Engage(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outEngineSpeed) - { - throw new NotImplementedException(); - } - - public override void Disengage(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outEngineSpeed) - { - throw new NotImplementedException(); - } - - public override bool ShiftRequired(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outAngularVelocity, - NewtonMeter inTorque, - PerSecond inAngularSpeed, uint gear, Second lastShiftTime) - { - throw new NotImplementedException(); - } - - public override uint InitGear(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outEngineSpeed) - { - throw new NotImplementedException(); - } - } - - // TODO Implement CustomShiftStrategy - public class CustomShiftStrategy : ShiftStrategy - { - public CustomShiftStrategy(GearboxData data, IDataBus dataBus) : base(data, dataBus) {} - - public override bool ShiftRequired(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outAngularVelocity, - NewtonMeter inTorque, - PerSecond inAngularSpeed, uint gear, Second lastShiftTime) - { - throw new NotImplementedException(); - } - - public override uint InitGear(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outEngineSpeed) - { - throw new NotImplementedException(); - } - - public override uint Engage(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outEngineSpeed) - { - throw new NotImplementedException(); - } - - public override void Disengage(Second absTime, Second dt, NewtonMeter outTorque, PerSecond outEngineSpeed) - { - throw new NotImplementedException(); - } - } } \ No newline at end of file -- GitLab