Hello, setPhaseDuration only changes the duration of the current phase. If you want to permanently change the duration of arbitrary phases, the best way is to - call traci.getCompleteRedYellowGreenStateProgram(id) - manipulate the returned data structure. (see the classes Logic and Phase in traci/trafficlights.py) - call traci.setCompleteRedYellowGreenState(id, tls)
regards, Jakob 2014-02-13 Matteo D'Oriano <[email protected]>: > Dear all, > > I am too a new user of Sumo, and I want thank you in advance for the > patience. > > I don't understand how the two commands in object work. > > setPhaseDuration, as I checked, doesn't allow you to change the duration > of each single phase. I mean as input it requires just "tls id" and > "duration", but not "phase id". If i want to set phase "0" for 50 seconds, > what should i do? > > About setCompleteRedYellowGreenDefinition, i dont understand which inputs > it needs to work. > > Thanks everybody and regards. > > Matteo > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
