BauhausLuftfahrt / MATSim-UAM

Extension for MATSim to allow for the inclusion of aerial passenger-carrying vehicles, i.e. a station- and network-bound transport mode that requires station access and egress trips with conventional ground-based modes.
https://bauhausluftfahrt.github.io/MATSim-UAM/
GNU General Public License v3.0
21 stars 29 forks source link

All UAM vehicle events should be labelled with mode "uam" instead of "car" #13

Open RRothfeld opened 5 years ago

Aitanm commented 5 years ago

This is only happening when the agent is a vehicle. For example: <event time="22408.0" type="arrival" person="uam_vh_00-01" link="uam_sl-uam_st_00_ga-uam_st_00_fa" legMode="car" />. For passengers it is correctly labelled as "uam" in the events file. I believe this is because we create the passengers' legs in the OptimizedUAMIntermodalRoutingModule, and there, every leg has its own label depending on the mode. For the vehicles, the DVRP framework is used, and the leg created in the UAMActionCreator is a VrpLeg. The VrpLeg has only one mode, which is car. From the VrpLeg: private final String mode = TransportMode.car;.

What would be the best way to label these legs as "uam" without modifying DVRP code or rewriting the whole vrpagent package?