예제 #1
0
        //REMOVE THIS REDUNDANT CODE
        public void insert_vehicle(string input)
        {
            vehicle car = new vehicle(input);

            data.Add(car);
            sort_data();
            update();
        }
예제 #2
0
        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());
        }