Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: StartLinkAsDepot + refactor package name #69

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
javadoc + make field final
tschlenther committed Feb 20, 2024
commit 114cc72487f445384f417244710fc896d1e3014d
5 changes: 4 additions & 1 deletion src/main/java/org/matsim/drt/StartLinkAsDepot.java
Original file line number Diff line number Diff line change
@@ -28,9 +28,12 @@
import java.util.Map;
import java.util.stream.Collectors;

/**
* Returns the individual start link of each {@code DvrpVehicle}.
*/
public class StartLinkAsDepot implements DepotFinder {

private Map<DvrpVehicle, Link> vehicleToStartLink;
private final Map<DvrpVehicle, Link> vehicleToStartLink;

public StartLinkAsDepot(Fleet fleet) {
this.vehicleToStartLink = fleet.getVehicles()