Uses of Interface
org.opentrafficsim.road.gtu.lane.perception.PerceptionCollectable
Package
Description
Classes about vehicle control, including ACC and CACC.
Implementation of lane-based perception for the GTU.
Categories define a set of perceivable information.
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 PerceptionCollectable 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 PerceptionCollectable 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
Iterable to find downstream GTU's.
The behavior of this search is slightly altered usingboolean ignoreIfUpstream
.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.class
PerceptionCollectableFiltered<H extends Headway,
U> Wraps aPerceptionCollectable
and only iterates over all objects that are accepted by a predicate.class
Iterable to find upstream GTU's.ModifierConstructorDescriptionPerceptionCollectableFiltered
(PerceptionCollectable<H, U> collectable, Predicate<H> predicate) Constructor. -
Uses of PerceptionCollectable in org.opentrafficsim.road.gtu.lane.perception.categories
Modifier and TypeMethodDescriptionDirectBusStopPerception.computeBusStops()
Returns bus stops.BusStopPerception.getBusStops()
Returns the bus stops.DirectBusStopPerception.getBusStops()
Returns the bus stops.DirectIntersectionPerception.getConflicts
(RelativeLane lane) Returns a set of conflicts along the route.IntersectionPerception.getConflicts
(RelativeLane lane) Returns a set of conflicts along the route.DirectIntersectionPerception.getTrafficLights
(RelativeLane lane) Returns a set of traffic lights along the route.IntersectionPerception.getTrafficLights
(RelativeLane lane) Returns a set of traffic lights along the route. -
Uses of PerceptionCollectable in org.opentrafficsim.road.gtu.lane.perception.categories.neighbors
Modifier and TypeMethodDescriptionDirectNeighborsPerception.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 PerceptionCollectable in org.opentrafficsim.road.gtu.lane.perception.headway
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 PerceptionCollectable in org.opentrafficsim.road.gtu.lane.tactical.util
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 PerceptionCollectable 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. -
Uses of PerceptionCollectable 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.