Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------------------------
- insertA(@1.3) insertB(@2.6) insertC(@8.4)
- -----------------------------------------------------------------------
- -----------------------------------------------------------------------
- insertA(@1) insertB(@2) insertC(@3) insertD(@5) insertE(@6) insertf(@7)
- -----------------------------------------------------------------------
- [NO] [YES] [NO] [NO] [YES] [NO]
- for (int currentRouteID = 0; currentRouteID < routeIds.size(); currentRouteID++)
- {
- int poissonNumber = poisson(1/16));
- insertNewVehiclePoisson(currentRouteID,poissonNumber);
- }
- void insertNewVehiclePoisson(int routeID, int poissonNumber)
- {
- int rID = routeID;
- std::string type = "DEFAULT_VEHTYPE";
- for (int y = 0; y < poissonNumber; y++)
- {
- vehicleInsertQueue[rID].push(type);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement