faq 28704778 - billyc/matsim-wiki-test GitHub Wiki

Have you ever tried to catch a event like a car entering in a link?

by Kai Nagel on 2015-05-31 15:26:28.939


Comments: 1


Re: Have you ever tried to catch a event like a car entering in a link?

by Kai Nagel on 2015-05-31 15:41:50.327

See matsim.org/javadoc → main distribution → RunEventsHandlingExample for event handling examples.  MyEventHandler1 contains link enter and link leave events.

That example shows how to use an EventHander to postprocess an existing events file.  The same handler can be attached directly to the controler, see matsim.org/javadoc → main distribution → RunEventsHandlingWithControlerExample .

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