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

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

Added IMileagecounter to MockVehicle

parent 84891a00
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,13 @@ using TUGraz.VectoCore.Models.Connector.Ports;
using TUGraz.VectoCore.Models.Connector.Ports.Impl;
using TUGraz.VectoCore.Models.Simulation;
using TUGraz.VectoCore.Models.Simulation.Data;
using TUGraz.VectoCore.Models.Simulation.DataBus;
using TUGraz.VectoCore.Models.SimulationComponent;
using TUGraz.VectoCore.Utils;
namespace TUGraz.VectoCore.Tests.Utils
{
public class MockVehicle : VectoSimulationComponent, IVehicle, IFvInPort, IDriverDemandOutPort
public class MockVehicle : VectoSimulationComponent, IVehicle, IFvInPort, IDriverDemandOutPort, IMileageCounter
{
internal MeterPerSecond MyVehicleSpeed;
internal IFvOutPort NextComponent;
......@@ -78,5 +79,10 @@ namespace TUGraz.VectoCore.Tests.Utils
public MeterPerSquareSecond acceleration;
public Radian gradient;
}
public Meter Distance()
{
return 0.SI<Meter>();
}
}
}
\ 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