Class LaneBasedOperationalPlan
java.lang.Object
org.opentrafficsim.core.gtu.plan.operational.OperationalPlan
org.opentrafficsim.road.gtu.lane.plan.operational.LaneBasedOperationalPlan
An operational plan with some extra information about the lanes and lane changes so this information does not have to be
recalculated multiple times. Furthermore, it is quite expensive to check whether a lane change is part of the oprtational
plan based on geographical data.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Field Summary
Fields inherited from class org.opentrafficsim.core.gtu.plan.operational.OperationalPlan
DRIFTING_ACCELERATION, DRIFTING_SPEED, MINIMUM_CREDIBLE_PATH_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionLaneBasedOperationalPlan(LaneBasedGtu gtu, OtsLine2d path, Duration startTime, Segments segments, boolean deviative) Construct an operational plan with or without a lane change. -
Method Summary
Methods inherited from class org.opentrafficsim.core.gtu.plan.operational.OperationalPlan
equals, getAcceleration, getAccelerationFromStart, getDurationAtDistance, getEndLocation, getEndTime, getLocation, getLocation, getLocationFromStart, getOperationalPlanSegmentList, getPath, getSpeed, getSpeedFromStart, getStartSpeed, getStartTime, getTimeAtDistance, getTotalDuration, getTotalLength, getTraveledDistance, getTraveledDistanceFromStart, hashCode, standStill, timeAtDistance, timeAtPoint
-
Constructor Details
-
LaneBasedOperationalPlan
public LaneBasedOperationalPlan(LaneBasedGtu gtu, OtsLine2d path, Duration startTime, Segments segments, boolean deviative) throws OperationalPlanException Construct an operational plan with or without a lane change.- Parameters:
gtu- the GTU for debugging purposespath- the path to follow from a certain time till a certain time. The path should have <i>at least</i> the lengthstartTime- the absolute start time when we start executing the pathsegments- the segments that make up the path with an acceleration, constant speed or deceleration profiledeviative- whether the path is not along lane center lines- Throws:
OperationalPlanException- when the path is too short for the operation
-
-
Method Details
-
isDeviative
public final boolean isDeviative()Check if we deviate from the center line.- Returns:
- whether this maneuver involves deviation from the center line.
-
toString
- Overrides:
toStringin classOperationalPlan
-