R - lane record typepublic interface LaneRecord<R extends LaneRecord<R>>
Copyright (c) 2013-2019 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 |
|---|---|
GTUDirectionality |
getDirection()
Returns the direction of travel.
|
default Length |
getDistanceToPosition(Length position)
Returns the distance from the reference to the given location.
|
Lane |
getLane()
Returns the lane.
|
Length |
getLength()
Returns the length of the lane.
|
List<? extends R> |
getNext()
Returns a list of next lanes.
|
List<? extends R> |
getPrev()
Returns a list of previous lanes.
|
Length |
getStartDistance()
Returns the distance from a reference to the start of this lane, negative for upstream distance.
|
default boolean |
isDownstreamBranch()
Returns whether the record is part of the downstream branch.
|
List<? extends R> getNext()
List<? extends R> getPrev()
Length getStartDistance()
Length getLength()
GTUDirectionality getDirection()
Lane getLane()
default Length getDistanceToPosition(Length position)
position - Length; position on the lanedefault boolean isDownstreamBranch()
true.Copyright © 2014–2019 Delft University of Technology. All rights reserved.