licit-lab / MnMS

Agent-based Multimodal Urban Moblity Simulator resulting from the ERC MAGnUM project
GNU Lesser General Public License v3.0
11 stars 5 forks source link

Feature/new event leading to replanning #155

Closed kit4a closed 10 months ago

kit4a commented 10 months ago

Add a new event type INTERRUPTION to trigger replanning when user cannot continue on current path. Trigger this event for all users who were supposed to go through a link leading to a free-floating vehicle and deleted because the vehicle was taken by someone else. We now deal with replanning as user is in any state. Associated tests added.

becarie commented 10 months ago

I think it would be interesting to create a general function to manage users who were supposed to use one of the removed links (part of the 'remove station' function in vehicle_sharing.py). Perhaps a function of the 'user flow' class? It seems to me that in the future there may be other cases where we need to manage the removal of links properly. What do you think about this?

kit4a commented 10 months ago

Your comment has been taken into account in commit ee677b3.