Skip to content

faq 28704778

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

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


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

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 .

Clone this wiki locally