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

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

removed not implemented objects for ATShiftStrategy and CustomShiftStrategy...

removed not implemented objects for ATShiftStrategy and CustomShiftStrategy (implement only when needed)
parent 35c4a125
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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
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