Uses of Class
org.opentrafficsim.road.gtu.perception.RelativeLane
Packages that use RelativeLane
Package
Description
Implementation of lane-based perception for the GTU.
Categories define a set of perceivable information.
Contains perception categories to perceive neighbors.
Mental mechanisms are a part of perception.
Mental implementation based on an Attention Matrix, determining attention over different channels.
Interfaces and classes describing perceived objects.
The lane structure provides a way to see the world for a lane based model.
Classes that implement the LMRS lane change model integrated with a car-following model forming a tactical planner.
Static methods for composition in tactical planners.
-
Uses of RelativeLane in org.opentrafficsim.road.gtu.perception
Fields in org.opentrafficsim.road.gtu.perception declared as RelativeLaneModifier and TypeFieldDescriptionstatic final RelativeLaneRelativeLane.CURRENTCurrent lane.static final RelativeLaneRelativeLane.LEFTLeft lane.static final RelativeLaneRelativeLane.RIGHTright lane.static final RelativeLaneRelativeLane.SECOND_LEFTSecond left lane.static final RelativeLaneRelativeLane.SECOND_RIGHTSecond right lane.Methods in org.opentrafficsim.road.gtu.perception that return RelativeLaneModifier and TypeMethodDescriptionfinal RelativeLaneRelativeLane.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 RelativeLaneRelativeLane.getLeft()Returns the left hand relative lane of this relative lane.final RelativeLaneRelativeLane.getRight()Returns the right hand relative lane of this relative lane.Methods in org.opentrafficsim.road.gtu.perception with parameters of type RelativeLaneModifier and TypeMethodDescriptionfinal RelativeLaneRelativeLane.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".voidMultiLanePerceptionIterable.addIterable(RelativeLane lane, AbstractPerceptionReiterable<O, P, U> iterable) Adds an iterable for a lane.final intRelativeLane.compareTo(RelativeLane rel) -
Uses of RelativeLane in org.opentrafficsim.road.gtu.perception.categories
Methods in org.opentrafficsim.road.gtu.perception.categories that return types with arguments of type RelativeLaneModifier and TypeMethodDescriptionDirectInfrastructurePerception.getCrossSection()InfrastructurePerception.getCrossSection()Returns a set of relative lanes representing the cross section.Methods in org.opentrafficsim.road.gtu.perception.categories with parameters of type RelativeLaneModifier and TypeMethodDescriptionDirectIntersectionPerception.getConflicts(RelativeLane lane) IntersectionPerception.getConflicts(RelativeLane lane) Returns a set of conflicts along the route.org.djunits.value.vdouble.scalar.LinearDensityAnticipationTrafficPerception.getDensity(RelativeLane lane) org.djunits.value.vdouble.scalar.LinearDensityTrafficPerception.getDensity(RelativeLane lane) Returns the perceived density on the given lane.DirectInfrastructurePerception.getLegalLaneChangeInfo(RelativeLane lane) InfrastructurePerception.getLegalLaneChangeInfo(RelativeLane lane) Returns infrastructure lane change info of a lane.org.djunits.value.vdouble.scalar.LengthDirectInfrastructurePerception.getLegalLaneChangePossibility(RelativeLane fromLane, LateralDirectionality lat) org.djunits.value.vdouble.scalar.LengthInfrastructurePerception.getLegalLaneChangePossibility(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains legally possible.DirectInfrastructurePerception.getPhysicalLaneChangeInfo(RelativeLane lane) InfrastructurePerception.getPhysicalLaneChangeInfo(RelativeLane lane) Returns infrastructure lane change info of a lane.org.djunits.value.vdouble.scalar.LengthDirectInfrastructurePerception.getPhysicalLaneChangePossibility(RelativeLane fromLane, LateralDirectionality lat) org.djunits.value.vdouble.scalar.LengthInfrastructurePerception.getPhysicalLaneChangePossibility(RelativeLane fromLane, LateralDirectionality lat) Returns the distance over which a lane change remains physically possible.org.djunits.value.vdouble.scalar.SpeedAnticipationTrafficPerception.getSpeed(RelativeLane lane, org.djunits.value.vdouble.scalar.Speed desiredSpeed) org.djunits.value.vdouble.scalar.SpeedTrafficPerception.getSpeed(RelativeLane lane, org.djunits.value.vdouble.scalar.Speed desiredSpeed) Returns the perceived speed on the given lane.DirectInfrastructurePerception.getSpeedLimits(RelativeLane lane) InfrastructurePerception.getSpeedLimits(RelativeLane lane) Returns the current speed limits.DirectIntersectionPerception.getTrafficLights(RelativeLane lane) IntersectionPerception.getTrafficLights(RelativeLane lane) Returns a set of traffic lights along the route.Constructors in org.opentrafficsim.road.gtu.perception.categories with parameters of type RelativeLaneModifierConstructorDescriptionAnticipationSpeed(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.perception.categories.neighbors
Methods in org.opentrafficsim.road.gtu.perception.categories.neighbors with parameters of type RelativeLaneModifier and TypeMethodDescriptionDirectNeighborsPerception.getFollowers(RelativeLane lane) 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) 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.perception.mental
Method parameters in org.opentrafficsim.road.gtu.perception.mental with type arguments of type RelativeLaneModifier and TypeMethodDescriptiondoubleDistractionField.getDistraction(BiFunction<RelativeLane, RoadSideDistraction, Boolean> filter) Returns the level of distraction for the given direction. -
Uses of RelativeLane in org.opentrafficsim.road.gtu.perception.mental.channel
Methods in org.opentrafficsim.road.gtu.perception.mental.channel with parameters of type RelativeLaneModifier and TypeMethodDescriptionIntersectionPerceptionChannel.getConflicts(RelativeLane lane) NeighborsPerceptionChannel.getFollowers(RelativeLane lane) Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.NeighborsPerceptionChannel.getLeaders(RelativeLane lane) Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.IntersectionPerceptionChannel.getTrafficLights(RelativeLane lane) -
Uses of RelativeLane in org.opentrafficsim.road.gtu.perception.object
Methods in org.opentrafficsim.road.gtu.perception.object that return RelativeLaneModifier and TypeMethodDescriptionfinal RelativeLanePerceivedBusStop.getRelativeLane()Returns relative lane.Constructors in org.opentrafficsim.road.gtu.perception.object with parameters of type RelativeLaneModifierConstructorDescriptionPerceivedBusStop(BusStop busStop, org.djunits.value.vdouble.scalar.Length distance, RelativeLane relativeLane, Set<String> conflictIds, Lane lane) Constructor. -
Uses of RelativeLane in org.opentrafficsim.road.gtu.perception.structure
Methods in org.opentrafficsim.road.gtu.perception.structure that return RelativeLaneMethods in org.opentrafficsim.road.gtu.perception.structure that return types with arguments of type RelativeLaneModifier and TypeMethodDescriptionLaneStructure.getRootCrossSection()Returns all the lanes that are in the root cross-section, i.e. to our direct left and right.Methods in org.opentrafficsim.road.gtu.perception.structure with parameters of type RelativeLaneModifier and TypeMethodDescriptionbooleanLaneStructure.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<NavigatingIterable.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<NavigatingIterable.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.Constructors in org.opentrafficsim.road.gtu.perception.structure with parameters of type RelativeLaneModifierConstructorDescriptionLaneRecord(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.tactical.lmrs
Methods in org.opentrafficsim.road.gtu.tactical.lmrs with parameters of type RelativeLaneModifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.AccelerationAccelerationBusStop.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) final org.djunits.value.vdouble.scalar.AccelerationAccelerationConflicts.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationIncentive.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Determine acceleration.org.djunits.value.vdouble.scalar.AccelerationAccelerationLaneChangers.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationNoSlowLaneOvertake.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationSpeedTransition.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationTrafficLights.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAbstractIncentivesTacticalPlanner.getAcceleration(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Determine acceleration.static doubleIncentiveRoute.getDesireToLeave(TacticalContextEgo context, RelativeLane lane) Calculates desire to leave a lane.static <T extends PerceivedLaneBasedObject>
Iterable<T>AccelerationIncentive.onRoad(Iterable<T> iterable, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Returns an iterable with only those lane-based objects that are on the same road, i.e. only downstream of a possible merge. -
Uses of RelativeLane in org.opentrafficsim.road.gtu.tactical.util
Methods in org.opentrafficsim.road.gtu.tactical.util with parameters of type RelativeLaneModifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.AccelerationConflictUtil.approachConflicts(TacticalContextEgo context, ConflictUtil.ConflictPlans conflictPlans, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, boolean onRoute) Approach conflicts by applying appropriate acceleration (or deceleration).static org.djunits.value.vdouble.scalar.AccelerationSpeedLimitUtil.considerSpeedLimitTransitions(TacticalContextEgo context, RelativeLane lane) Acceleration for speed limit transitions.static org.djunits.value.vdouble.scalar.AccelerationTrafficLightUtil.respondToTrafficLights(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, boolean onRoute) Returns an acceleration as response to a set of traffic lights, being positive infinity if ignored.