Hello, the tutorial only shows on possible method for controling the signal plan. There, each term represents one second of signal states and the traffic light is set to the next term explicitly each second. So, if you remove terms the phases will be shorter.
You may also set a complete program including phase durations which then cycles automatically. The simplest way to do this is, of course to load the correct fixed-durations from an xml input file. But if you want to change these durations or signal states dynamically you can get a python representation of the tlLogic by calling getCompleteRedYellowGreenDefinition() which gives you a Logic class (see class Logic and class Phase in traci/trafficlights.py) You can then modify the attributes of this class and load this Logic back into the simulation using setCompleteRedYellowGreenDefinition() regards, Jakob 2013/11/29 USC <[email protected]> > Hello, > > In tutorial/traci_tls (the one for emergency vehicles) > > How would changing /defining the states of "traffic lights" differently > affect the program ? > > For now there are 3 WEYELLOW terms, 8 NSGREEN terms , 2 NSYELLOW terms and > 1 WEGREEN term. > > How would changing declaration to 3 terms affect it ? Say only 3 terms of > all the above states ? > > ---- I'm trying to figure out how to simulate the situation at a junction > where traffic flows according to a fixed duration of traffic light . And I > don't quite understand how to include " tlLogic " in the python script for > TraCi implementation . > > Regards, > Pooja. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
