I have defined the flow using the following: <routes> <vType id="normal car" vClass="passenger" maxSpeed="40" speedFactor="0.9" speedDev="0.2" sigma="0.5" /> <vType id="sporty car" vClass="passenger" maxSpeed="60" speedFactor="1.3" speedDev="0.1" sigma="0.1" /> <vType id="trailer" vClass="trailer" maxSpeed="30" speedFactor="1.1" speedDev="0.1" /> <vType id="coach" vClass="coach" maxSpeed="30" speedFactor="1." speedDev="0.1" /> <flow id="normal" type="normal car" begin="0" end="5000" number="5000" from="entry" to="exit" departPos="last" departLane="best" /> <flow id="sporty" type="sporty car" begin="0" end="5000" number="5000" from="entry" to="exit" departPos="last" departLane="best" /> <flow id="coach" type="coach" begin="0" end="5000" number="100" from="entry" to="exit" departPos="last" departLane="best" /> <flow id="trailer" type="trailer" begin="0" end="5000" number="200" from="entry" to="exit" departPos="last" departLane="best" />
</routes> Which means I have no access to the vehicle IDs which the traci.vehicle.remove() uses. For the repeated flows, the documentation mentions the following: The id of the created vehicles is "flowId.runningNumber" and they are distributed equally in the given interval. Is there a way I can remove one flow at some *step *of my simulation using this ? On Thu, Feb 16, 2017 at 1:27 PM, Abdul Salam Shaikh < abd.salam.sha...@gmail.com> wrote: > Thank you for your prompt response. > > On Feb 16, 2017 10:05 AM, "Jakob Erdmann" <namdre.s...@googlemail.com> > wrote: > >> You can remove vehicles by giving their ID. See >> http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State >> >> >> 2017-02-16 9:55 GMT+01:00 Abdul Salam Shaikh <abd.salam.sha...@gmail.com> >> : >> >>> Thanks for responding, is there any way provision to delete the vehicles >>> from SUMO via TRACI ? >>> >>> On Feb 16, 2017 8:29 AM, "Jakob Erdmann" <namdre.s...@googlemail.com> >>> wrote: >>> >>>> Hello, >>>> there is no direct way to control a <flow> via TraCI. >>>> What you can do is insert additional vehicles using the same >>>> parameters. Alternatively, you could delete vehicles from the flow after >>>> they have departed in order to reduce traffic. >>>> regards, >>>> Jakob >>>> >>>> 2017-02-15 22:45 GMT+01:00 Abdul Salam Shaikh < >>>> abd.salam.sha...@gmail.com>: >>>> >>>>> Hi, >>>>> >>>>> I am trying to simulate a traffic situation where I want to change the >>>>> flow >>>>> of vehicles at different steps. >>>>> >>>>> I am defining the flow using: >>>>> <flow id="normal" type="normal car" begin="0" end="5000" number="100" >>>>> from="entry" to="exit" departPos="last" departLane="best" /> >>>>> >>>>> Is there any way I can control the vehicle number at different points >>>>> in my >>>>> execution via Traci. >>>>> >>>>> Thanks! >>>>> ------------------------------------------------------------ >>>>> ------------------ >>>>> Check out the vibrant tech community on one of the world's most >>>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>>> _______________________________________________ >>>>> sumo-user mailing list >>>>> sumo-user@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/sumo-user >>>>> >>>> >>>> >> -- Thanks & Regards, *Abdul Salam Shaikh* ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list sumo-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user