public abstract static class LaneChange.LaneChangePath.InterpolatedLaneChangePath extends Object implements LaneChange.LaneChangePath
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.
LaneChange.LaneChangePath.InterpolatedLaneChangePath, LaneChange.LaneChangePath.SequentialLaneChangePath
BEZIER, LINEAR, POLY3, SINE, SINE_INTERP
Constructor and Description |
---|
InterpolatedLaneChangePath() |
Modifier and Type | Method and Description |
---|---|
OTSLine3D |
getPath(Duration timeStep,
Length planDistance,
Speed meanSpeed,
DirectedLanePosition from,
nl.tudelft.simulation.language.d3.DirectedPoint startPosition,
LateralDirectionality laneChangeDirection,
OTSLine3D fromLine,
OTSLine3D toLine,
Duration laneChangeDuration,
double lcFraction)
Returns a (partial) path for a lane change.
|
public OTSLine3D getPath(Duration timeStep, Length planDistance, Speed meanSpeed, DirectedLanePosition from, nl.tudelft.simulation.language.d3.DirectedPoint startPosition, LateralDirectionality laneChangeDirection, OTSLine3D fromLine, OTSLine3D toLine, Duration laneChangeDuration, double lcFraction) throws OTSGeometryException
planDistance
, unless the lane change
will be finished during the coming time step. In that case, the caller of this method is to lengthen the path along
the center line of the target lane.getPath
in interface LaneChange.LaneChangePath
timeStep
- Duration; time stepplanDistance
- Length; distance covered during the operational planmeanSpeed
- Speed; mean speed during time stepfrom
- DirectedLanePosition; current position on the from-lanesstartPosition
- DirectedPoint; current 2D positionlaneChangeDirection
- LateralDirectionality; lane change directionfromLine
- OTSLine3D; from linetoLine
- OTSLine3D; to linelaneChangeDuration
- Duration; current considered duration of the entire lane changelcFraction
- double; fraction of lane change done so farOTSGeometryException
- on wrong fractional positionCopyright © 2014–2019 Delft University of Technology. All rights reserved.