public void AddNewVehicle(string registrationNumber) { IVehicle.VehicleTypes type = GarageHandler.GetVehicleType(); string modelVehicle = GarageHandler.GetModelName(); Color.ColorCars color = GarageHandler.GetColor(); Vehicles newVehicle; newVehicle = iVehicle.CreateVehicle(registrationNumber, modelVehicle, type, color); GarageHandler.SetColor(newVehicle); AddNewVehicleGarage(newVehicle); }
/// <summary> /// Standardkonstruktor /// </summary> /// <param name="vehicleType">Fahrzeugtyp</param> /// <param name="startNodes">Liste von Startknoten</param> /// <param name="endNodes">Liste von Zielknoten</param> /// <param name="trafficDensity">Häufigkeit in Ticks</param> public Auftrag(IVehicle.VehicleTypes vehicleType, List <LineNode> startNodes, List <LineNode> endNodes, int trafficDensity) { this.m_vehicleType = vehicleType; foreach (LineNode ln in startNodes) { this.startNodes.Add(ln); } foreach (LineNode ln in endNodes) { this.endNodes.Add(ln); } this.trafficDensity = trafficDensity; }
/// <summary> /// Standardkonstruktor /// </summary> /// <param name="vehicleType">Fahrzeugtyp</param> /// <param name="startNodes">Liste von Startknoten</param> /// <param name="endNodes">Liste von Zielknoten</param> /// <param name="trafficDensity">Häufigkeit in Ticks</param> public Auftrag(IVehicle.VehicleTypes vehicleType, List<LineNode> startNodes, List<LineNode> endNodes, int trafficDensity) { this.m_vehicleType = vehicleType; foreach (LineNode ln in startNodes) this.startNodes.Add(ln); foreach (LineNode ln in endNodes) this.endNodes.Add(ln); this.trafficDensity = trafficDensity; }