Interface PerceivedGtu
- All Superinterfaces:
Comparable<PerceivedObject>,Identifiable,PerceivedObject,TacticalContext
- All Known Implementing Classes:
PerceivedGtuBase,PerceivedGtuSimple
Interface for perceived surrounding GTU's, adding signals, maneuver and behavioral information.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInformation on the behavior.static interfaceInformation on the maneuver.static interfaceSignal information.Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.perception.object.PerceivedObject
PerceivedObject.Kinematics, PerceivedObject.ObjectType -
Method Summary
Modifier and TypeMethodDescriptiondefault org.djunits.value.vdouble.scalar.AccelerationReturns the acceleration from the kinematics.Returns information on the behavior.default CarFollowingModelReturns the car-following model.default org.djunits.value.vdouble.scalar.SpeedReturns the desired speed from the car-following model.default LateralDirectionalityReturns the lane change direction.Returns information on the maneuver.default org.djunits.value.vdouble.scalar.SpeedReturns the maximum seed.default ParametersReturns the parameters.getRoute()Returns the route.Returns information on the signals.default org.djunits.value.vdouble.scalar.SpeedgetSpeed()Returns the speed from the kinematics.default SpeedLimitsReturns the speed limits at the current location.default PerceivedGtumoved(org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) Returns a view of this perceived headway GTU that returns different values for the headway, speed and acceleration.static PerceivedGtuof(LaneBasedGtu gtu, PerceivedObject.Kinematics kinematics) Returns perceived GTU with given kinematics.static PerceivedGtuof(LaneBasedGtu gtu, PerceivedObject.Kinematics kinematics, org.djunits.value.vdouble.scalar.Duration time) Returns perceived GTU at the given time with given kinematics.Methods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.road.gtu.perception.object.PerceivedObject
compareTo, getDistance, getKinematics, getLength, getObjectTypeMethods inherited from interface org.opentrafficsim.road.gtu.tactical.TacticalContext
getGtuType, getLength, getWidth
-
Method Details
-
getSignals
PerceivedGtu.Signals getSignals()Returns information on the signals. This includes indicators and braking lights.- Returns:
- information on the signals
-
getManeuver
PerceivedGtu.Maneuver getManeuver()Returns information on the maneuver. This includes lane changing and lateral deviation.- Returns:
- information on the maneuver
-
getBehavior
PerceivedGtu.Behavior getBehavior()Returns information on the behavior. This includes the car-following model, parameters, desired speed, route, lane change desire and social pressure.- Returns:
- information on the behavior
-
getSpeed
default org.djunits.value.vdouble.scalar.Speed getSpeed()Description copied from interface:PerceivedObjectReturns the speed from the kinematics.- Specified by:
getSpeedin interfacePerceivedObject- Specified by:
getSpeedin interfaceTacticalContext- Returns:
- the speed from the kinematics
-
getAcceleration
default org.djunits.value.vdouble.scalar.Acceleration getAcceleration()Description copied from interface:PerceivedObjectReturns the acceleration from the kinematics.- Specified by:
getAccelerationin interfacePerceivedObject- Specified by:
getAccelerationin interfaceTacticalContext- Returns:
- the acceleration from the kinematics
-
getParameters
Description copied from interface:TacticalContextReturns the parameters.- Specified by:
getParametersin interfaceTacticalContext- Returns:
- parameters
-
getCarFollowingModel
Description copied from interface:TacticalContextReturns the car-following model.- Specified by:
getCarFollowingModelin interfaceTacticalContext- Returns:
- car-following model
-
getSpeedLimits
Description copied from interface:TacticalContextReturns the speed limits at the current location.- Specified by:
getSpeedLimitsin interfaceTacticalContext- Returns:
- speed limits
-
getMaximumSpeed
default org.djunits.value.vdouble.scalar.Speed getMaximumSpeed()Description copied from interface:TacticalContextReturns the maximum seed.- Specified by:
getMaximumSpeedin interfaceTacticalContext- Returns:
- maximum speed
-
getDesiredSpeed
default org.djunits.value.vdouble.scalar.Speed getDesiredSpeed()Description copied from interface:TacticalContextReturns the desired speed from the car-following model.- Specified by:
getDesiredSpeedin interfaceTacticalContext- Returns:
- desired speed from the car-following model
-
getRoute
Description copied from interface:TacticalContextReturns the route.- Specified by:
getRoutein interfaceTacticalContext- Returns:
- route
-
getLaneChangeDirection
Description copied from interface:TacticalContextReturns the lane change direction.- Specified by:
getLaneChangeDirectionin interfaceTacticalContext- Returns:
- lane change direction
-
moved
default PerceivedGtu moved(org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) Returns a view of this perceived headway GTU that returns different values for the headway, speed and acceleration.- Parameters:
headway- headwayspeed- speedacceleration- acceleration- Returns:
- copy with different headway, speed and acceleration
- Throws:
NullPointerException- when any input argument isnullIllegalStateException- when this perceived GTU is parallel
-
of
Returns perceived GTU with given kinematics.- Parameters:
gtu- GTU that is perceivedkinematics- kinematics for the vehicle- Returns:
- perceived view of the GTU
- Throws:
NullPointerException- whengtuis null
-
of
static PerceivedGtu of(LaneBasedGtu gtu, PerceivedObject.Kinematics kinematics, org.djunits.value.vdouble.scalar.Duration time) Returns perceived GTU at the given time with given kinematics.- Parameters:
gtu- GTU that is perceivedkinematics- kinematics for the vehicletime- simulation time at which the GTU is perceived- Returns:
- perceived view of the GTU
- Throws:
NullPointerException- whengtuis null
-