Class LaneChangeNotAllowedUtil

java.lang.Object
org.opentrafficsim.road.gtu.tactical.util.LaneChangeNotAllowedUtil

public final class LaneChangeNotAllowedUtil extends Object
This class overrules the lane change decision in a SimpleOperationalPlan if the GTU does not allow a lane change. This can be the case for a short while after vehicle generation to prevent generation artifacts and exceptions.

Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Method Details

    • preventLaneChange

      public static SimpleOperationalPlan preventLaneChange(TacticalContextEgo context, SimpleOperationalPlan plan)
      Adjusts the simple operational plan to deal with lane changes that are not allowed.
      Parameters:
      context - tactical information such as parameters and car-following model
      plan - simple operational plan
      Returns:
      adjusted simple operational plan to deal with lane changes that are not allowed