diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs index 794bcf3a579c43dd353e349d2f907ef72f6be91f..4b7a0cc978f45f687acb4b1391370065a3f7b2b8 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ATGearbox.cs @@ -582,7 +582,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public WattSecond PowershiftLossEnergy; public NewtonMeter PowershiftLoss; - public ATGearboxState Clone() => (ATGearboxState)MemberwiseClone(); + public new ATGearboxState Clone() => (ATGearboxState)MemberwiseClone(); } diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs index 83b97ab25e555fd6966636b7606ce6a50baa83d7..d7d03ce19f404ce777e9906e1355ff79f49043d9 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Clutch.cs @@ -256,7 +256,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl #region Implementation of IUpdateable - public bool UpdateFrom(object other) { + public virtual bool UpdateFrom(object other) { if (other is Clutch c) { PreviousState = c.PreviousState.Clone(); return true; diff --git a/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs b/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs index dd5b241a7971d79b5af9feb77010802ba9e53014..3cd054bcf8f9e1c86fea271a987f5f89928b9d9b 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/SwitchableClutch.cs @@ -9,7 +9,7 @@ using TUGraz.VectoCore.Models.SimulationComponent.Impl; namespace TUGraz.VectoCore.Models.SimulationComponent { - public class SwitchableClutch : Clutch, IUpdateable + public class SwitchableClutch : Clutch { public SwitchableClutch(IVehicleContainer container, CombustionEngineData engineData) : base(container, engineData) { } @@ -145,7 +145,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent #region Implementation of IUpdateable - public bool UpdateFrom(object other) { + public override bool UpdateFrom(object other) { if (other is SwitchableClutch c) { PreviousState = c.PreviousState.Clone(); ClutchOpen = c.ClutchOpen;