Uses of Class
org.opentrafficsim.road.network.lane.Lane
| Package | Description |
|---|---|
| org.opentrafficsim.road.gtu.generator |
Generate GTUs according to some prescription.
|
| org.opentrafficsim.road.gtu.generator.od |
OD based vehicle generation.
|
| org.opentrafficsim.road.gtu.lane |
The lane-based GTUs are the Generalized Travel Units that travel in lanes, and need to switch lanes to overtake.
|
| org.opentrafficsim.road.gtu.lane.perception |
Implementation of lane-based perception for the GTU.
|
| org.opentrafficsim.road.gtu.lane.perception.categories |
Categories define a set of perceivable information.
|
| org.opentrafficsim.road.gtu.lane.perception.headway |
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| org.opentrafficsim.road.gtu.lane.tactical |
Tactical planners for a lane-based GTU.
|
| org.opentrafficsim.road.network.factory |
Factories for Links, Lanes, Nodes.
|
| org.opentrafficsim.road.network.lane |
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
|
| org.opentrafficsim.road.network.lane.conflict |
Contains classes describing intersection conflicts.
|
| org.opentrafficsim.road.network.lane.object |
Lane-based objects such as barriers, gates, traffic lights, DRIPs, speed signs, obstacles on the road, etc.
|
| org.opentrafficsim.road.network.lane.object.sensor |
Lane-based objects that act as sensors.
|
| org.opentrafficsim.road.network.lane.object.trafficlight |
Traffic light and traffic light controller objects.
|
| org.opentrafficsim.road.network.sampling |
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
-
Uses of Lane in org.opentrafficsim.road.gtu.generator
Methods in org.opentrafficsim.road.gtu.generator with parameters of type Lane Modifier and Type Method Description HeadwayAbstractGTUGeneratorOld. headway(Length maxDistance, Lane generatorLane)Check the available headway for GTU that is about to be constructed. -
Uses of Lane in org.opentrafficsim.road.gtu.generator.od
Methods in org.opentrafficsim.road.gtu.generator.od with parameters of type Lane Modifier and Type Method Description <K> KODOptions. get(ODOptions.Option<K> option, Lane lane, Node node, LinkType linkType)Get option value.<K> ODOptionsODOptions. set(Lane lane, ODOptions.Option<K> option, K value)Set option value for lane. -
Uses of Lane in org.opentrafficsim.road.gtu.lane
Methods in org.opentrafficsim.road.gtu.lane that return types with arguments of type Lane Modifier and Type Method Description java.util.Map<Lane,java.lang.Double>AbstractLaneBasedGTU. 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.java.util.Map<Lane,java.lang.Double>AbstractLaneBasedGTU. fractionalPositions(RelativePosition relativePosition, 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.java.util.Map<Lane,java.lang.Double>AbstractLaneBasedGTU2. 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.java.util.Map<Lane,java.lang.Double>AbstractLaneBasedGTU2. fractionalPositions(RelativePosition relativePosition, 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.java.util.Map<Lane,java.lang.Double>LaneBasedGTU. 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.java.util.Map<Lane,java.lang.Double>LaneBasedGTU. fractionalPositions(RelativePosition relativePosition, 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.java.util.Map<Lane,Length>AbstractLaneBasedGTU. 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.java.util.Map<Lane,Length>AbstractLaneBasedGTU. positions(RelativePosition relativePosition, 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.java.util.Map<Lane,Length>AbstractLaneBasedGTU2. 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.java.util.Map<Lane,Length>AbstractLaneBasedGTU2. positions(RelativePosition relativePosition, 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.java.util.Map<Lane,Length>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.java.util.Map<Lane,Length>LaneBasedGTU. positions(RelativePosition relativePosition, 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 Lane Modifier and Type Method Description protected voidAbstractLaneBasedGTU. addGtuToLane(Lane lane, Length position)Part of 'enterLane' which registers the GTU with the lane so the lane can report its GTUs.voidAbstractLaneBasedGTU. addTrigger(Lane lane, SimEventInterface<SimTimeDoubleUnit> event)Add an event to the list of lane triggers scheduled for this GTU.voidAbstractLaneBasedGTU2. addTrigger(Lane lane, SimEventInterface<SimTimeDoubleUnit> event)Add an event to the list of lane triggers scheduled for this GTU.voidLaneBasedGTU. addTrigger(Lane lane, SimEventInterface<SimTimeDoubleUnit> event)Add an event to the list of lane triggers scheduled for this GTU.voidAbstractLaneBasedGTU. enterLane(Lane lane, Length position, GTUDirectionality gtuDirection)insert GTU at a certain position.doubleAbstractLaneBasedGTU. 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.doubleAbstractLaneBasedGTU. fractionalPosition(Lane lane, RelativePosition relativePosition, 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.doubleAbstractLaneBasedGTU2. 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.doubleAbstractLaneBasedGTU2. fractionalPosition(Lane lane, RelativePosition relativePosition, 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.doubleLaneBasedGTU. 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.doubleLaneBasedGTU. fractionalPosition(Lane lane, RelativePosition relativePosition, 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.GTUDirectionalityAbstractLaneBasedGTU. getDirection(Lane lane)Return the directionality of a lane on which the GTU is registered for its current operational plan.GTUDirectionalityAbstractLaneBasedGTU2. getDirection(Lane lane)Return the directionality of a lane on which the GTU is registered for its current operational plan.GTUDirectionalityLaneBasedGTU. getDirection(Lane lane)Return the directionality of a lane on which the GTU is registered for its current operational plan.LengthAbstractLaneBasedGTU2. getLateralPosition(Lane lane)Returns the lateral position of the GTU relative to the lane center line.LengthLaneBasedGTU. getLateralPosition(Lane lane)Returns the lateral position of the GTU relative to the lane center line.default LengthLaneBasedGTU. getProjectedLength(Lane lane)Get projected length on the lane.voidAbstractLaneBasedGTU. leaveLane(Lane lane)Unregister the GTU from a lane.voidAbstractLaneBasedGTU. leaveLane(Lane lane, boolean beingDestroyed)Leave a lane but do not complain about having no lanes left when beingDestroyed is true.LengthAbstractLaneBasedGTU. 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.LengthAbstractLaneBasedGTU. position(Lane lane, RelativePosition relativePosition, Time when)Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.LengthAbstractLaneBasedGTU2. 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.LengthAbstractLaneBasedGTU2. position(Lane lane, RelativePosition relativePosition, Time when)Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.LengthLaneBasedGTU. 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.LengthLaneBasedGTU. position(Lane lane, RelativePosition relativePosition, Time when)Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.LengthAbstractLaneBasedGTU. projectedPosition(Lane projectionLane, RelativePosition relativePosition, Time when)Return the longitudinal position on the projection lane that has the same fractional position on one of the current lanes of the indicated relative position.protected voidAbstractLaneBasedGTU2. scheduleTriggers(Lane lane, GTUDirectionality direction)Schedules all trigger events during the current operational plan on the lane.LengthAbstractLaneBasedGTU. translatedPosition(Lane projectionLane, RelativePosition relativePosition, Time when)Return the longitudinal position that the indicated relative position of this GTU would have if it were to change to another Lane with a / the current CrossSectionLink. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.perception
Methods in org.opentrafficsim.road.gtu.lane.perception that return Lane Modifier and Type Method Description LaneLaneDirectionRecord. getLane()Returns the lane.LaneLaneRecord. getLane()Returns the lane.LaneRollingLaneStructureRecord. getLane()Returns the lane.Constructors in org.opentrafficsim.road.gtu.lane.perception with parameters of type Lane Constructor Description LaneDirectionRecord(Lane lane, GTUDirectionality dir, Length startDistance, GTUType gtuType)Constructor.RollingLaneStructureRecord(Lane lane, GTUDirectionality direction, Length startDistance)RollingLaneStructureRecord(Lane lane, GTUDirectionality direction, RollingLaneStructureRecord startDistanceSource, RollingLaneStructureRecord.RecordLink recordLink)Constructor. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.perception.categories
Methods in org.opentrafficsim.road.gtu.lane.perception.categories that return Lane Modifier and Type Method Description LaneDefaultSimplePerception. bestAccessibleAdjacentLane(Lane currentLane, LateralDirectionality lateralDirection, 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.LaneDirectDefaultSimplePerception. bestAccessibleAdjacentLane(Lane currentLane, LateralDirectionality lateralDirection, 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.Methods in org.opentrafficsim.road.gtu.lane.perception.categories that return types with arguments of type Lane Modifier and Type Method Description java.util.Map<Lane,java.util.Set<Lane>>DefaultSimplePerception. getAccessibleAdjacentLanes(LateralDirectionality lateralDirection)java.util.Map<Lane,java.util.Set<Lane>>DefaultSimplePerception. getAccessibleAdjacentLanes(LateralDirectionality lateralDirection)java.util.Map<Lane,java.util.Set<Lane>>DirectDefaultSimplePerception. getAccessibleAdjacentLanes(LateralDirectionality lateralDirection)java.util.Map<Lane,java.util.Set<Lane>>DirectDefaultSimplePerception. getAccessibleAdjacentLanes(LateralDirectionality lateralDirection)java.util.Map<Lane,java.util.Set<Lane>>DefaultSimplePerception. getAccessibleAdjacentLanesLeft()java.util.Map<Lane,java.util.Set<Lane>>DefaultSimplePerception. getAccessibleAdjacentLanesLeft()java.util.Map<Lane,java.util.Set<Lane>>DirectDefaultSimplePerception. getAccessibleAdjacentLanesLeft()java.util.Map<Lane,java.util.Set<Lane>>DirectDefaultSimplePerception. getAccessibleAdjacentLanesLeft()java.util.Map<Lane,java.util.Set<Lane>>DefaultSimplePerception. getAccessibleAdjacentLanesRight()java.util.Map<Lane,java.util.Set<Lane>>DefaultSimplePerception. getAccessibleAdjacentLanesRight()java.util.Map<Lane,java.util.Set<Lane>>DirectDefaultSimplePerception. getAccessibleAdjacentLanesRight()java.util.Map<Lane,java.util.Set<Lane>>DirectDefaultSimplePerception. getAccessibleAdjacentLanesRight()TimeStampedObject<java.util.Map<Lane,java.util.Set<Lane>>>DirectDefaultSimplePerception. getTimeStampedAccessibleAdjacentLanes(LateralDirectionality lateralDirection)TimeStampedObject<java.util.Map<Lane,java.util.Set<Lane>>>DirectDefaultSimplePerception. getTimeStampedAccessibleAdjacentLanes(LateralDirectionality lateralDirection)TimeStampedObject<java.util.Map<Lane,java.util.Set<Lane>>>DirectDefaultSimplePerception. getTimeStampedAccessibleAdjacentLanesLeft()TimeStampedObject<java.util.Map<Lane,java.util.Set<Lane>>>DirectDefaultSimplePerception. getTimeStampedAccessibleAdjacentLanesLeft()TimeStampedObject<java.util.Map<Lane,java.util.Set<Lane>>>DirectDefaultSimplePerception. getTimeStampedAccessibleAdjacentLanesRight()TimeStampedObject<java.util.Map<Lane,java.util.Set<Lane>>>DirectDefaultSimplePerception. getTimeStampedAccessibleAdjacentLanesRight()Methods in org.opentrafficsim.road.gtu.lane.perception.categories with parameters of type Lane Modifier and Type Method Description LaneDefaultSimplePerception. bestAccessibleAdjacentLane(Lane currentLane, LateralDirectionality lateralDirection, 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.LaneDirectDefaultSimplePerception. bestAccessibleAdjacentLane(Lane currentLane, LateralDirectionality lateralDirection, 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
Methods in org.opentrafficsim.road.gtu.lane.perception.headway that return Lane Modifier and Type Method Description LaneAbstractHeadwayLaneBasedObject. getLane()Lane at which the object is located.LaneHeadwayLaneBasedObject. getLane()Lane at which the object is located.Constructors in org.opentrafficsim.road.gtu.lane.perception.headway with parameters of type Lane Constructor Description AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType, java.lang.String id, Length overlapFront, Length overlap, Length overlapRear, Length length, Lane lane)Construct a new Headway information object, for a non-moving object parallel with us.AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType, java.lang.String id, Length overlapFront, Length overlap, Length overlapRear, Lane lane)Construct a new Headway information object, for a non-moving object parallel with us.AbstractHeadwayLaneBasedObject(Headway.ObjectType objectType, java.lang.String id, Length distance, 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, java.lang.String id, Length distance, Lane lane)Construct a new Headway information object, for a non-moving object ahead of us or behind us.HeadwayBusStop(BusStop busStop, Length distance, RelativeLane relativeLane, java.util.Set<java.lang.String> conflictIds, Lane lane)HeadwayConflict(ConflictType conflictType, ConflictPriority conflictPriority, java.lang.Class<? extends ConflictRule> conflictRuleType, java.lang.String id, Length distance, Length length, Length conflictingLength, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs, Length conflictingVisibility, Speed conflictingSpeedLimit, CrossSectionLink conflictingLink, HeadwayConflict.Width width, HeadwayStopLine stopLine, HeadwayStopLine conflictingStopLine, Lane lane)Constructor.HeadwayConflict(ConflictType conflictType, ConflictPriority conflictPriority, java.lang.Class<? extends ConflictRule> conflictRuleType, java.lang.String id, Length distance, Length length, Length conflictingLength, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> upstreamConflictingGTUs, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> downstreamConflictingGTUs, Length conflictingVisibility, Speed conflictingSpeedLimit, CrossSectionLink conflictingLink, HeadwayConflict.Width width, Lane lane)Constructor without stop lines.HeadwayStopLine(java.lang.String id, Length distance, Lane lane)Construct a new HeadwayStopLine. -
Uses of Lane in org.opentrafficsim.road.gtu.lane.tactical
Methods in org.opentrafficsim.road.gtu.lane.tactical that return Lane Modifier and Type Method Description LaneLanePathInfo. getReferenceLane()The reference lane is the widest lane on which the reference point of the GTU is fully registered.Methods in org.opentrafficsim.road.gtu.lane.tactical that return types with arguments of type Lane Modifier and Type Method Description java.util.Set<Lane>NextSplitInfo. getCorrectCurrentLanes()java.util.List<Lane>LanePathInfo. getLanes()Methods in org.opentrafficsim.road.gtu.lane.tactical with parameters of type Lane Modifier and Type Method Description static LanePathInfoAbstractLaneBasedTacticalPlanner. buildLanePathInfo(LaneBasedGTU gtu, Length maxHeadway, Lane startLane, Length position, GTUDirectionality startDirectionality)Build a list of lanes forward, with a maximum headway relative to the reference point of the GTU.protected LengthLaneBasedCFLCTacticalPlanner. computeSuitabilityWithLaneChanges(Lane startLane, double remainingDistance, java.util.Map<Lane,Length> suitabilities, int totalLanes, LateralDirectionality direction, GTUType gtuType, GTUDirectionality drivingDirection)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 booleanAbstractLaneBasedTacticalPlanner. connectsToPath(LaneBasedGTU gtu, Length maxHeadway, Lane startLane, Length startLanePosition, GTUDirectionality startDirectionality, 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?protected static booleanAbstractLaneBasedTacticalPlanner. noLaneDrop(LaneBasedGTU gtu, Length maxHeadway, Lane startLane, Length startLanePosition, GTUDirectionality startDirectionality)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?Method parameters in org.opentrafficsim.road.gtu.lane.tactical with type arguments of type Lane Modifier and Type Method Description protected LengthLaneBasedCFLCTacticalPlanner. computeSuitabilityWithLaneChanges(Lane startLane, double remainingDistance, java.util.Map<Lane,Length> suitabilities, int totalLanes, LateralDirectionality direction, GTUType gtuType, GTUDirectionality drivingDirection)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 Lane Constructor Description NextSplitInfo(Node nextSplitNode, java.util.Set<Lane> correctCurrentLanes)NextSplitInfo(Node nextSplitNode, java.util.Set<Lane> correctCurrentLanes, LateralDirectionality requiredDirection) -
Uses of Lane in org.opentrafficsim.road.network.factory
Methods in org.opentrafficsim.road.network.factory that return Lane Modifier and Type Method Description static LaneLaneFactory. makeLane(RoadNetwork network, java.lang.String name, OTSRoadNode from, OTSRoadNode to, OTSPoint3D[] intermediatePoints, LaneType laneType, Speed speedLimit, OTSSimulatorInterface simulator)Create a simple Lane.static Lane[]LaneFactory. makeMultiLane(RoadNetwork network, java.lang.String name, OTSRoadNode from, OTSRoadNode to, OTSPoint3D[] intermediatePoints, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType laneType, Speed speedLimit, OTSSimulatorInterface simulator)Create a simple road with the specified number of Lanes.
This method returns an array of Lane.static Lane[]LaneFactory. makeMultiLane(RoadNetwork network, java.lang.String name, OTSRoadNode from, OTSRoadNode to, OTSPoint3D[] intermediatePoints, int laneCount, LaneType laneType, Speed speedLimit, OTSSimulatorInterface simulator)Create a simple road with the specified number of Lanes.
This method returns an array of Lane.static Lane[]LaneFactory. makeMultiLaneBezier(RoadNetwork network, java.lang.String name, OTSRoadNode n1, OTSRoadNode n2, OTSRoadNode n3, OTSRoadNode n4, int laneCount, int laneOffsetAtStart, int laneOffsetAtEnd, LaneType laneType, Speed speedLimit, OTSSimulatorInterface simulator)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 Modifier and Type Method Description java.util.List<Lane>LaneFactory. getLanes()Returns the created lanes in build order. -
Uses of Lane in org.opentrafficsim.road.network.lane
Subclasses of Lane in org.opentrafficsim.road.network.lane Modifier and Type Class Description classNoTrafficLaneLane without traffic, e.g.Methods in org.opentrafficsim.road.network.lane that return Lane Modifier and Type Method Description LaneLane. clone(CrossSectionLink newParentLink, SimulatorInterface.TimeDoubleUnit newSimulator)Clone the CrossSectionElement for e.g., copying a network.LaneDirectedLanePosition. getLane()Retrieve the lane.LaneLaneDirection. getLane()Methods in org.opentrafficsim.road.network.lane that return types with arguments of type Lane Modifier and Type Method Description java.util.Set<Lane>Lane. accessibleAdjacentLanesLegal(LateralDirectionality lateralDirection, GTUType gtuType, GTUDirectionality drivingDirection)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.java.util.Set<Lane>Lane. accessibleAdjacentLanesPhysical(LateralDirectionality lateralDirection, GTUType gtuType, GTUDirectionality drivingDirection)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.ImmutableMap<Lane,GTUDirectionality>Lane. downstreamLanes(GTUDirectionality direction, GTUType gtuType)Returns the lanes that could be followed in a given direction and for the given GTU type.java.util.List<Lane>CrossSectionLink. getLanes()Return a safe copy of the list of lanes of this CrossSectionLink.java.util.Map<Lane,GTUDirectionality>Lane. nextLanes(GTUType gtuType)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.java.util.Map<Lane,GTUDirectionality>Lane. prevLanes(GTUType gtuType)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.ImmutableMap<Lane,GTUDirectionality>Lane. upstreamLanes(GTUDirectionality direction, GTUType gtuType)Returns the lanes that could precede in a given direction and for the given GTU type.Constructors in org.opentrafficsim.road.network.lane with parameters of type Lane Constructor Description DirectedLanePosition(Lane lane, Length position, GTUDirectionality gtuDirection)Construct a new DirectedLanePosition.Lane(CrossSectionLink newParentLink, SimulatorInterface.TimeDoubleUnit newSimulator, Lane cse)Clone a Lane for a new network.LaneDirection(Lane lane, GTUDirectionality direction) -
Uses of Lane in org.opentrafficsim.road.network.lane.conflict
Methods in org.opentrafficsim.road.network.lane.conflict with parameters of type Lane Modifier and Type Method Description voidLaneCombinationList. addLaneCombination(Lane lane1, Lane lane2)Add lane combination to the list.static voidConflictBuilder. buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator)Build conflict on single lane pair.static voidConflictBuilder. buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, boolean permitted)Build conflict on single lane pair.static voidConflictBuilderParallel. buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator)Build conflict on single lane pair.static voidConflictBuilderParallel. buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, boolean permitted)Build conflict on single lane pair.booleanLaneCombinationList. contains(Lane lane1, Lane lane2)Returns whether the combination of the two lanes is included.static voidConflict. generateConflictPair(ConflictType conflictType, ConflictRule conflictRule, boolean permitted, Lane lane1, Length longitudinalPosition1, Length length1, GTUDirectionality direction1, OTSLine3D geometry1, GTUType gtuType1, Lane lane2, Length longitudinalPosition2, Length length2, GTUDirectionality direction2, OTSLine3D geometry2, GTUType gtuType2, DEVSSimulatorInterface.TimeDoubleUnit simulator)Creates a pair of conflicts.doubleConflictBuilder.FixedWidthGenerator. getWidth(Lane lane, double fraction)Returns the begin width of this lane.doubleConflictBuilder.RelativeWidthGenerator. getWidth(Lane lane, double fraction)Returns the begin width of this lane.doubleConflictBuilder.WidthGenerator. getWidth(Lane lane, double fraction)Returns the begin width of this lane.doubleConflictBuilderParallel.FixedWidthGenerator. getWidth(Lane lane, double fraction)Returns the begin width of this lane.doubleConflictBuilderParallel.RelativeWidthGenerator. getWidth(Lane lane, double fraction)Returns the begin width of this lane.doubleConflictBuilderParallel.WidthGenerator. getWidth(Lane lane, double fraction)Returns the begin width of this lane.Method parameters in org.opentrafficsim.road.network.lane.conflict with type arguments of type Lane Modifier and Type Method Description static voidConflictBuilder. buildConflicts(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator)Build conflicts on list of lanes.static voidConflictBuilder. buildConflicts(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)Build conflicts on list of lanes.static voidConflictBuilderParallel. buildConflicts(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator)Build conflicts on list of lanes.static voidConflictBuilder. buildConflictsParallel(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator)Build conflicts on list of lanes; parallel implementation.static voidConflictBuilder. buildConflictsParallelBig(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)Build conflicts on list of lanes; parallel implementation.static voidConflictBuilderParallel. buildConflictsParallelBig(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)Build conflicts on list of lanes.static voidConflictBuilder. buildConflictsParallelSmall(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)Build conflicts on list of lanes; parallel implementation.static voidConflictBuilderParallel. buildConflictsParallelSmall(java.util.List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)Build conflicts on list of lanes. -
Uses of Lane in org.opentrafficsim.road.network.lane.object
Methods in org.opentrafficsim.road.network.lane.object that return Lane Modifier and Type Method Description LaneAbstractLaneBasedObject. getLane()LaneLaneBasedObject. getLane()Methods in org.opentrafficsim.road.network.lane.object with parameters of type Lane Modifier and Type Method Description static OTSLine3DLaneBasedObject. makeGeometry(Lane lane, Length position)Make a geometry perpendicular to the center line of the lane at the given position.Constructors in org.opentrafficsim.road.network.lane.object with parameters of type Lane Constructor Description AbstractLaneBasedObject(java.lang.String id, Lane lane, Length longitudinalPosition, OTSLine3D geometry)Construct a new LaneBasedObject with the required fields.AbstractLaneBasedObject(java.lang.String id, Lane lane, Length longitudinalPosition, OTSLine3D geometry, Length height)Construct a new AbstractLanebasedObject with the required fields.AbstractLaneBasedObject(java.lang.String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, OTSLine3D geometry)Construct a new LaneBasedObject with the required fields.AbstractLaneBasedObject(java.lang.String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, OTSLine3D geometry, Length height)Construct a new AbstractLanebasedObject with the required fields.BusStop(java.lang.String id, Lane lane, Length longitudinalPosition, java.lang.String name, SimulatorInterface.TimeDoubleUnit simulator)Distraction(java.lang.String id, Lane lane, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Distraction.DistractionProfile profile)SpeedSign(java.lang.String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Speed speed)Speed sign active all day for all GTU types.SpeedSign(java.lang.String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Speed speed, Duration startTimeOfDay, Duration endTimeOfDay)Speed sign for all GTU types.SpeedSign(java.lang.String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Speed speed, GTUType gtuType)Speed sign active all day.SpeedSign(java.lang.String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Speed speed, GTUType gtuType, Duration startTimeOfDay, Duration endTimeOfDay)Construct a new SpeedSign. -
Uses of Lane in org.opentrafficsim.road.network.lane.object.sensor
Methods in org.opentrafficsim.road.network.lane.object.sensor with parameters of type Lane Modifier and Type Method Description protected static OTSLine3DAbstractSensor. makeGeometry(Lane lane, Length longitudinalPosition, double relativeWidth)Make a geometry perpendicular to the center line of the lane with a length of 90% of the width of the lane.Constructors in org.opentrafficsim.road.network.lane.object.sensor with parameters of type Lane Constructor Description AbstractSensor(java.lang.String id, Lane lane, Length longitudinalPosition, RelativePosition.TYPE positionType, DEVSSimulatorInterface.TimeDoubleUnit simulator, Compatible detectedGTUTypes)Create a new AbstractSensor on a lane at a position on that lane at elevationSensor.DEFAULT_SENSOR_ELEVATIONand default geometry.AbstractSensor(java.lang.String id, Lane lane, Length longitudinalPosition, RelativePosition.TYPE positionType, DEVSSimulatorInterface.TimeDoubleUnit simulator, OTSLine3D geometry, Length elevation, Compatible detectedGTUTypes)Create a sensor on a lane at a position on that lane.AbstractSensor(java.lang.String id, Lane lane, Length longitudinalPosition, RelativePosition.TYPE positionType, DEVSSimulatorInterface.TimeDoubleUnit simulator, OTSLine3D geometry, Compatible detectedGTUTypes)Create a sensor on a lane at a position on that lane at elevationSensor.DEFAULT_SENSOR_ELEVATION.DestinationSensor(Lane lane, Length position, Compatible compatible, DEVSSimulatorInterface.TimeDoubleUnit simulator)DestinationSensor(Lane lane, Length position, GTUDirectionality gtuDirectionality, DEVSSimulatorInterface.TimeDoubleUnit simulator)Detector(java.lang.String id, Lane lane, Length longitudinalPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator)Constructor for regular Dutch dual-loop detectors measuring flow and mean speed aggregated over 60s.Detector(java.lang.String id, Lane lane, Length longitudinalPosition, Length length, DEVSSimulatorInterface.TimeDoubleUnit simulator, Duration aggregation, Detector.DetectorMeasurement<?,?>... measurements)Constructor.SimpleReportingSensor(java.lang.String id, Lane lane, Length position, RelativePosition.TYPE triggerPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator, Compatible compatible)Construct a new SimpleReportingSensor.SinkSensor(Lane lane, Length position, Compatible compatible, DEVSSimulatorInterface.TimeDoubleUnit simulator)SinkSensor(Lane lane, Length position, GTUDirectionality gtuDirectionality, DEVSSimulatorInterface.TimeDoubleUnit simulator)TrafficLightSensor(java.lang.String id, Lane laneA, Length positionA, Lane laneB, Length positionB, java.util.List<Lane> intermediateLanes, RelativePosition.TYPE entryPosition, RelativePosition.TYPE exitPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator, Compatible compatible)Construct a new traffic light sensor.
TODO Possibly provide the GTUTypes that trigger the sensor as an argument for the constructorConstructor parameters in org.opentrafficsim.road.network.lane.object.sensor with type arguments of type Lane Constructor Description TrafficLightSensor(java.lang.String id, Lane laneA, Length positionA, Lane laneB, Length positionB, java.util.List<Lane> intermediateLanes, RelativePosition.TYPE entryPosition, RelativePosition.TYPE exitPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator, Compatible compatible)Construct a new traffic light sensor.
TODO Possibly provide the GTUTypes that trigger the sensor 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 Lane Constructor Description AbstractTrafficLight(java.lang.String id, Lane lane, Length longitudinalPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator)Construct an AbstractTrafficLight at default elevation (use only on roads at elevation 0).AbstractTrafficLight(java.lang.String id, Lane lane, Length longitudinalPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator, Length height)Construct an AbstractTrafficLight with specified elevation.FlankSensor(java.lang.String id, Lane lane, Length longitudinalPosition, RelativePosition.TYPE positionType, DEVSSimulatorInterface.TimeDoubleUnit simulator, TrafficLightSensor parent, Compatible compatible)Construct a new FlankSensor.SimpleTrafficLight(java.lang.String id, Lane lane, Length longitudinalPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator) -
Uses of Lane in org.opentrafficsim.road.network.sampling
Methods in org.opentrafficsim.road.network.sampling that return Lane Modifier and Type Method Description LaneLaneData. getLane()Constructors in org.opentrafficsim.road.network.sampling with parameters of type Lane Constructor Description LaneData(Lane lane)