Oups! This is a better example of additionnal file  (the two programID are now 
different)

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="60" state="ggrrGG"/>
        <phase duration="4" state="yyrryy"/>
        <phase duration="30" state="rrggrr"/>
        <phase duration="4" state="rryyrr"/>
   </tlLogic>


------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to