Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] traci.trafficlight.setProgram(junction ID, program ID)

setProgram always affects  single traffic light controller. If that traffic light is a joined controller then all it's  junctions will all be affected. Placing multiple programs in a single file does not make them "joined".
See https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#controlling_multiple_junctions_with_the_same_controller for the meaning of "joined controller".

Am Fr., 9. Apr. 2021 um 18:33 Uhr schrieb Shah Sultan <syedshahsultan@xxxxxxxxx>:
tsl.xml <http://sumo-user-mailing-list.90755.n8.nabble.com/file/t507/tsl.xml


Dear all

I am having a query regarding the additional file for modifying the existing
TLS program.

I have four different junctions which I have included in a single additional
file. The program ID is 1 and the tl junction IDs are *2273469505*,
*454336319*, *268032054*, and *1886728151*. The additional file is attached.

The question is if I set *traci.trafficlight.setProgram('1886728151',1)* the
program for the mentioned junction ID will be modified or all the junctions
mentioned in the additional file will be modified?



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top