Guest User

Untitled

a guest
Jun 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. for (int i = 0; i < stop_services.size(); ++i)
  2. {
  3. if (!service_usage.at(i)) continue;
  4. int stopServiceId = stop_services.at(i)->stop_service_id();
  5.  
  6. float nextSlUsage = (slUsage == 1) ? 1.0 :
  7. path->get_stop_service_total_sl_usage(legnr-1, stopServiceId);
  8. if (!nextSlUsage) continue; // [5/27/2009 jamie.cook] TODO: should this be a break here or after we populate m_nextLoadAtStopService?
  9.  
  10. if (!m_nextLoadAtStopService.at(stopServiceId))
  11. {
  12. nextStopServiceList.push_back(stop_services.at(i));
  13. if (doingSl) nextStopServiceSlUsage.push_back(nextSlUsage);
  14. }
  15. float usageTimesLoad = service_usage.at(i) * load;
  16. m_nextLoadAtStopService.at(stopServiceId) += usageTimesLoad;
  17.  
  18. // [5/27/2009 jamie.cook] TODO: should this be usageTimesLoad * (slUsage || nextSlUsage) ??
  19. ptLoad->IncrementInterchange(nextStopService, stop_services.at(i),
  20. usageTimesLoad * slUsage);
  21. }
Add Comment
Please, Sign In to add comment