Uses of Interface
org.opentrafficsim.road.gtu.lane.perception.headway.HeadwayGtu
Package
Description
Generate GTUs according to some prescription.
Classes about vehicle control, including ACC and CACC.
Implementation of lane-based perception for the GTU.
Contains perception categories to perceive neighbors.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
Static methods for composition in tactical planners.
LMRS (Lane change Model with Relaxation and Synchronization) utilities for tactical planner.
Contains classes describing intersection conflicts.
-
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.generator
Modifier and TypeMethodDescriptionCfRoomChecker.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.Injections.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Returns placement for injected GTUs, as used byLaneBasedGtuGenerator
.LaneBasedGtuGenerator.RoomChecker.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.TtcRoomChecker.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics. -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.control
Modifier and TypeMethodDescriptionabstract org.djunits.value.vdouble.scalar.Acceleration
AbstractActuatedControl.getDesiredAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the desired acceleration from the longitudinal control.final org.djunits.value.vdouble.scalar.Acceleration
AbstractLinearFreeControl.getDesiredAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the desired acceleration from the longitudinal control.abstract org.djunits.value.vdouble.scalar.Acceleration
AbstractLinearFreeControl.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
LinearAcc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
LinearCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
PloegAcc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
PloegCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control. -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.perception
Modifier and TypeMethodDescriptionDownstreamNeighborsIterable.perceive
(LaneBasedGtu perceivingGtu, LaneBasedGtu object, org.djunits.value.vdouble.scalar.Length distance) Returns a perceived version of the underlying object.UpstreamNeighborsIterable.perceive
(LaneBasedGtu perceivingGtu, LaneBasedGtu object, org.djunits.value.vdouble.scalar.Length distance) Returns a perceived version of the underlying object. -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.perception.categories.neighbors
Modifier and TypeMethodDescriptionDefaultCaccSensors.createDownstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.createDownstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.PerceivedHeadwayGtuType.createDownstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.default HeadwayGtu
HeadwayGtuType.createHeadwayGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) Creates a headway object from a GTU, downstream or upstream.HeadwayGtuType.PerceivedHeadwayGtuType.createHeadwayGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) Creates a headway object from a GTU, downstream or upstream.DefaultCaccSensors.createParallelGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) Creates a headway object from a GTU, parallel.HeadwayGtuType.createParallelGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) Creates a headway object from a GTU, parallel.HeadwayGtuType.PerceivedHeadwayGtuType.createParallelGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) Creates a headway object from a GTU, parallel.DefaultCaccSensors.createUpstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.createUpstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.PerceivedHeadwayGtuType.createUpstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.Modifier and TypeMethodDescriptionfinal SortedSet<HeadwayGtu>
DirectNeighborsPerception.getFirstFollowers
(LateralDirectionality lat) Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate GTU.NeighborsPerception.getFirstFollowers
(LateralDirectionality lat) Set of followers on a lane, which is usually 0 or 1, but possibly more in case of an upstream merge with no intermediate GTU.final SortedSet<HeadwayGtu>
DirectNeighborsPerception.getFirstLeaders
(LateralDirectionality lat) Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate GTU.NeighborsPerception.getFirstLeaders
(LateralDirectionality lat) Set of leaders on a lane, which is usually 0 or 1, but possibly more in case of a downstream split with no intermediate GTU.DirectNeighborsPerception.getFollowers
(RelativeLane lane) Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.NeighborsPerception.getFollowers
(RelativeLane lane) Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.CaccPerception.getLeaders()
Returns the leaders.DirectNeighborsPerception.getLeaders
(RelativeLane lane) Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.LongitudinalControllerPerception.getLeaders()
Returns the leaders.NeighborsPerception.getLeaders
(RelativeLane lane) Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT. -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.perception.headway
Modifier and TypeClassDescriptionclass
Container for a reference to information about a (lane based) GTU and a headway.class
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.class
Container for a reference to information about a (lane based) GTU and a headway.class
Container for a reference to information about a (lane based) GTU and a headway.class
Container for a reference to information about a (lane based) GTU and a headway.class
Container for a reference to information about a (lane based) GTU and a headway.Modifier and TypeMethodDescriptionHeadwayGtu.moved
(org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) Creates a copy with different headway, speed and possibly acceleration.final HeadwayGtu
HeadwayGtuReal.moved
(org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) Creates a copy with different headway, speed and possibly acceleration.Modifier and TypeMethodDescriptionHeadwayConflict.getDownstreamConflictingGTUs()
Returns a set of conflicting GTU's downstream of the start of the conflict ordered close to far from the conflict.HeadwayConflict.getUpstreamConflictingGTUs()
Returns a set of conflicting GTU's upstream of the start of the conflict ordered close to far from the conflict.ModifierConstructorDescriptionHeadwayConflict
(ConflictType conflictType, ConflictPriority conflictPriority, Class<? extends ConflictRule> conflictRuleType, String id, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length conflictingLength, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> upstreamConflictingGTUs, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> downstreamConflictingGTUs, org.djunits.value.vdouble.scalar.Length conflictingVisibility, org.djunits.value.vdouble.scalar.Speed conflictingSpeedLimit, CrossSectionLink conflictingLink, HeadwayConflict.Width width, HeadwayStopLine stopLine, HeadwayStopLine conflictingStopLine, Lane lane) Constructor.HeadwayConflict
(ConflictType conflictType, ConflictPriority conflictPriority, Class<? extends ConflictRule> conflictRuleType, String id, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length conflictingLength, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> upstreamConflictingGTUs, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> downstreamConflictingGTUs, org.djunits.value.vdouble.scalar.Length conflictingVisibility, org.djunits.value.vdouble.scalar.Speed conflictingSpeedLimit, CrossSectionLink conflictingLink, HeadwayConflict.Width width, Lane lane) Constructor without stop lines. -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.tactical.util
Modifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.Acceleration
CarFollowingUtil.followSingleLeader
(CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, HeadwayGtu leader) Follow a set of headway GTUs.Modifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.Acceleration
ConflictUtil.approachConflicts
(org.opentrafficsim.base.parameters.Parameters parameters, Iterable<HeadwayConflict> conflicts, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Length vehicleLength, org.djunits.value.vdouble.scalar.Length vehicleWidth, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, SpeedLimitInfo speedLimitInfo, ConflictUtil.ConflictPlans conflictPlans, LaneBasedGtu gtu, RelativeLane lane) Approach conflicts by applying appropriate acceleration (or deceleration).static boolean
ConflictUtil.stopForGiveWayConflict
(HeadwayConflict conflict, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.ParameterTypeAcceleration bType, org.djunits.value.vdouble.scalar.Length prevEnd) Approach a give-way conflict.static boolean
ConflictUtil.stopForPriorityConflict
(HeadwayConflict conflict, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Length prevEnd) Approach a priority conflict.static boolean
ConflictUtil.stopForStopConflict
(HeadwayConflict conflict, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.ParameterTypeAcceleration bType, org.djunits.value.vdouble.scalar.Length prevEnd) Approach a stop conflict. -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs
Modifier and TypeMethodDescriptionstatic HeadwayGtu
Synchronization.getFollower
(HeadwayGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, HeadwayGtu follower, org.djunits.value.vdouble.scalar.Length ownLength) Returns the upstream gtu of the given gtu.(package private) HeadwayGtu
LmrsData.getSyncVehicle
(PerceptionCollectable<HeadwayGtu, LaneBasedGtu> adjLeaders) Returns the gtu from the set that is the current sync vehicle, ornull
of there is no sync vehicle or it is not in the set.static HeadwayGtu
Synchronization.getTargetLeader
(HeadwayGtu gtu, SortedSet<HeadwayGtu> leaders) Returns the leader of one gtu from a set.Modifier and TypeMethodDescriptionstatic boolean
Synchronization.canBeAhead
(HeadwayGtu adjacentVehicle, org.djunits.value.vdouble.scalar.Length xCur, int nCur, org.djunits.value.vdouble.scalar.Speed ownSpeed, org.djunits.value.vdouble.scalar.Length ownLength, org.djunits.value.vdouble.scalar.Speed tagSpeed, double dCoop, org.djunits.value.vdouble.scalar.Acceleration b, org.djunits.value.vdouble.scalar.Duration tMin, org.djunits.value.vdouble.scalar.Duration tMax, org.djunits.value.vdouble.scalar.Length x0, org.djunits.value.vdouble.scalar.Duration t0, org.djunits.value.vdouble.scalar.Duration lc, double desire) Returns whether a driver estimates it can be ahead of an adjacent vehicle for merging.static HeadwayGtu
Synchronization.getFollower
(HeadwayGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, HeadwayGtu follower, org.djunits.value.vdouble.scalar.Length ownLength) Returns the upstream gtu of the given gtu.static HeadwayGtu
Synchronization.getTargetLeader
(HeadwayGtu gtu, SortedSet<HeadwayGtu> leaders) Returns the leader of one gtu from a set.(package private) boolean
LmrsData.isNewLeader
(HeadwayGtu gtu) Checks if the given leader is a new leader.(package private) boolean
LmrsData.isSyncVehicle
(HeadwayGtu gtu) Returns whether the provided gtu is the gtu that is synchronized to.(package private) void
LmrsData.setSyncVehicle
(HeadwayGtu gtu) Remembers the gtu that is synchronized to.static org.djunits.value.vdouble.scalar.Acceleration
Synchronization.tagAlongAcceleration
(HeadwayGtu leader, org.djunits.value.vdouble.scalar.Speed followerSpeed, org.djunits.value.vdouble.scalar.Length followerLength, org.djunits.value.vdouble.scalar.Speed tagSpeed, double desire, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm) Calculates acceleration by following an adjacent vehicle, with tagging along if desire is not very high and speed is low.Modifier and TypeMethodDescriptionstatic HeadwayGtu
Synchronization.getFollower
(HeadwayGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, HeadwayGtu follower, org.djunits.value.vdouble.scalar.Length ownLength) Returns the upstream gtu of the given gtu.(package private) HeadwayGtu
LmrsData.getSyncVehicle
(PerceptionCollectable<HeadwayGtu, LaneBasedGtu> adjLeaders) Returns the gtu from the set that is the current sync vehicle, ornull
of there is no sync vehicle or it is not in the set.static HeadwayGtu
Synchronization.getTargetLeader
(HeadwayGtu gtu, SortedSet<HeadwayGtu> leaders) Returns the leader of one gtu from a set. -
Uses of HeadwayGtu in org.opentrafficsim.road.network.lane.conflict
Modifier and TypeMethodDescriptionConflict.getDownstreamGtus
(LaneBasedGtu perceivingGtu, HeadwayGtuType headwayGtuType, org.djunits.value.vdouble.scalar.Length visibility) Provides the downstream GTUs.Conflict.getUpstreamGtus
(LaneBasedGtu perceivingGtu, HeadwayGtuType headwayGtuType, org.djunits.value.vdouble.scalar.Length visibility) Provides the upstream GTUs.