|
MATSIM
|
Static Public Member Functions | |
| static boolean | isValid (Network network) |
| static void | clean (Network network) |
| static List< List< Id< Link > > > | getDisallowedLinkIdSequences (Network network, String mode) |
Private Member Functions | |
| DisallowedNextLinksUtils () | |
Static Private Member Functions | |
| static List< String > | getErrors (Map< Id< Link >, ? extends Link > links, Id< Link > linkId, DisallowedNextLinks disallowedNextLinks) |
| static List< String > | isNextLinkSequenceOf (Map< Id< Link >, ? extends Link > links, Link link, List< Id< Link >> nextLinkIds) |
| static boolean | isNextLinkOf (Link link, Id< Link > nextLinkId) |
| static List< String > | isInAllowedModes (Map< Id< Link >, ? extends Link > links, String mode, Link link, List< Id< Link >> nextLinkIds) |
Static Private Attributes | |
| static final Logger | LOG = LogManager.getLogger(DisallowedNextLinksUtils.class) |
Some methods to validate DisallowedNextLinks attributes of a network.
Definition at line 22 of file DisallowedNextLinksUtils.java.
|
private |
Definition at line 26 of file DisallowedNextLinksUtils.java.
|
static |
Check network for errors in the definition of disallowed next links and log them, if any.
| network |
Definition at line 39 of file DisallowedNextLinksUtils.java.
References org.matsim.core.network.NetworkUtils.getDisallowedNextLinks(), org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.getErrors(), and org.matsim.api.core.v01.network.Network.getLinks().
Referenced by org.matsim.core.network.algorithms.NetworkMergeDoubleLinks.handleTurnRestrictions().

|
static |
Remove link sequences of DisallowedNextLinks which contain missing links or wrong modes.
| network |
Definition at line 61 of file DisallowedNextLinksUtils.java.
References org.matsim.core.network.turnRestrictions.DisallowedNextLinks.addDisallowedLinkSequence(), org.matsim.api.core.v01.network.Link.getAllowedModes(), org.matsim.core.network.turnRestrictions.DisallowedNextLinks.getAsMap(), org.matsim.core.network.NetworkUtils.getDisallowedNextLinks(), org.matsim.api.core.v01.network.Network.getLinks(), org.matsim.core.network.turnRestrictions.DisallowedNextLinks.isEmpty(), org.matsim.core.network.turnRestrictions.DisallowedNextLinks.removeDisallowedLinkSequences(), and org.matsim.core.network.NetworkUtils.removeDisallowedNextLinks().

|
staticprivate |
Definition at line 119 of file DisallowedNextLinksUtils.java.
References org.matsim.core.network.turnRestrictions.DisallowedNextLinks.getAsMap(), org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.isInAllowedModes(), and org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.isNextLinkSequenceOf().
Referenced by org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.isValid().

|
staticprivate |
Definition at line 140 of file DisallowedNextLinksUtils.java.
References org.matsim.api.core.v01.Identifiable< T >.getId(), and org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.isNextLinkOf().
Referenced by org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.getErrors().

|
staticprivate |
Definition at line 165 of file DisallowedNextLinksUtils.java.
References org.matsim.api.core.v01.network.Node.getOutLinks(), and org.matsim.api.core.v01.network.Link.getToNode().
Referenced by org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.isNextLinkSequenceOf().

|
staticprivate |
Definition at line 170 of file DisallowedNextLinksUtils.java.
References org.matsim.api.core.v01.network.Link.getAllowedModes(), and org.matsim.api.core.v01.Identifiable< T >.getId().
Referenced by org.matsim.core.network.turnRestrictions.DisallowedNextLinksUtils.getErrors().

|
static |
Returns a list of link id sequences that are not allowed to be traveled due to turn restrictions.
| network | |
| mode | use turn restrictions of that mode |
Definition at line 199 of file DisallowedNextLinksUtils.java.
References org.matsim.core.network.turnRestrictions.DisallowedNextLinks.getDisallowedLinkSequences(), org.matsim.core.network.NetworkUtils.getDisallowedNextLinks(), and org.matsim.api.core.v01.network.Network.getLinks().

|
staticprivate |
Definition at line 24 of file DisallowedNextLinksUtils.java.
1.8.13