Hi,

does traci.simulation.saveState() save traffic states as well, like the
current phases and all other phases and their remain durations?

On Sun, Jun 7, 2020 at 1:18 AM Jakob Erdmann <namdre.s...@gmail.com> wrote:

> Yes.  You can use traci.load(['sumo', '-n' , 'your.net.xml',
> '--load-state', 'savedstate.xml', ...])
> However, this is not much faster then calling traci.start (the net still
> needs to be reloaded).
>
> In the latest development version you can also use
> traci.simulation.loadState('savedstate.xml') but this is still somewhat
> experimental.
>
> regards,
> Jakob
>
> Am Sa., 6. Juni 2020 um 23:40 Uhr schrieb . Abdullah <a...@ualberta.ca>:
>
>> Hi,
>>
>> Let's say I am running a gui simulation and after running for 50 seconds,
>> I save the state using traci.simulation.saveState(). Then I change some
>> values and continue for 10 more seconds and now I want to reload the state
>> that I have saved at 50 seconds and continue from there again. Is this
>> possible? Is it possible to save a simulation state and load state without
>> having to start a new simulation?
>>
>> --
>> Thank you.
>> Abdullah
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>


-- 
Thank you.
Abdullah
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to