Hello, you can can calculate this in TraCI if you record the departure time and the arrival time of each vehicle and also the number of simulation steps where its speed is below some threshold. I'm afraid there is no simpler way to do it. If you want a more precise measure of delay you should record the traveltime for each vehicle in a separate simulation where there are no other vehicles and compare it against the time in actual scenario. regards, Jakob
2014/1/8 mohamed tahifa <[email protected]> > thanks for the answer but i want this Data to calculate it in traci , i > don't want to do double Work an thank you > > ---------- Forwarded message ---------- > From: Joerg Schweizer <[email protected]> > Date: Wed, Jan 8, 2014 at 12:17 PM > Subject: Re: [sumo-user] calculate Delay of a vehicle in a traffic > To: [email protected] > > > not sure if this is what you want, but if you call sumo with the > --tripinfo-output FILE option then it produces an xml file with > trip information. Apart from the actual depart and arrival time, > there is an attribite called "waitSteps" which counts the number of > steps in which the vehicle speed was below 0.1m/s > > > On 08/01/14 13:02, mohamed tahifa wrote: > > hey everyone! > > > > i want a idea or a function to calculate a delay of a vehicle in a > traffic > > , it calculate the time a vehicle does in the traffic since hi enter the > > traffic until he exit it , if any function exist , if you can give some > > ideas how to implement one and thank you. > > > > > -- > Joerg Schweizer > University of Bologna > DICAM-Trasportation Group > Viale Risorgimento, 2 > 40136 Bologna, Italy > Tel: +39 051 209 3338 > Fax: +39 051 209 3337 > E-mail: [email protected] > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > > -- > > > > TAHIFA Mohammed > *0649106565* > PhD student in Computer Science > FSDM - USMBA, Fès > [image: Inline images 1][image: Inline images 2] > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
