matsim-vsp / parallel_qsim_rust

Parallel and distributed implementation of the Qsim in Rust
8 stars 0 forks source link

Allow vehicles to carry multiple passengers #133

Open paulheinr opened 4 months ago

paulheinr commented 4 months ago

Right now, vehicles can only carry one agent (src/simulation/wire_types/messages.proto:34). For DRT, we need multiple agents in one vehicle.

Think about

paulheinr commented 4 months ago

In classic MATSim, there is a distinction between Drivers and Passengers (org.matsim.core.mobsim.qsim.qnetsimengine.QVehicleImpl). There is a special Role org.matsim.core.mobsim.framework.DriverAgent, which equips the driver with perception of move over node and with the decisions to choose next link and to arrive.

Placing the agents on the respective seats (Driver/Passenger) is done by org.matsim.core.mobsim.qsim.interfaces.DepartureHandlers. There is one for each mode. For DRT, passengers are placed on the passenger seats, for car, they are placed as driver.