Uses of Class
org.opentrafficsim.road.gtu.lane.perception.RelativeLane
Package
Description
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.
The lane structure provides a way to see the world for a lane based model.
Specific operational plan method for road-vehicles operating in a lane-based network.
Classes that implement the LMRS lane change model integrated with a car-following model forming a tactical planner.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
Static methods for composition in tactical planners.
-
Uses of RelativeLane in org.opentrafficsim.road.gtu.lane.perception
Modifier and TypeFieldDescriptionstatic final RelativeLane
RelativeLane.CURRENT
Current lane.static final RelativeLane
RelativeLane.LEFT
Left lane.static final RelativeLane
RelativeLane.RIGHT
right lane.static final RelativeLane
RelativeLane.SECOND_LEFT
Second left lane.static final RelativeLane
RelativeLane.SECOND_RIGHT
Second right lane.Modifier and TypeMethodDescriptionfinal RelativeLane
RelativeLane.add
(RelativeLane relativeLane) Returns the relative lane relative to this lane, for example "the left lane" of "the 3rd right lane" is "the 2nd right lane".final RelativeLane
RelativeLane.getLeft()
Returns the left hand relative lane of this relative lane.final RelativeLane
RelativeLane.getRight()
Returns the right hand relative lane of this relative lane.Modifier and TypeMethodDescriptionfinal RelativeLane
RelativeLane.add
(RelativeLane relativeLane) Returns the relative lane relative to this lane, for example "the left lane" of "the 3rd right lane" is "the 2nd right lane".void
MultiLanePerceptionIterable.addIterable
(RelativeLane lane, AbstractPerceptionReiterable<H, U> iterable) Adds an iterable for a lane.final int
RelativeLane.compareTo
(RelativeLane rel) ModifierConstructorDescriptionDownstreamNeighborsIterable
(LaneBasedGtu perceivingGtu, LaneRecordInterface<?> root, org.djunits.value.vdouble.scalar.Length initialPosition, org.djunits.value.vdouble.scalar.Length maxDistance, RelativePosition relativePosition, HeadwayGtuType headwayGtuType, RelativeLane lane, boolean ignoreIfUpstream) Constructor.UpstreamNeighborsIterable
(LaneBasedGtu perceivingGtu, LaneRecordInterface<?> root, org.djunits.value.vdouble.scalar.Length initialPosition, org.djunits.value.vdouble.scalar.Length maxDistance, RelativePosition relativePosition, HeadwayGtuType headwayGtuType, RelativeLane lane) Constructor. -
Uses of RelativeLane in org.opentrafficsim.road.gtu.lane.perception.categories
Modifier and TypeMethodDescriptionfinal SortedSet<RelativeLane>
DirectInfrastructurePerception.getCrossSection()
Returns a set of relative lanes representing the cross section.InfrastructurePerception.getCrossSection()
Returns a set of relative lanes representing the cross section.Modifier and TypeMethodDescriptionDirectIntersectionPerception.getConflicts
(RelativeLane lane) Returns a set of conflicts along the route.IntersectionPerception.getConflicts
(RelativeLane lane) Returns a set of conflicts along the route.org.djunits.value.vdouble.scalar.LinearDensity
AnticipationTrafficPerception.getDensity
(RelativeLane lane) Returns the perceived density on the given lane.org.djunits.value.vdouble.scalar.LinearDensity
TrafficPerception.getDensity
(RelativeLane lane) Returns the perceived density on the given lane.final SortedSet<LaneChangeInfo>
DirectInfrastructurePerception.getLegalLaneChangeInfo
(RelativeLane lane) Returns infrastructure lane change info of a lane.InfrastructurePerception.getLegalLaneChangeInfo
(RelativeLane lane) Returns infrastructure lane change info of a lane.final org.djunits.value.vdouble.scalar.Length
DirectInfrastructurePerception.getLegalLaneChangePossibility
(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains legally possible.org.djunits.value.vdouble.scalar.Length
InfrastructurePerception.getLegalLaneChangePossibility
(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains legally possible.final SortedSet<LaneChangeInfo>
DirectInfrastructurePerception.getPhysicalLaneChangeInfo
(RelativeLane lane) Returns infrastructure lane change info of a lane.InfrastructurePerception.getPhysicalLaneChangeInfo
(RelativeLane lane) Returns infrastructure lane change info of a lane.final org.djunits.value.vdouble.scalar.Length
DirectInfrastructurePerception.getPhysicalLaneChangePossibility
(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains physically possible.org.djunits.value.vdouble.scalar.Length
InfrastructurePerception.getPhysicalLaneChangePossibility
(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains physically possible.org.djunits.value.vdouble.scalar.Speed
AnticipationTrafficPerception.getSpeed
(RelativeLane lane) Returns the perceived speed on the given lane.org.djunits.value.vdouble.scalar.Speed
TrafficPerception.getSpeed
(RelativeLane lane) Returns the perceived speed on the given lane.final SpeedLimitProspect
DirectInfrastructurePerception.getSpeedLimitProspect
(RelativeLane lane) Returns the prospect for speed limits on a lane (dynamic speed limits may vary between lanes).InfrastructurePerception.getSpeedLimitProspect
(RelativeLane lane) Returns the prospect for speed limits on a lane (dynamic speed limits may vary between lanes).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.ModifierConstructorDescriptionAnticipationSpeed
(org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length lookAhead, RelativeLane lane) Constructor. -
Uses of RelativeLane 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.DirectNeighborsPerception.getLeaders
(RelativeLane lane) Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.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 RelativeLane in org.opentrafficsim.road.gtu.lane.perception.headway
ModifierConstructorDescriptionHeadwayBusStop
(BusStop busStop, org.djunits.value.vdouble.scalar.Length distance, RelativeLane relativeLane, Set<String> conflictIds, Lane lane) -
Uses of RelativeLane in org.opentrafficsim.road.gtu.lane.perception.structure
Modifier and TypeMethodDescriptionLaneStructure.getRootCrossSection()
Returns all the lanes that are in the root cross-section, i.e. to our direct left and right.Modifier and TypeMethodDescriptionboolean
LaneStructure.exists
(RelativeLane lane) Returns whether the lane exists within the structure.LaneStructure.getCrossSectionRecords
(RelativeLane lane) Returns the set of records in the cross-section on the given lane.LaneStructure.getDownstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.<T extends LaneBasedObject>
Iterable<LaneStructure.Entry<T>>LaneStructure.getDownstreamObjects
(RelativeLane relativeLane, Class<T> clazz, RelativePosition.Type position, boolean onRoute) Returns an iterator over objects perceived on a relative lane, ordered close to far.LaneStructure.getFirstDownstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.LaneStructure.getFirstUpstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.LaneStructure.getRootRecord
(RelativeLane lane) Returns the root record on the given lane.LaneStructure.getUpstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.<T extends LaneBasedObject>
Iterable<LaneStructure.Entry<T>>LaneStructure.getUpstreamObjects
(RelativeLane relativeLane, Class<T> clazz, RelativePosition.Type position) Returns an iterator over objects perceived on a relative lane, ordered close to far.ModifierConstructorDescriptionLaneRecord
(Lane lane, RelativeLane relativeLane, org.djunits.value.vdouble.scalar.Length startDistance, org.djunits.value.vdouble.scalar.Length mergeDistance) Constructor. -
Uses of RelativeLane in org.opentrafficsim.road.gtu.lane.plan.operational
Modifier and TypeMethodDescriptionfinal RelativeLane
LaneChange.getSecondLane
(LaneBasedGtu gtu) Second lane of lane change relative to the reference lane. -
Uses of RelativeLane in org.opentrafficsim.road.gtu.lane.tactical.lmrs
Modifier and TypeMethodDescriptionfinal void
AccelerationBusStop.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.final void
AccelerationConflicts.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.void
AccelerationIncentive.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.void
AccelerationNoRightOvertake.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.final void
AccelerationSpeedLimitTransition.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.final void
AccelerationTrafficLights.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration. -
Uses of RelativeLane in org.opentrafficsim.road.gtu.lane.tactical.toledo
Modifier and TypeMethodDescriptionfinal SortedSet<RelativeLane>
ToledoPerception.getCrossSection()
Returns a set of relative lanes representing the cross section.Modifier and TypeMethodDescriptionfinal SortedSet<LaneChangeInfo>
ToledoPerception.getInfrastructureLaneChangeInfo
(RelativeLane lane) Returns infrastructure lane change info of a lane.final org.djunits.value.vdouble.scalar.Length
ToledoPerception.getLegalLaneChangePossibility
(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains legally possible.final org.djunits.value.vdouble.scalar.Length
ToledoPerception.getPhysicalLaneChangePossibility
(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains physically possible.final SpeedLimitProspect
ToledoPerception.getSpeedLimitProspect
(RelativeLane lane) Returns the prospect for speed limits on a lane (dynamic speed limits may vary between lanes).final org.opentrafficsim.base.TimeStampedObject<SortedSet<LaneChangeInfo>>
ToledoPerception.getTimeStampedInfrastructureLaneChangeInfo
(RelativeLane lane) Returns time stamped infrastructure lane change info of a lane.void
ToledoPerception.updateInfrastructureLaneChangeInfo
(RelativeLane lane) Updates the infrastructural lane change info. -
Uses of RelativeLane 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).