Interface TacticalContext
- All Superinterfaces:
Identifiable
- All Known Subinterfaces:
PerceivedGtu
- All Known Implementing Classes:
PerceivedGtuBase,PerceivedGtuSimple,TacticalContextEgo
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 Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.AccelerationReturn ego acceleration.Returns the car-following model.org.djunits.value.vdouble.scalar.SpeedReturns the desired speed from the car-following model.Returns the GTU type.Returns the lane change direction.org.djunits.value.vdouble.scalar.LengthReturn ego length.org.djunits.value.vdouble.scalar.SpeedReturns the maximum seed.Returns the parameters.getRoute()Returns the route.org.djunits.value.vdouble.scalar.SpeedgetSpeed()Return ego speed.Returns the speed limits at the current location.org.djunits.value.vdouble.scalar.LengthgetWidth()Return ego width.Methods inherited from interface org.djutils.base.Identifiable
getId
-
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
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
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
-