Uses of Interface
org.opentrafficsim.road.gtu.lane.perception.headway.HeadwayGtu
Packages that use HeadwayGtu
Package
Description
Generate GTUs according to some prescription.
Classes about vehicle control, including ACC and CACC.
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
Method parameters in org.opentrafficsim.road.gtu.generator with type arguments of type HeadwayGtuModifier and TypeMethodDescriptionCfRoomChecker.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) 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) -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.control
Method parameters in org.opentrafficsim.road.gtu.lane.control with type arguments of type HeadwayGtuModifier 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) 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) org.djunits.value.vdouble.scalar.Acceleration
LinearCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) org.djunits.value.vdouble.scalar.Acceleration
PloegAcc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) org.djunits.value.vdouble.scalar.Acceleration
PloegCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) -
Uses of HeadwayGtu in org.opentrafficsim.road.gtu.lane.perception.categories.neighbors
Methods in org.opentrafficsim.road.gtu.lane.perception.categories.neighbors that return HeadwayGtuModifier and TypeMethodDescriptionDefaultCaccSensors.createDownstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) 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) default HeadwayGtu
HeadwayGtuType.createHeadwayGtu
(LaneBasedGtu perceivingGtu, LaneBasedObject reference, 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, LaneBasedObject reference, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) 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) 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) DefaultCaccSensors.createUpstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) 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) Methods in org.opentrafficsim.road.gtu.lane.perception.categories.neighbors that return types with arguments of type HeadwayGtuModifier and TypeMethodDescriptionfinal SortedSet<HeadwayGtu>
DirectNeighborsPerception.getFirstFollowers
(LateralDirectionality lat) 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) 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) 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()
DirectNeighborsPerception.getLeaders
(RelativeLane lane) 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
Classes in org.opentrafficsim.road.gtu.lane.perception.headway that implement HeadwayGtuModifier 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.Methods in org.opentrafficsim.road.gtu.lane.perception.headway that return HeadwayGtuModifier 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.Methods in org.opentrafficsim.road.gtu.lane.perception.headway that return types with arguments of type HeadwayGtuModifier 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.Constructor parameters in org.opentrafficsim.road.gtu.lane.perception.headway with type arguments of type HeadwayGtuModifierConstructorDescriptionHeadwayConflict
(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
Methods in org.opentrafficsim.road.gtu.lane.tactical.util with parameters of type HeadwayGtuModifier 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.Method parameters in org.opentrafficsim.road.gtu.lane.tactical.util with type arguments of type HeadwayGtuModifier 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
Methods in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs that return HeadwayGtuModifier 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.Methods in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs with parameters of type HeadwayGtuModifier 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.Method parameters in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs with type arguments of type HeadwayGtuModifier 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
Methods in org.opentrafficsim.road.network.lane.conflict that return types with arguments of type HeadwayGtuModifier 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.