How to collect traffic data and macroscopic statistics in Veins?

旧时模样 提交于 2019-12-23 05:09:04

问题


Hello StackEx community.

I am implementing certain scenarios in Veins 3.0 and I wish to collect certain traffic statistics such as the Average Waiting Time, the Average Energy consumption, etc from my simulation.

Please help on how to generate and interpret these information.

Thanks


回答1:


TraCIMobility already records some statistics that you can directly use or build on. See, for example totalCO2Emission. Other statistics you might have to implement yourself, e.g., after detecting that a car was stopped for a certain time. See the OMNeT++ user manual pages on result recording and analysis for general information on how to do that and the Tic Toc tutorial for a concrete example.



来源:https://stackoverflow.com/questions/31051936/how-to-collect-traffic-data-and-macroscopic-statistics-in-veins

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!