Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
     }
 }