Skip to content

Commit

Permalink
Merge pull request #3109 from matsim-org/remove-dnl-attribute
Browse files Browse the repository at this point in the history
Add method to remove DisallowedNextLinks attribute from link
  • Loading branch information
mrieser authored Feb 14, 2024
2 parents f403824 + 2d7c09d commit f16d044
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1018,4 +1018,8 @@ public static boolean addDisallowedNextLinks(Link link, String mode, List<Id<Lin
DisallowedNextLinks disallowedNextLinks = getOrCreateDisallowedNextLinks(link);
return disallowedNextLinks.addDisallowedLinkSequence(mode, linkIds);
}

public static void removeDisallowedNextLinks(Link link) {
link.getAttributes().removeAttribute(DISALLOWED_NEXT_LINKS_ATTRIBUTE);
}
}

0 comments on commit f16d044

Please sign in to comment.