R - lane record typepublic interface LaneRecord<R extends LaneRecord<R>>
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 |
|---|---|
org.opentrafficsim.core.gtu.GTUDirectionality |
getDirection()
Returns the direction of travel.
|
default org.djunits.value.vdouble.scalar.Length |
getDistanceToPosition(org.djunits.value.vdouble.scalar.Length position)
Returns the distance from the reference to the given location.
|
Lane |
getLane()
Returns the lane.
|
org.djunits.value.vdouble.scalar.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.
|
org.djunits.value.vdouble.scalar.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()
org.djunits.value.vdouble.scalar.Length getStartDistance()
org.djunits.value.vdouble.scalar.Length getLength()
org.opentrafficsim.core.gtu.GTUDirectionality getDirection()
Lane getLane()
default org.djunits.value.vdouble.scalar.Length getDistanceToPosition(org.djunits.value.vdouble.scalar.Length position)
position - Length; position on the lanedefault boolean isDownstreamBranch()
true.Copyright © 2014–2018 Delft University of Technology. All rights reserved.