Uses of Interface
org.opentrafficsim.road.gtu.lane.perception.headway.HeadwayGTU
-
Packages that use HeadwayGTU Package Description org.opentrafficsim.road.gtu.generator Generate GTUs according to some prescription.org.opentrafficsim.road.gtu.lane.control Classes about vehicle control, including ACC and CACC.org.opentrafficsim.road.gtu.lane.perception Implementation of lane-based perception for the GTU.org.opentrafficsim.road.gtu.lane.perception.categories.neighbors Contains perception categories to perceive neighbors.org.opentrafficsim.road.gtu.lane.perception.headway Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.org.opentrafficsim.road.gtu.lane.tactical.util Static methods for composition in tactical planners.org.opentrafficsim.road.gtu.lane.tactical.util.lmrs LMRS (Lane change Model with Relaxation and Synchronization) utilities for tactical planner.org.opentrafficsim.road.network.lane.conflict 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 HeadwayGTU Modifier and Type Method Description LaneBasedGTUGenerator.Placement
CFRoomChecker. canPlace(SortedSet<HeadwayGTU> leaders, LaneBasedGTUCharacteristics characteristics, Duration since, Set<DirectedLanePosition> initialPosition)
Return the maximum safe speed and position for a new GTU with the specified characteristics.LaneBasedGTUGenerator.Placement
LaneBasedGTUGenerator.RoomChecker. canPlace(SortedSet<HeadwayGTU> leaders, LaneBasedGTUCharacteristics characteristics, Duration since, Set<DirectedLanePosition> initialPosition)
Return the maximum safe speed and position for a new GTU with the specified characteristics.LaneBasedGTUGenerator.Placement
TTCRoomChecker. canPlace(SortedSet<HeadwayGTU> leaders, LaneBasedGTUCharacteristics characteristics, Duration since, Set<DirectedLanePosition> 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 HeadwayGTU Modifier and Type Method Description abstract Acceleration
AbstractActuatedControl. getDesiredAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings)
Returns the desired acceleration from the longitudinal control.Acceleration
AbstractLinearFreeControl. getDesiredAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings)
Returns the desired acceleration from the longitudinal control.abstract Acceleration
AbstractLinearFreeControl. getFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings)
Returns the following acceleration of the longitudinal control.Acceleration
LinearACC. getFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings)
Returns the following acceleration of the longitudinal control.Acceleration
LinearCACC. getFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings)
Returns the following acceleration of the longitudinal control.Acceleration
PloegACC. getFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Parameters settings)
Returns the following acceleration of the longitudinal control.Acceleration
PloegCACC. getFollowingAcceleration(LaneBasedGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, 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 HeadwayGTU Modifier and Type Method Description HeadwayGTU
DownstreamNeighborsIterable. perceive(LaneBasedGTU perceivingGtu, LaneBasedGTU object, Length distance)
Returns a perceived version of the underlying object.HeadwayGTU
UpstreamNeighborsIterable. perceive(LaneBasedGTU perceivingGtu, LaneBasedGTU object, 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 HeadwayGTU Modifier and Type Method Description HeadwayGTU
DefaultCaccSensors. createDownstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance)
Creates a headway object from a GTU, downstream.HeadwayGTU
HeadwayGtuType. createDownstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance)
Creates a headway object from a GTU, downstream.HeadwayGTU
HeadwayGtuType.PerceivedHeadwayGtuType. createDownstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance)
Creates a headway object from a GTU, downstream.default HeadwayGTU
HeadwayGtuType. createHeadwayGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance, boolean downstream)
Creates a headway object from a GTU, downstream or upstream.HeadwayGTU
HeadwayGtuType.PerceivedHeadwayGtuType. createHeadwayGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance, boolean downstream)
Creates a headway object from a GTU, downstream or upstream.HeadwayGTU
DefaultCaccSensors. createParallelGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length overlapFront, Length overlap, Length overlapRear)
Creates a headway object from a GTU, parallel.HeadwayGTU
HeadwayGtuType. createParallelGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length overlapFront, Length overlap, Length overlapRear)
Creates a headway object from a GTU, parallel.HeadwayGTU
HeadwayGtuType.PerceivedHeadwayGtuType. createParallelGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length overlapFront, Length overlap, Length overlapRear)
Creates a headway object from a GTU, parallel.HeadwayGTU
DefaultCaccSensors. createUpstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance)
Creates a headway object from a GTU, downstream.HeadwayGTU
HeadwayGtuType. createUpstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance)
Creates a headway object from a GTU, downstream.HeadwayGTU
HeadwayGtuType.PerceivedHeadwayGtuType. createUpstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, 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 HeadwayGTU Modifier and Type Method Description 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.SortedSet<HeadwayGTU>
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.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.SortedSet<HeadwayGTU>
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.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
DirectNeighborsPerception. getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
NeighborsPerception. getFollowers(RelativeLane lane)
Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
AccPerception. getLeaders()
Returns the leaders.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
CaccPerception. getLeaders()
Returns the leaders.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
DirectNeighborsPerception. getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
LongitudinalControllerPerception. getLeaders()
Returns the leaders.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
NeighborsPerception. getLeaders(RelativeLane lane)
Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.static SortedSet<HeadwayGTU>
NeighborsUtil. perceive(SortedSet<NeighborsUtil.DistanceGTU> base, HeadwayGtuType headwayGtuType, LaneBasedGTU perceivingGtu, boolean downstream)
Translation from a set ofDistanceGTU
's, to a sorted set ofHeadwayGTU
's. -
Uses of HeadwayGTU in org.opentrafficsim.road.gtu.lane.perception.headway
Classes in org.opentrafficsim.road.gtu.lane.perception.headway that implement HeadwayGTU Modifier and Type Class Description class
AbstractHeadwayGTU
Container for a reference to information about a (lane based) GTU and a headway.class
HeadwayGTUPerceived
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.class
HeadwayGTUReal
Container for a reference to information about a (lane based) GTU and a headway.class
HeadwayGTURealCopy
Container for a reference to information about a (lane based) GTU and a headway.class
HeadwayGTUSimple
Container for a reference to information about a (lane based) GTU and a headway.class
HeadwayGTUType
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 HeadwayGTU Modifier and Type Method Description HeadwayGTU
HeadwayGTU. moved(Length headway, Speed speed, Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.HeadwayGTU
HeadwayGTUReal. moved(Length headway, Speed speed, 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 HeadwayGTU Modifier and Type Method Description PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
HeadwayConflict. getDownstreamConflictingGTUs()
Returns a set of conflicting GTU's downstream of the start of the conflict ordered close to far from the conflict.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
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 HeadwayGTU Constructor Description HeadwayConflict(ConflictType conflictType, ConflictPriority conflictPriority, Class<? extends ConflictRule> conflictRuleType, String id, Length distance, Length length, Length conflictingLength, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs, Length conflictingVisibility, 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, Length distance, Length length, Length conflictingLength, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs, Length conflictingVisibility, 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 HeadwayGTU Modifier and Type Method Description static Acceleration
CarFollowingUtil. followSingleLeader(CarFollowingModel carFollowingModel, Parameters parameters, 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 HeadwayGTU Modifier and Type Method Description static Acceleration
ConflictUtil. approachConflicts(Parameters parameters, Iterable<HeadwayConflict> conflicts, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, CarFollowingModel carFollowingModel, Length vehicleLength, Length vehicleWidth, Speed speed, 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, Speed speed, Acceleration acceleration, Length vehicleLength, Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, ParameterTypeAcceleration bType, Length prevEnd)
Approach a give-way conflict.static boolean
ConflictUtil. stopForPriorityConflict(HeadwayConflict conflict, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Speed speed, Length vehicleLength, Parameters parameters, Length prevEnd)
Approach a priority conflict.static boolean
ConflictUtil. stopForStopConflict(HeadwayConflict conflict, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Speed speed, Acceleration acceleration, Length vehicleLength, Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, ParameterTypeAcceleration bType, 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 HeadwayGTU Modifier and Type Method Description static HeadwayGTU
Synchronization. getFollower(HeadwayGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, HeadwayGTU follower, 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.Methods in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs that return types with arguments of type HeadwayGTU Modifier and Type Method Description static PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
Synchronization. removeAllUpstreamOfConflicts(PerceptionCollectable<HeadwayGTU,LaneBasedGTU> set, LanePerception perception, RelativeLane relativeLane)
Removes all GTUs from the set, that are found upstream on the conflicting lane of a conflict in the current lane.Methods in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs with parameters of type HeadwayGTU Modifier and Type Method Description static boolean
Synchronization. canBeAhead(HeadwayGTU adjacentVehicle, Length xCur, int nCur, Speed ownSpeed, Length ownLength, Speed tagSpeed, double dCoop, Acceleration b, Duration tMin, Duration tMax, Length x0, Duration t0, 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, 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.static Acceleration
Synchronization. tagAlongAcceleration(HeadwayGTU leader, Speed followerSpeed, Length followerLength, Speed tagSpeed, double desire, 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 HeadwayGTU Modifier and Type Method Description static HeadwayGTU
Synchronization. getFollower(HeadwayGTU gtu, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, HeadwayGTU follower, 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.static PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
Synchronization. removeAllUpstreamOfConflicts(PerceptionCollectable<HeadwayGTU,LaneBasedGTU> set, LanePerception perception, RelativeLane relativeLane)
Removes all GTUs from the set, that are found upstream on the conflicting lane of a conflict in the current lane. -
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 HeadwayGTU Modifier and Type Method Description PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
Conflict. getDownstreamGtus(LaneBasedGTU perceivingGtu, HeadwayGtuType headwayGtuType, Length visibility)
Provides the downstream GTUs.PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
Conflict. getUpstreamGtus(LaneBasedGTU perceivingGtu, HeadwayGtuType headwayGtuType, Length visibility)
Provides the upstream GTUs.
-