eqasim-org / eqasim-java

The eqasim framework features an integrated transport simulation environment. It is based on the agent-based transport simulation framework MATSim with added components for simulation of discrete choice models.
http://www.eqasim.org
GNU General Public License v2.0
23 stars 39 forks source link

DrtModeAvailabilityWrapper and FeederDrtModeAvailabilityWrapper are now compatible with non-drt simulations #209

Closed tkchouaki closed 3 months ago

tkchouaki commented 3 months ago

The DrtModeAvailabilityWrapper and FeederDrtModeAvailaibilityWrapper offer the functionality of detecting DRT and Feeder DRT modes in the config and adding them as available modes for users, to quickly deploy these modes on the basis of an existing ModeAvailability. However the first implementation was not compatible with config files that do not contain these modes, always requiring a mutliModeDrt and a multiModeFeederDrt to work. This PR fixes this by allowing these wrappers to handle null values for the config groups. The FeederDrtModeAvailaibilityWrapper is now used in the test instead of explictly passing a list of extra modes to the runMelunSimulation method.