Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. void junctionReport:: writeReport(){
  2.  
  3. Junction& reportedJunction = (*simulator.JunctionMap[junctionId]);
  4. simulator.reportsPt.add(id + ".junctionId" , junctionId);
  5. string timeSlices="";
  6. if (reportedJunction.incomingRoads.empty()==false){
  7. for (vector<Road*>::iterator it = reportedJunction.incomingRoads.begin(); it!=reportedJunction.incomingRoads.end(); it++){
  8. string timeSlice = SSTR((*it)->greenSliceTime);
  9. string leftGreen = SSTR ((*it)->leftGreenTime)
  10. }
  11.  
  12. }
  13.  
  14. simulator.reportsPt.add(id + ".timeSlices" , reportedCar.history);
  15. simulator.reportsPt.add(id + ".faultyTimeLeft" , reportedCar.faultTimeLeft);
  16. write_ini( "Report.ini" , simulator.reportsPt );
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement