public RoutePlannerService(ICarPlanner carPlanner, IRoutePlanner routePlanner, IAddressesRepository addressesRepo, IGoogleMapsEmbedUrlProvider urlProvider, IObjectMapper<RouteInternal, Route> mapper) { _routePlanner = routePlanner; _addressesRepo = addressesRepo; _urlProvider = urlProvider; _carPlanner = carPlanner; _mapper = mapper; }
public VehicleSimulationContext(IRoutePlanner routePlanner, Guid vehicleId, string name, IBus bus) { _routePlanner = routePlanner; _bus = bus; Random = new Random(); VehicleId = vehicleId; Name = name; _bus = bus; Location = routePlanner.RandomLocation(); }
private static void PrepareForPlanning(IRoutePlanner p) { //We are not sure that we will use the planner bool condition = false; if (condition) { PlanningData data = new PlanningData();//load planning data p.CalculatePlan(data); } }
public SimulateVehicleDataService(IBusControl bus, IRoutePlanner routePlanner) { if (bus == null) throw new ArgumentNullException(nameof(bus)); if (routePlanner == null) throw new ArgumentNullException(nameof(routePlanner)); _bus = bus; _routePlanner = routePlanner; _vehicleSimulations = CreateSimulators(6); _timer = new Timer(100) { AutoReset = true }; _timer.Elapsed += UpdateSimulators; }
public SimulateVehicleDataService(IBusControl bus, IRoutePlanner routePlanner) { if (bus == null) { throw new ArgumentNullException(nameof(bus)); } if (routePlanner == null) { throw new ArgumentNullException(nameof(routePlanner)); } _bus = bus; _routePlanner = routePlanner; _vehicleSimulations = CreateSimulators(6); _timer = new Timer(100) { AutoReset = true }; _timer.Elapsed += UpdateSimulators; }
public AlarmService(IRoutePlanner routePlanner) { _routePlanner = routePlanner; }
public VehicleSimulation(IBus bus, Guid vehicleId, string name, IRoutePlanner routePlanner) { _context = new VehicleSimulationContext(routePlanner, vehicleId, name, bus); StartInStillStand(); }