Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. -----------------------------------------------------------------------
  2. insertA(@1.3) insertB(@2.6) insertC(@8.4)
  3. -----------------------------------------------------------------------
  4.  
  5. -----------------------------------------------------------------------
  6. insertA(@1) insertB(@2) insertC(@3) insertD(@5) insertE(@6) insertf(@7)
  7. -----------------------------------------------------------------------
  8. [NO] [YES] [NO] [NO] [YES] [NO]
  9.  
  10. for (int currentRouteID = 0; currentRouteID < routeIds.size(); currentRouteID++)
  11. {
  12. int poissonNumber = poisson(1/16));
  13. insertNewVehiclePoisson(currentRouteID,poissonNumber);
  14. }
  15.  
  16. void insertNewVehiclePoisson(int routeID, int poissonNumber)
  17. {
  18. int rID = routeID;
  19. std::string type = "DEFAULT_VEHTYPE";
  20.  
  21. for (int y = 0; y < poissonNumber; y++)
  22. {
  23. vehicleInsertQueue[rID].push(type);
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement