Uses of Interface
org.opentrafficsim.road.gtu.lane.perception.headway.Headway
Package
Description
Implementation of lane-based perception for the GTU.
Categories define a set of perceivable information.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
Specific operational plan method for road-vehicles operating in a lane-based network.
Classes that deal with lane changing models.
GTU (Car) following models such as IDM+.
Classes that deal with lane changing models.
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.
-
Uses of Headway in org.opentrafficsim.road.gtu.lane.perception
Modifier and TypeClassDescriptionclass
AbstractPerceptionIterable<H extends Headway,
U, C> Abstract iterable that figures out how to find the next nearest object, including splits.class
AbstractPerceptionReiterable<H extends Headway,
U> This class uses a single primary iterator which a subclass defines, and makes sure that all elements are only looked up and created once.class
FilteredIterable<T extends Headway>
Returns only those elements that comply with the predicate.class
LaneBasedObjectIterable<H extends Headway,
L extends LaneBasedObject> Iterable that searches downstream or upstream for a certain type of lane based object.class
MultiLanePerceptionIterable<H extends Headway,
U> Iterable class to search over multiple lanes.interface
PerceptionCollectable<H extends Headway,
U> Iterable that additionally provides support for PerceptionCollectors.class
PerceptionCollectableFiltered<H extends Headway,
U> Wraps aPerceptionCollectable
and only iterates over all objects that are accepted by a predicate.interface
PerceptionIterable<H extends Headway>
Iterable set of elements, sorted close to far.class
PerceptionIterableSet<H extends Headway>
Simple implementation ofPerceptionIterable
which wraps a set. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.perception.categories
Modifier and TypeMethodDescriptionDefaultSimplePerception.getBackwardHeadway()
final Headway
DirectDefaultSimplePerception.getBackwardHeadway()
DefaultSimplePerception.getForwardHeadwayGtu()
final Headway
DirectDefaultSimplePerception.getForwardHeadwayGtu()
DefaultSimplePerception.getForwardHeadwayObject()
final Headway
DirectDefaultSimplePerception.getForwardHeadwayObject()
Modifier and TypeMethodDescriptionDefaultSimplePerception.getNeighboringHeadways
(LateralDirectionality lateralDirection) final Collection<Headway>
DirectDefaultSimplePerception.getNeighboringHeadways
(LateralDirectionality lateralDirection) DefaultSimplePerception.getNeighboringHeadwaysLeft()
final Collection<Headway>
DirectDefaultSimplePerception.getNeighboringHeadwaysLeft()
DefaultSimplePerception.getNeighboringHeadwaysRight()
final Collection<Headway>
DirectDefaultSimplePerception.getNeighboringHeadwaysRight()
DefaultSimplePerception.getParallelHeadways
(LateralDirectionality lateralDirection) final Collection<Headway>
DirectDefaultSimplePerception.getParallelHeadways
(LateralDirectionality lateralDirection) DefaultSimplePerception.getParallelHeadwaysLeft()
final Collection<Headway>
DirectDefaultSimplePerception.getParallelHeadwaysLeft()
DefaultSimplePerception.getParallelHeadwaysRight()
final Collection<Headway>
DirectDefaultSimplePerception.getParallelHeadwaysRight()
final org.opentrafficsim.base.TimeStampedObject<Headway>
DirectDefaultSimplePerception.getTimeStampedBackwardHeadway()
final org.opentrafficsim.base.TimeStampedObject<Headway>
DirectDefaultSimplePerception.getTimeStampedForwardHeadwayGtu()
final org.opentrafficsim.base.TimeStampedObject<Headway>
DirectDefaultSimplePerception.getTimeStampedForwardHeadwayObject()
final org.opentrafficsim.base.TimeStampedObject<Collection<Headway>>
DirectDefaultSimplePerception.getTimeStampedNeighboringHeadways
(LateralDirectionality lateralDirection) final org.opentrafficsim.base.TimeStampedObject<Collection<Headway>>
DirectDefaultSimplePerception.getTimeStampedNeighboringHeadwaysLeft()
final org.opentrafficsim.base.TimeStampedObject<Collection<Headway>>
DirectDefaultSimplePerception.getTimeStampedNeighboringHeadwaysRight()
final org.opentrafficsim.base.TimeStampedObject<Collection<Headway>>
DirectDefaultSimplePerception.getTimeStampedParallelHeadways
(LateralDirectionality lateralDirection) final org.opentrafficsim.base.TimeStampedObject<Collection<Headway>>
DirectDefaultSimplePerception.getTimeStampedParallelHeadwaysLeft()
final org.opentrafficsim.base.TimeStampedObject<Collection<Headway>>
DirectDefaultSimplePerception.getTimeStampedParallelHeadwaysRight()
-
Uses of Headway in org.opentrafficsim.road.gtu.lane.perception.headway
Modifier and TypeInterfaceDescriptioninterface
Interface for perceived surrounding GTU's.interface
Headway of a lane-based object.Modifier and TypeClassDescriptionclass
Super class for non-delayed and non-erroneous perception.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
Lane based object headway with constructors for stationary information.class
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.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 headway with just a distance, without any further information about the object; it assumes a speed of 0 at the headway, so it also good to store information about a lane drop.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.class
Container for a reference to information about a (lane based) object and a headway.final 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) traffic light and a headway to the traffic light. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.plan.operational
Modifier and TypeMethodDescriptionboolean
LaneChange.checkRoom
(LaneBasedGtu gtu, Headway headway) Checks whether the given GTU has sufficient space relative to aHeadway
. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.tactical.directedlanechange
Modifier and TypeMethodDescriptionfinal DirectedLaneMovementStep
AbstractDirectedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, LateralDirectionality direction, Collection<Headway> sameLaneGTUs, Collection<Headway> otherLaneGTUs, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Duration laneChangeTime) Compute the acceleration and lane change.final DirectedLaneMovementStep
DirectedFixedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, LateralDirectionality direction, Collection<Headway> sameLaneTraffic, Collection<Headway> otherLaneTraffic, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Duration laneChangeTime) Compute the acceleration and lane change.DirectedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, LateralDirectionality direction, Collection<Headway> sameLaneTraffic, Collection<Headway> otherLaneTraffic, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Duration laneChangeTime) Compute the acceleration and lane change. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.tactical.following
Modifier and TypeMethodDescriptionprotected abstract org.djunits.value.vdouble.scalar.Acceleration
AbstractIdm.combineInteractionTerm
(org.djunits.value.vdouble.scalar.Acceleration aFree, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Combines an interaction term with the free term.protected final org.djunits.value.vdouble.scalar.Acceleration
Idm.combineInteractionTerm
(org.djunits.value.vdouble.scalar.Acceleration aFree, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Combines an interaction term with the free term.protected final org.djunits.value.vdouble.scalar.Acceleration
IdmPlus.combineInteractionTerm
(org.djunits.value.vdouble.scalar.Acceleration aFree, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Combines an interaction term with the free term.protected final org.djunits.value.vdouble.scalar.Acceleration
IdmPlusMulti.combineInteractionTerm
(org.djunits.value.vdouble.scalar.Acceleration aFree, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Combines an interaction term with the free term.final DualAccelerationStep
AbstractGtuFollowingModelMobil.computeDualAccelerationStep
(LaneBasedGtu referenceGTU, Collection<Headway> otherGTUs, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.final DualAccelerationStep
AbstractGtuFollowingModelMobil.computeDualAccelerationStep
(LaneBasedGtu referenceGTU, Collection<Headway> otherHeadways, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.GtuFollowingModelOld.computeDualAccelerationStep
(LaneBasedGtu gtu, Collection<Headway> otherHeadways, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.GtuFollowingModelOld.computeDualAccelerationStep
(LaneBasedGtu gtu, Collection<Headway> otherHeadways, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.protected abstract org.djunits.value.vdouble.scalar.Acceleration
AbstractCarFollowingModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
AbstractCarFollowingModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.protected org.djunits.value.vdouble.scalar.Acceleration
AbstractIdm.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.org.djunits.value.vdouble.scalar.Acceleration
CarFollowingModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
FixedAccelerationModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
IdmOld.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
IdmPlusOld.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
SequentialFixedAccelerationModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.tactical.lanechangemobil
Modifier and TypeMethodDescriptionfinal LaneMovementStep
AbstractLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, Collection<Headway> sameLaneGTUs, Collection<Headway> preferredLaneGTUs, Collection<Headway> nonPreferredLaneGTUs, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration preferredLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Acceleration nonPreferredLaneRouteIncentive) Compute the acceleration and lane change.final LaneMovementStep
FixedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, Collection<Headway> sameLaneTraffic, Collection<Headway> rightLaneTraffic, Collection<Headway> leftLaneTraffic, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration preferredLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Acceleration nonPreferredLaneRouteIncentive) Compute the acceleration and lane change.LaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, Collection<Headway> sameLaneTraffic, Collection<Headway> rightLaneTraffic, Collection<Headway> leftLaneTraffic, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration preferredLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Acceleration nonPreferredLaneRouteIncentive) Compute the acceleration and lane change. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.tactical.toledo
Modifier and TypeMethodDescriptionprotected final org.djunits.value.vdouble.scalar.Acceleration
ToledoCarFollowing.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.tactical.util
Modifier and TypeClassDescriptionstatic class
Simple headway implementation for minimum car-following information. -
Uses of Headway in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs
Modifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.Length
Synchronization.headwayWithLcSpace
(Headway headway, org.opentrafficsim.base.parameters.Parameters parameters, LaneChange laneChange) Returns a headway (length) to allow space to perform a lane change at low speeds.