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

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

IUpdateable and minor changes to avoid compilation warnings

parent 06918598
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
......@@ -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;
......
......@@ -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;
......
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