Skip to content

Commit

Permalink
fix: FeederDrtModeAvailabilityWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarek Chouaki committed Mar 25, 2024
1 parent 882521f commit 6c7866f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class FeederDrtModeAvailabilityWrapper implements ModeAvailability {
public FeederDrtModeAvailabilityWrapper(MultiModeDrtConfigGroup multiModeDrtConfigGroup, MultiModeFeederDrtConfigGroup multiModeFeederDrtConfigGroup, ModeAvailability delegate) {
this.delegate = delegate;
this.extraModes = multiModeFeederDrtConfigGroup.modes().collect(Collectors.toSet());
Collection<String> coveredDrtModes = multiModeFeederDrtConfigGroup.getModalElements().stream().map(cfg -> cfg.accessEgressTransitStopModes).toList();
Collection<String> coveredDrtModes = multiModeFeederDrtConfigGroup.getModalElements().stream().map(cfg -> cfg.accessEgressModeName).toList();
this.extraModes.addAll(multiModeDrtConfigGroup.modes().filter(mode -> !coveredDrtModes.contains(mode)).toList());
}

Expand Down

0 comments on commit 6c7866f

Please sign in to comment.