View Javadoc
1   package org.opentrafficsim.road.network.speed;
2   
3   /**
4    * Speed limit for an instantaneous context of a single GTU. Two speed limits are included to capture nuances in adherence
5    * behavior. For example, normally trucks may drive 80-90km/h based on a vehicle type speed limit of 80km/h on any road with a
6    * speed limit higher than 80km/h. But on roads with lower speed limits adherence can be more strict. Although a truck driver
7    * could drive 85km/h (5km/h faster than the GTU type limit) on a freeway with a speed limit of 100km/h, on a road with a speed
8    * limit of 60km/h the truck driver may adhere to that fully. For a truck driver with low GTU type speed limit adherence (e.g.
9    * 95km/h), an enforced lane-level speed limit of 90km/h can be more constraining.
10   * <p>
11   * Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
13   * </p>
14   * @author Wouter Schakel
15   * @param laneSpeedLimit lane-level speed limit, may be {@code null}
16   * @param gtuTypeSpeedLimit GTU type level speed limit, may be {@code null}
17   */
18  public record SpeedLimits(SpeedLimit laneSpeedLimit, SpeedLimit gtuTypeSpeedLimit)
19  {
20  }