Interface TacticalContext

All Superinterfaces:
Identifiable
All Known Subinterfaces:
PerceivedGtu
All Known Implementing Classes:
PerceivedGtuBase, PerceivedGtuSimple, TacticalContextEgo

public interface TacticalContext extends Identifiable
Provides bundled and easy-access information that tactical models and their components need regarding the ego-vehicle or a perceived GTU.

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

    • getGtuType

      GtuType getGtuType()
      Returns the GTU type.
      Returns:
      GTU type
    • getParameters

      Parameters getParameters()
      Returns the parameters.
      Returns:
      parameters
    • getCarFollowingModel

      CarFollowingModel getCarFollowingModel()
      Returns the car-following model.
      Returns:
      car-following model
    • getSpeedLimits

      SpeedLimits getSpeedLimits()
      Returns the speed limits at the current location.
      Returns:
      speed limits
    • getDesiredSpeed

      org.djunits.value.vdouble.scalar.Speed getDesiredSpeed() throws ParameterException
      Returns the desired speed from the car-following model.
      Returns:
      desired speed from the car-following model
      Throws:
      ParameterException - if a parameter is not present
    • getRoute

      Optional<Route> getRoute()
      Returns the route.
      Returns:
      route
    • getLaneChangeDirection

      LateralDirectionality getLaneChangeDirection()
      Returns the lane change direction.
      Returns:
      lane change direction
    • getLength

      org.djunits.value.vdouble.scalar.Length getLength()
      Return ego length.
      Returns:
      ego length
    • getWidth

      org.djunits.value.vdouble.scalar.Length getWidth()
      Return ego width.
      Returns:
      ego width
    • getSpeed

      org.djunits.value.vdouble.scalar.Speed getSpeed()
      Return ego speed.
      Returns:
      ego speed
    • getMaximumSpeed

      org.djunits.value.vdouble.scalar.Speed getMaximumSpeed()
      Returns the maximum seed.
      Returns:
      maximum speed
    • getAcceleration

      org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
      Return ego acceleration.
      Returns:
      ego acceleration