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.
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
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) 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
Method parameters in org.opentrafficsim.road.gtu.lane.control with type arguments of type HeadwayGtuModifier and TypeMethodDescriptionabstract org.djunits.value.vdouble.scalar.AccelerationAbstractActuatedControl.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.AccelerationAbstractLinearFreeControl.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.AccelerationAbstractLinearFreeControl.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.AccelerationLinearAcc.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.AccelerationLinearCacc.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.AccelerationPloegAcc.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.AccelerationPloegCacc.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
Methods in org.opentrafficsim.road.gtu.lane.perception that return HeadwayGtuModifier 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
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) 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 HeadwayGtuHeadwayGtuType.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.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) 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
Classes in org.opentrafficsim.road.gtu.lane.perception.headway that implement HeadwayGtuModifier and TypeClassDescriptionclassContainer for a reference to information about a (lane based) GTU and a headway.classCopyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.classContainer for a reference to information about a (lane based) GTU and a headway.classContainer for a reference to information about a (lane based) GTU and a headway.classContainer for a reference to information about a (lane based) GTU and a headway.classContainer 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 HeadwayGtuHeadwayGtuReal.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.AccelerationCarFollowingUtil.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.AccelerationConflictUtil.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 booleanConflictUtil.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 booleanConflictUtil.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 booleanConflictUtil.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 HeadwayGtuSynchronization.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) HeadwayGtuLmrsData.getSyncVehicle(PerceptionCollectable<HeadwayGtu, LaneBasedGtu> adjLeaders) Returns the gtu from the set that is the current sync vehicle, ornullof there is no sync vehicle or it is not in the set.static HeadwayGtuSynchronization.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 booleanSynchronization.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 HeadwayGtuSynchronization.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 HeadwayGtuSynchronization.getTargetLeader(HeadwayGtu gtu, SortedSet<HeadwayGtu> leaders) Returns the leader of one gtu from a set.(package private) booleanLmrsData.isNewLeader(HeadwayGtu gtu) Checks if the given leader is a new leader.(package private) booleanLmrsData.isSyncVehicle(HeadwayGtu gtu) Returns whether the provided gtu is the gtu that is synchronized to.(package private) voidLmrsData.setSyncVehicle(HeadwayGtu gtu) Remembers the gtu that is synchronized to.static org.djunits.value.vdouble.scalar.AccelerationSynchronization.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 HeadwayGtuSynchronization.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) HeadwayGtuLmrsData.getSyncVehicle(PerceptionCollectable<HeadwayGtu, LaneBasedGtu> adjLeaders) Returns the gtu from the set that is the current sync vehicle, ornullof there is no sync vehicle or it is not in the set.static HeadwayGtuSynchronization.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.