Uses of Class
org.opentrafficsim.road.network.lane.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
Modifier and TypeMethodDescriptionprotected Lane
Platoons.getPosition()
Returns the position for sub classes.Modifier 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
Modifier and TypeMethodDescriptionfinal Lane
LaneBasedGtu.getNextLaneForRoute
(Lane lane) Returns the next lane for a given lane to stay on the route.Modifier 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.Modifier 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
Modifier 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) 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.Modifier 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()
Modifier 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) 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. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.perception.headway
Modifier and TypeMethodDescriptionAbstractHeadwayLaneBasedObject.getLane()
Lane at which the object is located.HeadwayLaneBasedObject.getLane()
Lane at which the object is located.ModifierConstructorDescriptionAbstractHeadwayLaneBasedObject
(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
Modifier and TypeMethodDescriptionLaneRecord.getLane()
Returns the lane.LaneRecordInterface.getLane()
Returns the lane.SimpleLaneRecord.getLane()
Returns the lane.ModifierConstructorDescriptionLaneRecord
(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
Modifier 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.Modifier and TypeMethodDescriptionNextSplitInfo.correctCurrentLanes()
Returns the value of thecorrectCurrentLanes
record component.LanePathInfo.laneList()
Returns the value of thelaneList
record component.Modifier 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.Modifier 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.ModifierConstructorDescriptionLanePathInfo
(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
Modifier 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
Modifier 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. -
Uses of Lane in org.opentrafficsim.road.network.lane
Modifier and TypeMethodDescriptionstatic Lane
LaneGeometryUtil.createStraightLane
(CrossSectionLink link, String id, List<CrossSectionSlice> slices, 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 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.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.Modifier 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.Modifier 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.ModifierConstructorDescriptionLanePosition
(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
Modifier and TypeMethodDescriptionConflictBuilder.ConflictBuilderRecordSmall.lane1()
Returns the value of thelane1
record component.ConflictBuilder.ConflictBuilderRecordSmall.lane2()
Returns the value of thelane2
record component.Modifier 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.Modifier 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, OtsLine2d> leftEdges, Map<Lane, 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
Returns the begin width of this lane.final double
Returns the begin width of this lane.double
Returns the begin width of this lane.Modifier 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, OtsLine2d> leftEdges, Map<Lane, 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, OtsLine2d> leftEdges, Map<Lane, 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.ModifierConstructorDescription(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, OtsLine2d> leftEdges, Map<Lane, 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.ModifierConstructorDescription(package private)
ConflictBuilderRecordBig
(int starti, List<Lane> lanes, LaneCombinationList ignoreList, LaneCombinationList permittedList, OtsSimulatorInterface simulator, ConflictBuilder.WidthGenerator widthGenerator, Map<Lane, OtsLine2d> leftEdges, Map<Lane, 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, OtsLine2d> leftEdges, Map<Lane, 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, OtsLine2d> leftEdges, Map<Lane, 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, OtsLine2d> leftEdges, Map<Lane, OtsLine2d> rightEdges) Creates an instance of aConflictBuilderRecordSmall
record class. -
Uses of Lane in org.opentrafficsim.road.network.lane.object
Modifier and TypeMethodDescriptionfinal Lane
AbstractLaneBasedObject.getLane()
LaneBasedObject.getLane()
Modifier and TypeMethodDescriptionstatic org.djutils.draw.line.PolyLine2d
LaneBasedObject.makeGeometry
(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition) 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.makeGeometry
(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.ModifierConstructorDescriptionprotected
AbstractLaneBasedObject
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djutils.draw.line.PolyLine2d geometry) 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 geometry, 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, OtsSimulatorInterface simulator, GtuType busType) Distraction
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, OtsSimulatorInterface simulator, Distraction.DistractionProfile profile) SpeedSign
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, OtsSimulatorInterface simulator, 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
ModifierConstructorDescriptionLaneDetector
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, OtsSimulatorInterface simulator, org.djutils.draw.line.PolyLine2d geometry, 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, OtsSimulatorInterface simulator, org.djutils.draw.line.PolyLine2d geometry, 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, OtsSimulatorInterface simulator, 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, org.djunits.value.vdouble.scalar.Length length, DetectorType detectorType, OtsSimulatorInterface simulator, org.djunits.value.vdouble.scalar.Time firstAggregation, org.djunits.value.vdouble.scalar.Duration aggregation, LoopDetector.LoopDetectorMeasurement<?, ?>... measurements) Constructor.LoopDetector
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, DetectorType detectorType, OtsSimulatorInterface simulator) 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, OtsSimulatorInterface simulator, DetectorType detectorType) Construct a new ReportingDetector.SinkDetector
(Lane lane, org.djunits.value.vdouble.scalar.Length position, OtsSimulatorInterface simulator, DetectorType detectorType) Constructor.SinkDetector
(Lane lane, org.djunits.value.vdouble.scalar.Length position, OtsSimulatorInterface simulator, DetectorType detectorType, BiPredicate<SinkDetector, LaneBasedGtu> predicate) Constructor.StartEndDetector
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, RelativePosition.Type positionType, OtsSimulatorInterface simulator, 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, OtsSimulatorInterface simulator, DetectorType detectorType) Construct a new traffic light detector.
TODO Possibly provide the GtuTypes that trigger the detector as an argument for the constructorModifierConstructorDescriptionTrafficLightDetector
(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, OtsSimulatorInterface simulator, 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
ModifierConstructorDescriptionTrafficLight
(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, OtsSimulatorInterface simulator) 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, OtsSimulatorInterface simulator, org.djunits.value.vdouble.scalar.Length height) Construct an AbstractTrafficLight with specified elevation. -
Uses of Lane in org.opentrafficsim.road.network.sampling
Modifier and TypeMethodDescriptionfinal void
RoadSampler.notifySample
(LaneBasedGtu gtu, Lane lane, boolean scheduleNext) Samples a gtu and schedules the next sampling event. -
Uses of Lane in org.opentrafficsim.road.od
Modifier 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.