Danke Michael, Indeed, this should suit my needs setProgram(tlsID, programID) I begin to understand the possibilities of SUMO. Good work.
Regards François ________________________________________ De : Michael Behrisch [[email protected]] Date d'envoi : 9 juin 2015 10:06 À : François Vaudrin Cc : sumo-user Objet : Re: [sumo-user] Changing the "programID" in Traci Hi François, please try http://sumo.dlr.de/daily/pydoc/traci.trafficlights.html#-setProgram Best regards, Michael Am 2015-06-05 14:08, schrieb François Vaudrin: > Hello everyone, > > In the example Tutorials / Lights TraCI4Traffic I understand that it > is possible to change the traffic signal phases according to the > detection loop. The algorithm changes the phases directly and does not > set the duration (it is the arrival of vehicles that determines when > to change phase). If I have a traffic an additional file and different > traffic light programs for an intersection, is it possible to change > directly the programID for the whole intersection with the duration ? > For example, if I want to change the programID "1" for the programID > "2" in traffic light system "890" (below) according to my algoritm ? > > Thank you > > François Vaudrin > Université Laval, CANADA > > > additional_file.xml > > <tlLogic id="890" type="static" programID="1" offset="0"> > <phase duration="70" state="ggrrGG"/> > <phase duration="4" state="yyrryy"/> > <phase duration="20" state="rrggrr"/> > <phase duration="4" state="rryyrr"/> > </tlLogic> > > <tlLogic id="890" type="static" programID="2" offset="0"> > <phase duration="70" state="ggrrGG"/> > <phase duration="4" state="yyrryy"/> > <phase duration="20" state="rrggrr"/> > <phase duration="4" state="rryyrr"/> > </tlLogic> > > > > ------------------------------------------------------------------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
