Uses of Class
org.opentrafficsim.road.network.lane.Lane
Packages that use Lane
Package
Description
Generate GTUs according to some prescription.
The lane-based GTUs are the Generalized Travel Units that travel in lanes, and need to switch lanes to overtake.
Interfaces and classes describing perceived objects.
The lane structure provides a way to see the world for a lane based model.
Tactical planners for a lane-based GTU.
Factories for Links, Lanes, Nodes.
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
Contains classes describing intersection conflicts.
Lane-based objects such as barriers, gates, traffic lights, DRIPs, speed signs, obstacles on the road, etc.
Lane-based objects that act as sensors.
Traffic light and traffic light controller objects.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
O/D matrices as part of strategical planning for GTUs.
-
Uses of Lane in org.opentrafficsim.road.gtu.generator
Methods in org.opentrafficsim.road.gtu.generator that return LaneModifier and TypeMethodDescriptionprotected LanePlatoons.getPosition()Returns the position for sub classes.Methods in org.opentrafficsim.road.gtu.generator with parameters of type LaneModifier and TypeMethodDescriptionvoidDisable the vehicle generator during the specific time.Platoons.ofCategory(LaneBasedGtuCharacteristicsGeneratorOd characteristics, OtsSimulatorInterface simulator, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Lane position) Creates aPlatoon<Category>instance for platoons.Platoons.ofGtuType(LaneBasedGtuCharacteristicsGenerator characteristics, OtsSimulatorInterface simulator, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Lane position) Creates aPlatoon<GtuType>instance for platoons.final voidLaneBasedGtuGenerator.queueGtu(LaneBasedGtuCharacteristics characteristics, Lane lane) Adds a GTU to the generation queue. -
Uses of Lane in org.opentrafficsim.road.gtu.lane
Methods in org.opentrafficsim.road.gtu.lane that return LaneMethods in org.opentrafficsim.road.gtu.lane that return types with arguments of type LaneModifier and TypeMethodDescriptionLaneBasedGtu.getNextLaneForRoute(Lane lane) Returns the next lane for a given lane to stay on the route.Methods in org.opentrafficsim.road.gtu.lane with parameters of type LaneModifier and TypeMethodDescriptionprotected voidEnters a new lane, and removes the GTU from the previous lane.protected LengthLaneBasedGtu.getDeviation(Lane lane, Point2d location) Returns the deviation from the center line of the given lane, using extension if the GTU is not on the lane.LaneBasedGtu.getNextLaneForRoute(Lane lane) Returns the next lane for a given lane to stay on the route.LaneBasedGtu.getPosition(Lane lane) Returns the projected position of the GTU on the given lane, which should be on the same link.LaneBasedGtu.getPosition(Lane lane, Duration time) Returns the projected position of the GTU on the given lane, which should be on the same link.LaneBasedGtu.getPosition(Lane lane, RelativePosition relativePosition) Returns the projected position of the GTU on the given lane, which should be on the same link.LaneBasedGtu.getPosition(Lane lane, RelativePosition relativePosition, Duration time) Returns the projected position of the GTU on the given lane, which should be on the same link.LaneBasedGtu.getProjectedLength(Lane lane) Get projected length on the lane. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.perception.object
Methods in org.opentrafficsim.road.gtu.lane.perception.object that return LaneModifier and TypeMethodDescriptionPerceivedLaneBasedObject.getLane()Lane at which the object is located.PerceivedLaneBasedObjectBase.getLane()Lane at which the object is located.Constructors in org.opentrafficsim.road.gtu.lane.perception.object with parameters of type LaneModifierConstructorDescriptionPerceivedBusStop(BusStop busStop, Length distance, RelativeLane relativeLane, Set<String> conflictIds, Lane lane) Constructor.PerceivedConflictFull(String id, Length distance, Length length, ConflictType conflictType, ConflictPriority conflictPriority, Class<? extends ConflictRule> conflictRuleType, Length conflictingLength, PerceptionCollectable<PerceivedGtu, LaneBasedGtu> upstreamConflictingGTUs, PerceptionCollectable<PerceivedGtu, LaneBasedGtu> downstreamConflictingGTUs, Length conflictingVisibility, Speed conflictingSpeedLimit, CrossSectionLink conflictingLink, PerceivedConflictFull.Width width, PerceivedObject stopLine, PerceivedObject conflictingStopLine, Lane lane) Constructor.PerceivedLaneBasedObjectBase(String id, PerceivedObject.ObjectType objectType, Length length, PerceivedObject.Kinematics kinematics, Lane lane) Constructor. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.perception.structure
Methods in org.opentrafficsim.road.gtu.lane.perception.structure that return LaneModifier and TypeMethodDescriptionLaneRecord.getLane()Returns the lane.LaneRecordInterface.getLane()Returns the lane.SimpleLaneRecord.getLane()Constructors in org.opentrafficsim.road.gtu.lane.perception.structure with parameters of type LaneModifierConstructorDescriptionLaneRecord(Lane lane, RelativeLane relativeLane, Length startDistance, Length mergeDistance) Constructor.SimpleLaneRecord(Lane lane, Length startDistance, GtuType gtuType) Constructor. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.tactical
Methods in org.opentrafficsim.road.gtu.lane.tactical that return LaneModifier and TypeMethodDescriptiondefault LaneLaneBasedTacticalPlanner.chooseLaneAtSplit(Lane from, Set<Lane> lanes) Selects a lane from a possible set.static LaneLaneBasedTacticalPlanner.mostOnSide(Lane lane1, Lane lane2, LateralDirectionality lat) Returns the right-most of two lanes.Methods in org.opentrafficsim.road.gtu.lane.tactical with parameters of type LaneModifier and TypeMethodDescriptiondefault LaneLaneBasedTacticalPlanner.chooseLaneAtSplit(Lane from, Set<Lane> lanes) Selects a lane from a possible set.static LaneLaneBasedTacticalPlanner.mostOnSide(Lane lane1, Lane lane2, LateralDirectionality lat) Returns the right-most of two lanes.Method parameters in org.opentrafficsim.road.gtu.lane.tactical with type arguments of type LaneModifier and TypeMethodDescriptiondefault LaneLaneBasedTacticalPlanner.chooseLaneAtSplit(Lane from, Set<Lane> lanes) Selects a lane from a possible set. -
Uses of Lane in org.opentrafficsim.road.network
Methods in org.opentrafficsim.road.network with parameters of type LaneModifier and TypeMethodDescriptionRoadNetwork.getLaneChangeInfo(Lane lane, Route route, GtuType gtuType, Length range, LaneAccessLaw laneAccessLaw) Returns lane change info from the given lane. -
Uses of Lane in org.opentrafficsim.road.network.factory
Methods in org.opentrafficsim.road.network.factory that return LaneModifier and TypeMethodDescriptionstatic LaneLaneFactory.makeLane(RoadNetwork network, String name, Node from, Node to, Point2d[] intermediatePoints, LaneType laneType, Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple Lane.static Lane[]LaneFactory.makeMultiLane(RoadNetwork network, String name, Node from, Node to, Point2d[] intermediatePoints, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType laneType, Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple road with the specified number of Lanes.
This method returns an array of Lane.static Lane[]LaneFactory.makeMultiLane(RoadNetwork network, String name, Node from, Node to, Point2d[] intermediatePoints, int laneCount, LaneType laneType, Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple road with the specified number of Lanes.
This method returns an array of Lane.static Lane[]LaneFactory.makeMultiLaneBezier(RoadNetwork network, String name, Node n1, Node n2, Node n3, Node n4, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType laneType, Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple road with the specified number of Lanes, based on a Bezier curve.
This method returns an array of Lane.Methods in org.opentrafficsim.road.network.factory that return types with arguments of type Lane -
Uses of Lane in org.opentrafficsim.road.network.lane
Subclasses of Lane in org.opentrafficsim.road.network.laneMethods in org.opentrafficsim.road.network.lane that return LaneModifier and TypeMethodDescriptionstatic LaneLaneGeometryUtil.createStraightLane(CrossSectionLink link, String id, Length startOffset, Length endOffset, Length startWidth, Length endWidth, LaneType laneType, Map<GtuType, Speed> speedLimits) Creates a simple straight lane.static LaneLaneGeometryUtil.createStraightLane(CrossSectionLink link, String id, Length offset, Length width, LaneType laneType, Map<GtuType, Speed> speedLimits) Creates a simple straight lane.static LaneLaneGeometryUtil.createStraightLane(CrossSectionLink link, String id, ContinuousPiecewiseLinearFunction offset, ContinuousPiecewiseLinearFunction width, LaneType laneType, Map<GtuType, Speed> speedLimits) Creates a simple straight lane.LanePosition.lane()Returns the value of thelanerecord component.Methods in org.opentrafficsim.road.network.lane that return types with arguments of type LaneModifier and TypeMethodDescriptionLane.accessibleAdjacentLanesLegal(LateralDirectionality lateralDirection, GtuType gtuType) Determine the set of lanes to the left or to the right of this lane, which are accessible from this lane, or an empty set if no lane could be found.Lane.accessibleAdjacentLanesPhysical(LateralDirectionality lateralDirection, GtuType gtuType) Determine the set of lanes to the left or to the right of this lane, which are accessible from this lane, or an empty set if no lane could be found.Lane.getAdjacentLane(LateralDirectionality laneChangeDirection, GtuType gtuType) Returns one adjacent lane, regardless of legality.Shoulder.getAdjacentLane(LateralDirectionality laneChangeDirection, GtuType gtuType) Returns one adjacent lane.CrossSectionLink.getLanes()Return a safe copy of the list of lanes of this CrossSectionLink.CrossSectionLink.getLanesAndShoulders()Return a safe copy of the list of lanes and shoulders of this CrossSectionLink.Returns the left lane for given GTU type, regardless of legality.Returns the right lane for given GTU type, regardless of legality.NextLanes returns the successor lane(s) in the design line direction, if any exist.
The next lane(s) are cached, as it is too expensive to make the calculation every time.PrevLanes returns the predecessor lane(s) relative to the design line direction, if any exist.
The previous lane(s) are cached, as it is too expensive to make the calculation every time.Method parameters in org.opentrafficsim.road.network.lane with type arguments of type LaneModifier and TypeMethodDescriptionvoidLane.forceNextLanes(Set<Lane> lanes) Forces the next lanes to be as specified.voidLane.forcePrevLanes(Set<Lane> lanes) Forces the previous lanes to be as specified.Constructors in org.opentrafficsim.road.network.lane with parameters of type LaneModifierConstructorDescriptionLanePosition(Lane lane, Length position) Creates an instance of aLanePositionrecord class. -
Uses of Lane in org.opentrafficsim.road.network.lane.conflict
Methods in org.opentrafficsim.road.network.lane.conflict with parameters of type LaneModifier and TypeMethodDescriptionfinal voidLaneCombinationList.addLaneCombination(Lane lane1, Lane lane2) Add lane combination to the list.static voidConflictBuilder.buildConflicts(Lane lane1, Lane lane2, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflict on single lane pair.static voidConflictBuilder.buildConflicts(Lane lane1, Lane lane2, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, boolean permitted) Build conflict on single lane pair.final booleanReturns whether the combination of the two lanes is included.static voidConflict.generateConflictPair(ConflictType conflictType, ConflictRule conflictRule, boolean permitted, Lane lane1, Length longitudinalPosition1, Length length1, Polygon2d geometry1, Lane lane2, Length longitudinalPosition2, Length length2, Polygon2d geometry2, OtsSimulatorInterface simulator) Creates a pair of conflicts.final doublefinal doubledoubleReturns the begin width of this lane.Method parameters in org.opentrafficsim.road.network.lane.conflict with type arguments of type LaneModifier and TypeMethodDescriptionstatic voidConflictBuilder.buildConflicts(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflicts on list of lanes.static voidConflictBuilder.buildConflicts(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList, String conflictId) Build conflicts on list of lanes.static voidConflictBuilder.buildConflictsParallel(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflicts on list of lanes; parallel implementation.static voidConflictBuilder.buildConflictsParallelBig(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) Build conflicts on list of lanes; parallel implementation.static voidConflictBuilder.buildConflictsParallelSmall(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) Build conflicts on list of lanes; parallel implementation. -
Uses of Lane in org.opentrafficsim.road.network.lane.object
Methods in org.opentrafficsim.road.network.lane.object that return LaneModifier and TypeMethodDescriptionfinal LaneAbstractLaneBasedObject.getLane()LaneBasedObject.getLane()Returns the lane.Methods in org.opentrafficsim.road.network.lane.object with parameters of type LaneModifier and TypeMethodDescriptionstatic PolyLine2dMake a geometry perpendicular to the center line of the lane with a length 90% of the width of the lane.static PolyLine2dMake a geometry perpendicular to the center line of the lane with a length of given fraction of the width of the lane.Constructors in org.opentrafficsim.road.network.lane.object with parameters of type LaneModifierConstructorDescriptionprotectedAbstractLaneBasedObject(String id, Lane lane, Length longitudinalPosition, PolyLine2d line) Construct a new LaneBasedObject with the required fields.protectedAbstractLaneBasedObject(String id, Lane lane, Length longitudinalPosition, PolyLine2d line, Length height) Construct a new AbstractLanebasedObject with the required fields.protectedAbstractLaneBasedObject(String id, Lane lane, Length longitudinalPosition, PolyLine2d line, Polygon2d contour) Construct a new LaneBasedObject with the required fields.protectedAbstractLaneBasedObject(String id, Lane lane, Length longitudinalPosition, PolyLine2d line, Polygon2d contour, Length height) Construct a new AbstractLanebasedObject with the required fields.Constructor.RoadSideDistraction(String id, Lane lane, Length longitudinalPosition, RoadSideDistraction.DistractionProfile profile, LateralDirectionality side) Constructor.SpeedSign(String id, Lane lane, Length longitudinalPosition, Speed speed, GtuType gtuType, Duration startTimeOfDay, Duration endTimeOfDay) Construct a new SpeedSign. -
Uses of Lane in org.opentrafficsim.road.network.lane.object.detector
Constructors in org.opentrafficsim.road.network.lane.object.detector with parameters of type LaneModifierConstructorDescriptionLaneDetector(String id, Lane lane, Length longitudinalPosition, RelativePosition.Type positionType, PolyLine2d line, Length elevation, DetectorType detectorType) Create a detector on a lane at a position on that lane.LaneDetector(String id, Lane lane, Length longitudinalPosition, RelativePosition.Type positionType, PolyLine2d line, DetectorType detectorType) Create a detector on a lane at a position on that lane at elevationDetector.DEFAULT_DETECTOR_ELEVATION.LaneDetector(String id, Lane lane, Length longitudinalPosition, RelativePosition.Type positionType, DetectorType detectorType) Create a new Detector on a lane at a position on that lane at elevationDetector.DEFAULT_DETECTOR_ELEVATIONand default geometry.LoopDetector(String id, Lane lane, Length longitudinalPosition, DetectorType detectorType) Constructor for regular Dutch dual-loop detectors measuring flow and mean speed aggregated over 60s.ReportingDetector(String id, Lane lane, Length position, RelativePosition.Type triggerPosition, DetectorType detectorType) Construct a new ReportingDetector.SinkDetector(Lane lane, Length position, DetectorType detectorType) Constructor.SinkDetector(Lane lane, Length position, DetectorType detectorType, BiPredicate<SinkDetector, LaneBasedGtu> predicate) Constructor.StartEndDetector(String id, Lane lane, Length longitudinalPosition, RelativePosition.Type positionType, DetectorType detectorType) Construct a new StartEndDetector.TrafficLightDetector(String id, Lane laneA, Length positionA, Lane laneB, Length positionB, List<Lane> intermediateLanes, RelativePosition.Type entryPosition, RelativePosition.Type exitPosition, DetectorType detectorType) Construct a new traffic light detector.
TODO Possibly provide the GtuTypes that trigger the detector as an argument for the constructorConstructor parameters in org.opentrafficsim.road.network.lane.object.detector with type arguments of type LaneModifierConstructorDescriptionTrafficLightDetector(String id, Lane laneA, Length positionA, Lane laneB, Length positionB, List<Lane> intermediateLanes, RelativePosition.Type entryPosition, RelativePosition.Type exitPosition, DetectorType detectorType) Construct a new traffic light detector.
TODO Possibly provide the GtuTypes that trigger the detector as an argument for the constructor -
Uses of Lane in org.opentrafficsim.road.network.lane.object.trafficlight
Constructors in org.opentrafficsim.road.network.lane.object.trafficlight with parameters of type LaneModifierConstructorDescriptionTrafficLight(String id, Lane lane, Length longitudinalPosition) Construct an AbstractTrafficLight at default elevation (use only on roads at elevation 0).TrafficLight(String id, Lane lane, Length longitudinalPosition, Length height) Construct an AbstractTrafficLight with specified elevation. -
Uses of Lane in org.opentrafficsim.road.network.sampling
Methods in org.opentrafficsim.road.network.sampling that return LaneConstructors in org.opentrafficsim.road.network.sampling with parameters of type Lane -
Uses of Lane in org.opentrafficsim.road.od
Methods in org.opentrafficsim.road.od with parameters of type LaneModifier and TypeMethodDescriptionfinal <K> KOdOptions.get(OdOptions.Option<K> option, Lane lane, Node node, LinkType linkType) Get option value.final <K> OdOptionsOdOptions.set(Lane lane, OdOptions.Option<K> option, K value) Set option value for lane.