On 7/20/14 11:39 AM, Titus Rakkesh wrote:
> Dears,
>       I am having a code segement as,
>
> existingTrafficSignal =
> traci.trafficlights.getCompleteRedYellowGreenDefinition('1307347941');
>
> if no > 0
>         %some logic here
>      else
>
> traci.trafficlights.setCompleteRedYellowGreenDefinition('1307347941','existingTrafficSignal');
> end
>
Take "existingTrafficSignal" out of quotes in the call to 
setCompleteRedYellowGreenDefinition(). It needs to be passed as a 
variable (which you have already set in your call to 
getCompleteRedYellowGreenDefinition()), not as a string.

hth

                                - Tom

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to