Interface PerceivedGtu
- All Superinterfaces:
Comparable<PerceivedObject>,Identifiable,PerceivedObject
- All Known Implementing Classes:
PerceivedGtuBase,PerceivedGtuSimple
Interface for perceived surrounding GTU's, adding signals, maneuver and behavioral information.
Copyright (c) 2013-2024 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.lane.perception.object.PerceivedObject
PerceivedObject.Kinematics, PerceivedObject.ObjectType -
Method Summary
Modifier and TypeMethodDescriptionReturns information on the behavior.Returns the GTU type.Returns information on the maneuver.Returns information on the signals.getWidth()Returns the width of the GTU.default PerceivedGtumoved(Length headway, Speed speed, 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, 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.lane.perception.object.PerceivedObject
compareTo, getAcceleration, getDistance, getKinematics, getLength, getObjectType, getSpeed
-
Method Details
-
getGtuType
GtuType getGtuType()Returns the GTU type.- Returns:
- gtuType
-
getWidth
Length getWidth()Returns the width of the GTU.- Returns:
- width of the GTU
-
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
-
moved
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
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
-