omnet++veinstraffic-simulationsumo

How to know the leaving time of each car in the simulation?


I use Omnet++-4.6, sumo-0.22.0 and Veins-4a2.

In my simulation, I need to know how much time each car takes during the simulation.

So, I need to know the time which each car leaves the simulation.

How can I do this please?


Solution

  • You can use the finalize method in every module to execute code when the object gets destroyed (i.e. leaves the simulation). Try this in the car's application layer (e.g. TraciDemo11p).