Class Restriction
java.lang.Object
org.eclipse.mosaic.lib.database.road.Restriction
This represents a turn restriction. And can either say that one cannot turn from
getSource()
to {link #getTarget} through getVia()
or that one can only
turn/go from getSource()
to {link #getTarget} through getVia()
.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRestriction
(String id, Restriction.Type type, Way source, Node via, Way target) Creates a newRestriction
object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This tries to apply thisRestriction
on the affectedConnection
s.getId()
getType()
getVia()
-
Constructor Details
-
Restriction
public Restriction(@Nonnull String id, @Nonnull Restriction.Type type, @Nonnull Way source, @Nonnull Node via, @Nonnull Way target) Creates a newRestriction
object.- Parameters:
id
- Unique identifier of the restriction.type
- The type of the restriction.source
- Start point the restriction.target
- Target of the restriction.via
- Restriction over the node.
-
-
Method Details
-
getId
-
getType
-
getSource
-
getTarget
-
getVia
-
applyRestriction
public void applyRestriction()This tries to apply thisRestriction
on the affectedConnection
s.
-