Skip to content

faq 48955407

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

Change the behavior of a basic agent

by ИванД on 2016-03-01 09:29:25


I need to simulate an ambulance. How can I change the behavior of a basic agent, adding the ability to go to the oncoming lane and ignore the traffic lights?


Comments: 1


Re: Change the behavior of a basic agent

by Kai Nagel on 2016-03-01 12:44:44

Dear Ivan,

How to replace the DriverAgent logic is, in principle, demonstrated in RunAgentSourceExample, see matsim.org/javadoc → main distribution .

However, I have to say that what you have in mind is probably outside the design area of MATSim: MATSim has traffic lights, but no lane changing behavior, and certainly none for going into oncoming traffic.  (I recall that Gregor Lämmel once worked on something like this but I cannot say if it is production-ready.)  

Good luck, best wishes Kai

Clone this wiki locally