public void AssignStops(List <Stop> stops, List <long[]> expectedTimeWindows, int currentIndex) //assign route stops { Stops = stops; ScheduledTimeWindows = expectedTimeWindows; StopsIterator = new StopsIterator(stops); StopsIterator.Init(currentIndex); }
public bool Start(int time) { if (!IsDone) { TotalRequests = 0; ServicedCustomers = new List <Customer>(); StartTime = time; StopsIterator.Reset(); HasStarted = true; return(true); } else { HasStarted = false; return(false); } }