public class LanePathInfo extends Object implements Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
LanePathInfo(org.opentrafficsim.core.geometry.OTSLine3D path,
List<LaneDirection> laneDirectionList,
org.djunits.value.vdouble.scalar.Length referencePosition) |
Modifier and Type | Method and Description |
---|---|
List<LaneDirection> |
getLaneDirectionList() |
List<Lane> |
getLanes() |
org.opentrafficsim.core.geometry.OTSLine3D |
getPath() |
Lane |
getReferenceLane()
The reference lane is the widest lane on which the reference point of the GTU is fully registered.
|
LaneDirection |
getReferenceLaneDirection()
The reference lane is the widest lane on which the reference point of the GTU is fully registered.
|
org.djunits.value.vdouble.scalar.Length |
getReferencePosition() |
String |
toString() |
public LanePathInfo(org.opentrafficsim.core.geometry.OTSLine3D path, List<LaneDirection> laneDirectionList, org.djunits.value.vdouble.scalar.Length referencePosition)
path
- the path it the GTU keeps driving in the same lane, and follows the route if possible in the same lane. The
path stops when the lane or a continuation lane does not lead in the direction of the route provided by the
strategical planner.laneDirectionList
- the current lane on which the reference point of the GTU is registered (if the GTU is registered
on multiple lanes with the reference point, one lane is chosen where the reference point has a fractional lane
position between 0.0 and 1.0), and consecutive lanes that follow the route if possible in the same lane. The
list of lanes stops when a continuation lane does not lead in the direction of the route provided by the
strategical planner. For each lane, the direction to drive is provided.referencePosition
- the start point on the first lane in the laneDirectionList. When this is a point that represents
a GTU position, it should represent the reference point of the GTU.public final org.opentrafficsim.core.geometry.OTSLine3D getPath()
public final List<LaneDirection> getLaneDirectionList()
public final LaneDirection getReferenceLaneDirection()
public final Lane getReferenceLane()
public final org.djunits.value.vdouble.scalar.Length getReferencePosition()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.