//REMOVE THIS REDUNDANT CODE public void insert_vehicle(string input) { vehicle car = new vehicle(input); data.Add(car); sort_data(); update(); }
public void findNNeighbors(vehicle passedVehicle, int indexOfVehicle) { passedVehicle.addKid(min_kid); for (int i = 1; i < passedVehicle.getCapacity(); i++) { kid k = findminDist(); passedVehicle.addKid(k); kids.Remove(k); } kids.Remove(min_kid); vehicles.ElementAt(indexOfVehicle).addKids(passedVehicle.getKids()); }