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.
Categories define a set of perceivable information.
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.
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 Lane
Platoons.getPosition()
Returns the position for sub classes.Methods in org.opentrafficsim.road.gtu.generator with parameters of type LaneModifier and TypeMethodDescriptionvoid
LaneBasedGtuGenerator.disable
(org.djunits.value.vdouble.scalar.Time start, org.djunits.value.vdouble.scalar.Time end, Lane lane) Disable 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 void
LaneBasedGtuGenerator.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 LaneModifier and TypeMethodDescriptionLaneBasedGtu.getLane()
final Lane
LaneBasedGtu.getNextLaneForRoute
(Lane lane) Returns the next lane for a given lane to stay on the route.Methods in org.opentrafficsim.road.gtu.lane that return types with arguments of type LaneModifier and TypeMethodDescriptionLaneBasedGtu.fractionalPositions
(RelativePosition relativePosition) Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the vehicle is registered, as fractions of the length of the lane.LaneBasedGtu.fractionalPositions
(RelativePosition relativePosition, org.djunits.value.vdouble.scalar.Time when) Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the vehicle is registered, as fractions of the length of the lane.LaneBasedGtu.getNextLanesForRoute
(Lane lane) Returns a set ofLane
s that can be followed considering the route.LaneBasedGtu.positions
(RelativePosition relativePosition) Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the vehicle is registered.LaneBasedGtu.positions
(RelativePosition relativePosition, org.djunits.value.vdouble.scalar.Time when) Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the vehicle is registered.Methods in org.opentrafficsim.road.gtu.lane with parameters of type LaneModifier and TypeMethodDescriptionfinal void
LaneBasedGtu.addTrigger
(Lane lane, nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<org.djunits.value.vdouble.scalar.Duration> event) Add an event to the list of lane triggers scheduled for this GTU.final double
LaneBasedGtu.fractionalPosition
(Lane lane, RelativePosition relativePosition) Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane, as a fraction of the length of the lane.final double
LaneBasedGtu.fractionalPosition
(Lane lane, RelativePosition relativePosition, org.djunits.value.vdouble.scalar.Time when) Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane, as a fraction of the length of the lane.org.djunits.value.vdouble.scalar.Length
LaneBasedGtu.getLateralPosition
(Lane lane) Returns the lateral position of the GTU relative to the lane center line.final Lane
LaneBasedGtu.getNextLaneForRoute
(Lane lane) Returns the next lane for a given lane to stay on the route.LaneBasedGtu.getNextLanesForRoute
(Lane lane) Returns a set ofLane
s that can be followed considering the route.org.djunits.value.vdouble.scalar.Length
LaneBasedGtu.getProjectedLength
(Lane lane) Get projected length on the lane.final org.djunits.value.vdouble.scalar.Length
LaneBasedGtu.position
(Lane lane, RelativePosition relativePosition) Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane at the current simulation time.org.djunits.value.vdouble.scalar.Length
LaneBasedGtu.position
(Lane lane, RelativePosition relativePosition, org.djunits.value.vdouble.scalar.Time when) Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.protected void
LaneBasedGtu.scheduleTriggers
(Lane lane) Schedules all trigger events during the current operational plan on the lane. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.perception.categories
Methods in org.opentrafficsim.road.gtu.lane.perception.categories that return LaneModifier and TypeMethodDescriptionDefaultSimplePerception.bestAccessibleAdjacentLane
(Lane currentLane, LateralDirectionality lateralDirection, org.djunits.value.vdouble.scalar.Length longitudinalPosition) Determine whether there is a lane to the left or to the right of this lane, which is accessible from this lane, or null if no lane could be found.final Lane
DirectDefaultSimplePerception.bestAccessibleAdjacentLane
(Lane currentLane, LateralDirectionality lateralDirection, org.djunits.value.vdouble.scalar.Length longitudinalPosition) Methods in org.opentrafficsim.road.gtu.lane.perception.categories that return types with arguments of type LaneModifier and TypeMethodDescriptionDefaultSimplePerception.getAccessibleAdjacentLanes
(LateralDirectionality lateralDirection) DefaultSimplePerception.getAccessibleAdjacentLanes
(LateralDirectionality lateralDirection) DirectDefaultSimplePerception.getAccessibleAdjacentLanes
(LateralDirectionality lateralDirection) DirectDefaultSimplePerception.getAccessibleAdjacentLanes
(LateralDirectionality lateralDirection) DefaultSimplePerception.getAccessibleAdjacentLanesLeft()
DefaultSimplePerception.getAccessibleAdjacentLanesLeft()
DirectDefaultSimplePerception.getAccessibleAdjacentLanesLeft()
DirectDefaultSimplePerception.getAccessibleAdjacentLanesLeft()
DefaultSimplePerception.getAccessibleAdjacentLanesRight()
DefaultSimplePerception.getAccessibleAdjacentLanesRight()
DirectDefaultSimplePerception.getAccessibleAdjacentLanesRight()
DirectDefaultSimplePerception.getAccessibleAdjacentLanesRight()
DirectDefaultSimplePerception.getTimeStampedAccessibleAdjacentLanes
(LateralDirectionality lateralDirection) DirectDefaultSimplePerception.getTimeStampedAccessibleAdjacentLanes
(LateralDirectionality lateralDirection) DirectDefaultSimplePerception.getTimeStampedAccessibleAdjacentLanesLeft()
DirectDefaultSimplePerception.getTimeStampedAccessibleAdjacentLanesLeft()
DirectDefaultSimplePerception.getTimeStampedAccessibleAdjacentLanesRight()
DirectDefaultSimplePerception.getTimeStampedAccessibleAdjacentLanesRight()
Methods in org.opentrafficsim.road.gtu.lane.perception.categories with parameters of type LaneModifier and TypeMethodDescriptionDefaultSimplePerception.bestAccessibleAdjacentLane
(Lane currentLane, LateralDirectionality lateralDirection, org.djunits.value.vdouble.scalar.Length longitudinalPosition) Determine whether there is a lane to the left or to the right of this lane, which is accessible from this lane, or null if no lane could be found.final Lane
DirectDefaultSimplePerception.bestAccessibleAdjacentLane
(Lane currentLane, LateralDirectionality lateralDirection, org.djunits.value.vdouble.scalar.Length longitudinalPosition) -
Uses of Lane in org.opentrafficsim.road.gtu.lane.perception.headway
Methods in org.opentrafficsim.road.gtu.lane.perception.headway that return LaneModifier and TypeMethodDescriptionAbstractHeadwayLaneBasedObject.getLane()
HeadwayLaneBasedObject.getLane()
Lane at which the object is located.Constructors in org.opentrafficsim.road.gtu.lane.perception.headway with parameters of type LaneModifierConstructorDescriptionAbstractHeadwayLaneBasedObject
(Headway.ObjectType objectType, String id, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, org.djunits.value.vdouble.scalar.Length length, Lane lane) Construct a new Headway information object, for a non-moving object parallel with us.AbstractHeadwayLaneBasedObject
(Headway.ObjectType objectType, String id, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, Lane lane) Construct a new Headway information object, for a non-moving object parallel with us.AbstractHeadwayLaneBasedObject
(Headway.ObjectType objectType, String id, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length, Lane lane) Construct a new Headway information object, for a non-moving object ahead of us or behind us.AbstractHeadwayLaneBasedObject
(Headway.ObjectType objectType, String id, org.djunits.value.vdouble.scalar.Length distance, Lane lane) Construct a new Headway information object, for a non-moving object ahead of us or behind us.HeadwayBusStop
(BusStop busStop, org.djunits.value.vdouble.scalar.Length distance, RelativeLane relativeLane, Set<String> conflictIds, Lane lane) 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, 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.HeadwayStopLine
(String id, org.djunits.value.vdouble.scalar.Length distance, Lane lane) Construct a new HeadwayStopLine. -
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, org.djunits.value.vdouble.scalar.Length startDistance, org.djunits.value.vdouble.scalar.Length mergeDistance) Constructor.SimpleLaneRecord
(Lane lane, org.djunits.value.vdouble.scalar.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 Lane
LaneBasedTacticalPlanner.chooseLaneAtSplit
(Lane from, Set<Lane> lanes) Selects a lane from a possible set.final Lane
LanePathInfo.getReferenceLane()
The reference lane is the widest lane on which the reference point of the GTU is fully registered.static Lane
LaneBasedTacticalPlanner.mostOnSide
(Lane lane1, Lane lane2, LateralDirectionality lat) Returns the right-most of two lanes.Methods in org.opentrafficsim.road.gtu.lane.tactical that return types with arguments of type LaneModifier and TypeMethodDescriptionNextSplitInfo.correctCurrentLanes()
Returns the value of thecorrectCurrentLanes
record component.LanePathInfo.laneList()
Returns the value of thelaneList
record component.Methods in org.opentrafficsim.road.gtu.lane.tactical with parameters of type LaneModifier and TypeMethodDescriptionstatic LanePathInfo
AbstractLaneBasedTacticalPlanner.buildLanePathInfo
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway, Lane startLane, org.djunits.value.vdouble.scalar.Length position) Build a list of lanes forward, with a maximum headway relative to the reference point of the GTU.default Lane
LaneBasedTacticalPlanner.chooseLaneAtSplit
(Lane from, Set<Lane> lanes) Selects a lane from a possible set.protected final org.djunits.value.vdouble.scalar.Length
LaneBasedCfLcTacticalPlanner.computeSuitabilityWithLaneChanges
(Lane startLane, double remainingDistance, Map<Lane, org.djunits.value.vdouble.scalar.Length> suitabilities, int totalLanes, LateralDirectionality direction, GtuType gtuType) Compute the suitability of a lane from which lane changes are required to get to the next point on the Route.
This method weighs the suitability of the nearest suitable lane by (m - n) / m where n is the number of lane changes required and m is the total number of lanes in the CrossSectionLink.protected static boolean
AbstractLaneBasedTacticalPlanner.connectsToPath
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway, Lane startLane, org.djunits.value.vdouble.scalar.Length startLanePosition, Link linkAfterSplit) Determine whether the lane is directly connected to our route, in other words: if we would (continue to) drive on the given lane, can we take the right branch at the nextSplitNode without switching lanes?static Lane
LaneBasedTacticalPlanner.mostOnSide
(Lane lane1, Lane lane2, LateralDirectionality lat) Returns the right-most of two lanes.protected static boolean
AbstractLaneBasedTacticalPlanner.noLaneDrop
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway, Lane startLane, org.djunits.value.vdouble.scalar.Length startLanePosition) Determine whether the lane does not drop, in other words: if we would (continue to) drive on the given lane, can we continue to drive at the nextSplitNode without switching lanes?default org.djunits.value.vdouble.scalar.Length
LaneBasedTacticalPlanner.okDistance
(Lane lane, org.djunits.value.vdouble.scalar.Length distance, Route route, org.djunits.value.vdouble.scalar.Length maxDistance) Helper method for default chooseLaneAtSplit implementation that returns the distance from this lane onwards where the route can be followed.Method parameters in org.opentrafficsim.road.gtu.lane.tactical with type arguments of type LaneModifier and TypeMethodDescriptiondefault Lane
LaneBasedTacticalPlanner.chooseLaneAtSplit
(Lane from, Set<Lane> lanes) Selects a lane from a possible set.protected final org.djunits.value.vdouble.scalar.Length
LaneBasedCfLcTacticalPlanner.computeSuitabilityWithLaneChanges
(Lane startLane, double remainingDistance, Map<Lane, org.djunits.value.vdouble.scalar.Length> suitabilities, int totalLanes, LateralDirectionality direction, GtuType gtuType) Compute the suitability of a lane from which lane changes are required to get to the next point on the Route.
This method weighs the suitability of the nearest suitable lane by (m - n) / m where n is the number of lane changes required and m is the total number of lanes in the CrossSectionLink.Constructor parameters in org.opentrafficsim.road.gtu.lane.tactical with type arguments of type LaneModifierConstructorDescriptionLanePathInfo
(org.opentrafficsim.base.geometry.OtsLine2d path, List<Lane> laneList, org.djunits.value.vdouble.scalar.Length referencePosition) Creates an instance of aLanePathInfo
record class.NextSplitInfo
(Node nextSplitNode, Set<Lane> correctCurrentLanes) NextSplitInfo
(Node nextSplitNode, Set<Lane> correctCurrentLanes, LateralDirectionality requiredDirection) Creates an instance of aNextSplitInfo
record class. -
Uses of Lane in org.opentrafficsim.road.network
Methods in org.opentrafficsim.road.network with parameters of type LaneModifier and TypeMethodDescriptionorg.djutils.immutablecollections.ImmutableSortedSet<LaneChangeInfo>
RoadNetwork.getLaneChangeInfo
(Lane lane, Route route, GtuType gtuType, org.djunits.value.vdouble.scalar.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 Lane
LaneFactory.makeLane
(RoadNetwork network, String name, Node from, Node to, org.djutils.draw.point.Point2d[] intermediatePoints, LaneType laneType, org.djunits.value.vdouble.scalar.Speed speedLimit, OtsSimulatorInterface simulator, GtuType gtuType) Create a simple Lane.static Lane[]
LaneFactory.makeMultiLane
(RoadNetwork network, String name, Node from, Node to, org.djutils.draw.point.Point2d[] intermediatePoints, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType laneType, org.djunits.value.vdouble.scalar.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, org.djutils.draw.point.Point2d[] intermediatePoints, int laneCount, LaneType laneType, org.djunits.value.vdouble.scalar.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, org.djunits.value.vdouble.scalar.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 Lane
LaneGeometryUtil.createStraightLane
(CrossSectionLink link, String id, org.djunits.value.vdouble.scalar.Length startOffset, org.djunits.value.vdouble.scalar.Length endOffset, org.djunits.value.vdouble.scalar.Length startWidth, org.djunits.value.vdouble.scalar.Length endWidth, LaneType laneType, Map<GtuType, org.djunits.value.vdouble.scalar.Speed> speedLimits) Creates a simple straight lane.static Lane
LaneGeometryUtil.createStraightLane
(CrossSectionLink link, String id, org.djunits.value.vdouble.scalar.Length offset, org.djunits.value.vdouble.scalar.Length width, LaneType laneType, Map<GtuType, org.djunits.value.vdouble.scalar.Speed> speedLimits) Creates a simple straight lane.static Lane
LaneGeometryUtil.createStraightLane
(CrossSectionLink link, String id, ContinuousLine.ContinuousDoubleFunction offset, ContinuousLine.ContinuousDoubleFunction width, LaneType laneType, Map<GtuType, org.djunits.value.vdouble.scalar.Speed> speedLimits) Creates a simple straight lane.Lane.getAdjacentLane
(LateralDirectionality laneChangeDirection, GtuType gtuType) Returns one adjacent lane.Shoulder.getAdjacentLane
(LateralDirectionality laneChangeDirection, GtuType gtuType) Returns one adjacent lane.LanePosition.lane()
Returns the value of thelane
record 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.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.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 TypeMethodDescriptionvoid
Lane.forceNextLanes
(Set<Lane> lanes) Forces the next lanes to be as specified.void
Lane.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, org.djunits.value.vdouble.scalar.Length position) Creates an instance of aLanePosition
record class. -
Uses of Lane in org.opentrafficsim.road.network.lane.conflict
Methods in org.opentrafficsim.road.network.lane.conflict that return LaneModifier and TypeMethodDescriptionConflictBuilder.ConflictBuilderRecordSmall.lane1()
Returns the value of thelane1
record component.ConflictBuilder.ConflictBuilderRecordSmall.lane2()
Returns the value of thelane2
record component.Methods in org.opentrafficsim.road.network.lane.conflict that return types with arguments of type LaneModifier and TypeMethodDescriptionConflictBuilder.ConflictBuilderRecordSmall.down1()
Returns the value of thedown1
record component.ConflictBuilder.ConflictBuilderRecordSmall.down2()
Returns the value of thedown2
record component.ConflictBuilder.ConflictBuilderRecordBig.lanes()
Returns the value of thelanes
record component.ConflictBuilder.ConflictBuilderRecordBig.leftEdges()
Returns the value of theleftEdges
record component.ConflictBuilder.ConflictBuilderRecordSmall.leftEdges()
Returns the value of theleftEdges
record component.ConflictBuilder.ConflictBuilderRecordBig.rightEdges()
Returns the value of therightEdges
record component.ConflictBuilder.ConflictBuilderRecordSmall.rightEdges()
Returns the value of therightEdges
record component.ConflictBuilder.ConflictBuilderRecordSmall.up1()
Returns the value of theup1
record component.ConflictBuilder.ConflictBuilderRecordSmall.up2()
Returns the value of theup2
record component.Methods in org.opentrafficsim.road.network.lane.conflict with parameters of type LaneModifier and TypeMethodDescriptionfinal void
LaneCombinationList.addLaneCombination
(Lane lane1, Lane lane2) Add lane combination to the list.(package private) static void
ConflictBuilder.buildConflicts
(Lane lane1, Set<Lane> down1, Set<Lane> up1, Lane lane2, Set<Lane> down2, Set<Lane> up2, boolean permitted, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges, boolean intersectionCheck, String conflictId) Build conflicts on single lane pair.static void
ConflictBuilder.buildConflicts
(Lane lane1, Lane lane2, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflict on single lane pair.static void
ConflictBuilder.buildConflicts
(Lane lane1, Lane lane2, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, boolean permitted) Build conflict on single lane pair.final boolean
Returns whether the combination of the two lanes is included.static void
Conflict.generateConflictPair
(ConflictType conflictType, ConflictRule conflictRule, boolean permitted, Lane lane1, org.djunits.value.vdouble.scalar.Length longitudinalPosition1, org.djunits.value.vdouble.scalar.Length length1, org.djutils.draw.line.Polygon2d geometry1, Lane lane2, org.djunits.value.vdouble.scalar.Length longitudinalPosition2, org.djunits.value.vdouble.scalar.Length length2, org.djutils.draw.line.Polygon2d geometry2, OtsSimulatorInterface simulator) Creates a pair of conflicts.final double
final double
double
Returns the begin width of this lane.Method parameters in org.opentrafficsim.road.network.lane.conflict with type arguments of type LaneModifier and TypeMethodDescriptionstatic void
ConflictBuilder.buildConflicts
(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflicts on list of lanes.static void
ConflictBuilder.buildConflicts
(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList, String conflictId) Build conflicts on list of lanes.(package private) static void
ConflictBuilder.buildConflicts
(Lane lane1, Set<Lane> down1, Set<Lane> up1, Lane lane2, Set<Lane> down2, Set<Lane> up2, boolean permitted, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges, boolean intersectionCheck, String conflictId) Build conflicts on single lane pair.(package private) static void
ConflictBuilder.buildConflicts
(Lane lane1, Set<Lane> down1, Set<Lane> up1, Lane lane2, Set<Lane> down2, Set<Lane> up2, boolean permitted, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges, boolean intersectionCheck, String conflictId) Build conflicts on single lane pair.static void
ConflictBuilder.buildConflictsParallel
(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator) Build conflicts on list of lanes; parallel implementation.static void
ConflictBuilder.buildConflictsParallelBig
(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) Build conflicts on list of lanes; parallel implementation.static void
ConflictBuilder.buildConflictsParallelSmall
(List<Lane> lanes, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList) Build conflicts on list of lanes; parallel implementation.Constructors in org.opentrafficsim.road.network.lane.conflict with parameters of type LaneModifierConstructorDescription(package private)
ConflictBuilderRecordSmall
(Lane lane1, Set<Lane> down1, Set<Lane> up1, Lane lane2, Set<Lane> down2, Set<Lane> up2, boolean permitted, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges) Creates an instance of aConflictBuilderRecordSmall
record class.(package private)
ConflictEnd
(Conflict conflict, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition) Construct a new ConflictEnd object.Constructor parameters in org.opentrafficsim.road.network.lane.conflict with type arguments of type LaneModifierConstructorDescription(package private)
ConflictBuilderRecordBig
(int starti, List<Lane> lanes, LaneCombinationList ignoreList, LaneCombinationList permittedList, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges) Creates an instance of aConflictBuilderRecordBig
record class.(package private)
ConflictBuilderRecordBig
(int starti, List<Lane> lanes, LaneCombinationList ignoreList, LaneCombinationList permittedList, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges) Creates an instance of aConflictBuilderRecordBig
record class.(package private)
ConflictBuilderRecordSmall
(Lane lane1, Set<Lane> down1, Set<Lane> up1, Lane lane2, Set<Lane> down2, Set<Lane> up2, boolean permitted, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges) Creates an instance of aConflictBuilderRecordSmall
record class.(package private)
ConflictBuilderRecordSmall
(Lane lane1, Set<Lane> down1, Set<Lane> up1, Lane lane2, Set<Lane> down2, Set<Lane> up2, boolean permitted, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> leftEdges, Map<Lane, org.opentrafficsim.base.geometry.OtsLine2d> rightEdges) Creates an instance of aConflictBuilderRecordSmall
record class. -
Uses of Lane in org.opentrafficsim.road.network.lane.object
Methods in org.opentrafficsim.road.network.lane.object that return LaneModifier and TypeMethodDescriptionfinal Lane
AbstractLaneBasedObject.getLane()
LaneBasedObject.getLane()
Methods in org.opentrafficsim.road.network.lane.object with parameters of type LaneModifier and TypeMethodDescriptionstatic org.djutils.draw.line.PolyLine2d
Make a geometry perpendicular to the center line of the lane with a length 90% of the width of the lane.static org.djutils.draw.line.PolyLine2d
LaneBasedObject.makeLine
(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, double relativeWidth) Make 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 LaneModifierConstructorDescriptionprotected
AbstractLaneBasedObject
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djutils.draw.line.PolyLine2d line) Construct a new LaneBasedObject with the required fields.protected
AbstractLaneBasedObject
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djutils.draw.line.PolyLine2d line, org.djunits.value.vdouble.scalar.Length height) Construct a new AbstractLanebasedObject with the required fields.protected
AbstractLaneBasedObject
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djutils.draw.line.PolyLine2d line, org.djutils.draw.line.Polygon2d contour) Construct a new LaneBasedObject with the required fields.protected
AbstractLaneBasedObject
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djutils.draw.line.PolyLine2d line, org.djutils.draw.line.Polygon2d contour, org.djunits.value.vdouble.scalar.Length height) Construct a new AbstractLanebasedObject with the required fields.BusStop
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, String name, GtuType busType) Distraction
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, Distraction.DistractionProfile profile) SpeedSign
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djunits.value.vdouble.scalar.Speed speed, GtuType gtuType, org.djunits.value.vdouble.scalar.Duration startTimeOfDay, org.djunits.value.vdouble.scalar.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, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, org.djutils.draw.line.PolyLine2d line, org.djunits.value.vdouble.scalar.Length elevation, DetectorType detectorType) Create a detector on a lane at a position on that lane.LaneDetector
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, org.djutils.draw.line.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, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, DetectorType detectorType) Create a new Detector on a lane at a position on that lane at elevationDetector.DEFAULT_DETECTOR_ELEVATION
and default geometry.LoopDetector
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, DetectorType detectorType) Constructor for regular Dutch dual-loop detectors measuring flow and mean speed aggregated over 60s.ReportingDetector
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length position, RelativePosition.Type triggerPosition, DetectorType detectorType) Construct a new ReportingDetector.SinkDetector
(Lane lane, org.djunits.value.vdouble.scalar.Length position, DetectorType detectorType) Constructor.SinkDetector
(Lane lane, org.djunits.value.vdouble.scalar.Length position, DetectorType detectorType, BiPredicate<SinkDetector, LaneBasedGtu> predicate) Constructor.StartEndDetector
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, DetectorType detectorType) Construct a new StartEndDetector.TrafficLightDetector
(String id, Lane laneA, org.djunits.value.vdouble.scalar.Length positionA, Lane laneB, org.djunits.value.vdouble.scalar.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, org.djunits.value.vdouble.scalar.Length positionA, Lane laneB, org.djunits.value.vdouble.scalar.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, org.djunits.value.vdouble.scalar.Length longitudinalPosition) Construct an AbstractTrafficLight at default elevation (use only on roads at elevation 0).TrafficLight
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djunits.value.vdouble.scalar.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 LaneMethods in org.opentrafficsim.road.network.sampling with parameters of type LaneModifier and TypeMethodDescriptionfinal void
RoadSampler.notifySample
(LaneBasedGtu gtu, Lane lane, boolean scheduleNext) Samples a gtu and schedules the next sampling event.Constructors 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> K
OdOptions.get
(OdOptions.Option<K> option, Lane lane, Node node, LinkType linkType) Get option value.final <K> OdOptions
OdOptions.set
(Lane lane, OdOptions.Option<K> option, K value) Set option value for lane.