public interface LaneStructureRecord extends LaneRecord<LaneStructureRecord>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsRoute(Route route,
GTUType gtuType)
Returns whether this lane allows the route to be followed.
|
boolean |
allowsRouteAtEnd(Route route,
GTUType gtuType)
Returns whether the end of this lane allows the route to be followed.
|
Node |
getFromNode()
Returns the the 'from' node of the link belonging to this lane, in the driving direction.
|
LaneStructureRecord |
getLeft()
Returns the left LSR or null if not available.
|
LaneStructureRecord |
getRight()
Returns the right LSR or null if not available.
|
Node |
getToNode()
Returns the the 'to' node of the link belonging to this lane, in the driving direction.
|
boolean |
isCutOffEnd()
Returns whether this lane has no next records as the lane structure was cut-off.
|
boolean |
isCutOffStart()
Returns whether this lane has no previous records as the lane structure was cut-off.
|
boolean |
isDeadEnd()
Returns whether the record forms a dead-end.
|
boolean |
legalLeft()
Returns whether a left lane change is legal.
|
boolean |
legalRight()
Returns whether a right lane change is legal.
|
boolean |
physicalLeft()
Returns whether a left lane change is physically possible.
|
boolean |
physicalRight()
Returns whether a right lane change is physically possible.
|
default boolean |
possibleLeft(boolean legal)
Returns the left lane change possibility.
|
default boolean |
possibleRight(boolean legal)
Returns the right lane change possibility.
|
getDirection, getDistanceToPosition, getLane, getLength, getNext, getPrev, getStartDistance, isDownstreamBranchNode getFromNode()
Node getToNode()
LaneStructureRecord getLeft()
LaneStructureRecord getRight()
boolean legalLeft()
boolean legalRight()
boolean physicalLeft()
boolean physicalRight()
default boolean possibleLeft(boolean legal)
legal - boolean; legal, or otherwise physical, possibilitydefault boolean possibleRight(boolean legal)
legal - boolean; legal, or otherwise physical, possibilityboolean isCutOffEnd()
boolean isCutOffStart()
boolean isDeadEnd()
boolean allowsRoute(Route route, GTUType gtuType) throws NetworkException
route - Route; the route to followgtuType - GTUType; gtu typeNetworkException - if no destination nodeboolean allowsRouteAtEnd(Route route, GTUType gtuType) throws NetworkException
route - Route; the route to followgtuType - GTUType; gtu typeNetworkException - if no destination nodeCopyright © 2014–2018 Delft University of Technology. All rights reserved.