faq 28704785 - matsim-org/matsim-code-examples GitHub Wiki

How to change the status of a link while the mobsim is running?

by Kai Nagel on 2015-05-31 15:40:47


Comments: 1


Re: How to change the status of a link while the mobsim is running?

by Kai Nagel on 2015-05-31 15:42:17

Network change events are for this.  

  • In order to do this via files, see the corresponding section in the user guide here .
  • In order to do this in code, see matsim.org/javadoc → main distribution → RunTimeDependentNetworkExample (since Jun-15/release 0.7.x).

In the second case, it is not clear what happens when the network change event is submitted while the mobsim is already running.  The TimeVariantLinkImpl class maintains an internal cache, but it looks like this will be flushed when additional change events arrive.

⚠️ **GitHub.com Fallback** ⚠️