Hi Irene,
sorry, that's not supported yet in TraCI4J.

But the TraCI protocol supports distance measurement (see
http://sumo.dlr.de/wiki/TraCI/Simulation_Value_Retrieval#Command_0x83:_Distance_Request),
so it's a matter of adding a new query class in TraCI4J that makes the
right request. The most similar implemented query is the position
conversion, so if I'd want to support distance measurement, I'd copy and
edit that query. It's defined and used in three places:

https://github.com/egueli/TraCI4J/blob/master/src/java/it/polito/appeal/traci/SumoTraciConnection.java#L877
https://github.com/egueli/TraCI4J/blob/master/src/java/it/polito/appeal/traci/SimulationData.java#L102
https://github.com/egueli/TraCI4J/blob/master/src/java/it/polito/appeal/traci/PositionConversionQuery.java


Kind regards,
Enrico


2016-08-09 20:17 GMT+02:00 Irene G <[email protected]>:

> Someone can provide me an example to measure distances between two cars
> with traci4J?
>
> Thanks
> ------------------------------------------------------------
> ------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. http://sdm.link/zohodev2dev
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>



-- 
Enrico
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to