Class SpeedBump

All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, Identifiable, EventProducer, OtsShape, LocatedObject, LaneBasedObject

public class SpeedBump extends AbstractLaneBasedObject
Speed bump. A speed plateau should be represented as two speed bumps as the location is infinitesimal.

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
  • Constructor Details

    • SpeedBump

      public SpeedBump(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, Map<GtuType,org.djunits.value.vdouble.scalar.Speed> speeds) throws NetworkException
      Constructor.
      Parameters:
      id - id
      lane - lane
      longitudinalPosition - position
      speeds - speeds
      Throws:
      NetworkException - when the position on the lane is out of bounds
  • Method Details

    • getSpeed

      public org.djunits.value.vdouble.scalar.Speed getSpeed(GtuType gtuType)
      Returns the speed for the GTU type, or any of the parent types.
      Parameters:
      gtuType - GTU type
      Returns:
      speed for the GTU type
      Throws:
      OtsRuntimeException - if the speed bump cannot supply any speed for the GTU type