public abstract static class LaneChange.LaneChangePath.SequentialLaneChangePath extends Object implements LaneChange.LaneChangePath
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.
LaneChange.LaneChangePath.SequentialLaneChangePath
BEZIER, POLY3, SINE
Constructor and Description |
---|
SequentialLaneChangePath() |
Modifier and Type | Method and Description |
---|---|
protected abstract double |
angle(double width,
double cumulLcLength,
double totalLcLength)
Returns the angle, relative to the lane center line, at the given cumulative length for a lane change of given
total length and lateral deviation.
|
OTSLine3D |
getPath(Duration timeStep,
Length planDistance,
Speed meanSpeed,
DirectedLanePosition from,
DirectedPoint startPosition,
LateralDirectionality laneChangeDirection,
List<LaneDirection> fromLanes,
List<LaneDirection> toLanes,
double endFractionalPosition,
Duration laneChangeDuration,
double lcFraction)
Returns a (partial) path for a lane change.
|
protected abstract double |
lateralFraction(double lcFraction)
Returns the fractional lateral deviation given a fraction of lane change being completed.
|
public OTSLine3D getPath(Duration timeStep, Length planDistance, Speed meanSpeed, DirectedLanePosition from, DirectedPoint startPosition, LateralDirectionality laneChangeDirection, List<LaneDirection> fromLanes, List<LaneDirection> toLanes, double endFractionalPosition, 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 planmeanSpeed
- Speed; mean speed during time stepfrom
- DirectedLanePosition; current position on the from-lanesstartPosition
- DirectedPoint; current 2D positionlaneChangeDirection
- LateralDirectionality; lane change directionfromLanes
- List<LaneDirection>; lane list of the from-lane concernedtoLanes
- List<LaneDirection>; lane list of the to-lane concernedendFractionalPosition
- double; fractional position at the end of the plan at the last lanes in the lane listslaneChangeDuration
- Duration; current considered duration of the entire lane changelcFraction
- double; fraction of lane change done so farOTSGeometryException
- on wrong fractional positionprotected abstract double lateralFraction(double lcFraction)
lcFraction
- double; fraction of lane changeprotected abstract double angle(double width, double cumulLcLength, double totalLcLength)
width
- double; lateral deviation from from lanes at lane change endcumulLcLength
- double; cumulative length (along from lanes) covered so fartotalLcLength
- double; total (along from lanes) length to cover in lane changeCopyright © 2014–2018 Delft University of Technology. All rights reserved.