Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Traffic Lights and Independent phases

Hey everyone,

Is it possible to have a TL program that controls the lanes, but also that by Traci force a longer time for a phase in only one direction while everything else stay stop. This only under certain circumstances, so if that event does not happen, it will work as a normal basic program.

Normal program:

   <tlLogic id="B1" type="actuated" programID="0" offset="12">
       <param key="detector-gap" value="2.0"/>
       <param key="show-detectors" value="true"/>
       <phase duration="47" minDur="20" max="47" state="rrrrrggggrrrrrrggggrgrgr"/>
       <phase duration="3"  minDur="3" max="3" state="rrrrryyyyrrrrrryyyyryryr"/>
       <phase duration="37" minDur="37" max="37" state="ggggrrrrrrggggrrrrrrrgrg"/>
       <phase duration="3"  minDur="3" max="3" state="yyyyrrrrrryyyyrrrrrrryry"/>
   </tlLogic>

Best regards,
José

Back to the top