Uses of Class
org.opentrafficsim.road.network.lane.Lane
-
Packages that use 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 Headway
AbstractGTUGeneratorOld. 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> K
ODOptions. get(ODOptions.Option<K> option, Lane lane, Node node, LinkType linkType)
Get option value.<K> ODOptions
ODOptions. 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 Map<Lane,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.Map<Lane,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.Map<Lane,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.Map<Lane,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.Map<Lane,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.Map<Lane,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.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.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.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.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.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.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 void
AbstractLaneBasedGTU. addGtuToLane(Lane lane, Length position)
Part of 'enterLane' which registers the GTU with the lane so the lane can report its GTUs.void
AbstractLaneBasedGTU. addTrigger(Lane lane, SimEventInterface<SimTimeDoubleUnit> event)
Add an event to the list of lane triggers scheduled for this GTU.void
AbstractLaneBasedGTU2. addTrigger(Lane lane, SimEventInterface<SimTimeDoubleUnit> event)
Add an event to the list of lane triggers scheduled for this GTU.void
LaneBasedGTU. addTrigger(Lane lane, SimEventInterface<SimTimeDoubleUnit> event)
Add an event to the list of lane triggers scheduled for this GTU.void
AbstractLaneBasedGTU. enterLane(Lane lane, Length position, GTUDirectionality gtuDirection)
insert GTU at a certain position.double
AbstractLaneBasedGTU. 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.double
AbstractLaneBasedGTU. 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.double
AbstractLaneBasedGTU2. 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.double
AbstractLaneBasedGTU2. 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.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.double
LaneBasedGTU. 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.GTUDirectionality
AbstractLaneBasedGTU. getDirection(Lane lane)
Return the directionality of a lane on which the GTU is registered for its current operational plan.GTUDirectionality
AbstractLaneBasedGTU2. getDirection(Lane lane)
Return the directionality of a lane on which the GTU is registered for its current operational plan.GTUDirectionality
LaneBasedGTU. getDirection(Lane lane)
Return the directionality of a lane on which the GTU is registered for its current operational plan.Length
AbstractLaneBasedGTU2. getLateralPosition(Lane lane)
Returns the lateral position of the GTU relative to the lane center line.Length
LaneBasedGTU. getLateralPosition(Lane lane)
Returns the lateral position of the GTU relative to the lane center line.default Length
LaneBasedGTU. getProjectedLength(Lane lane)
Get projected length on the lane.void
AbstractLaneBasedGTU. leaveLane(Lane lane)
Unregister the GTU from a lane.void
AbstractLaneBasedGTU. leaveLane(Lane lane, boolean beingDestroyed)
Leave a lane but do not complain about having no lanes left when beingDestroyed is true.Length
AbstractLaneBasedGTU. 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.Length
AbstractLaneBasedGTU. 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.Length
AbstractLaneBasedGTU2. 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.Length
AbstractLaneBasedGTU2. 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.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.Length
LaneBasedGTU. 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.Length
AbstractLaneBasedGTU. 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 void
AbstractLaneBasedGTU2. scheduleTriggers(Lane lane, GTUDirectionality direction)
Schedules all trigger events during the current operational plan on the lane.Length
AbstractLaneBasedGTU. 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 Lane
LaneDirectionRecord. getLane()
Returns the lane.Lane
LaneRecord. getLane()
Returns the lane.Lane
RollingLaneStructureRecord. 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 Lane
DefaultSimplePerception. 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.Lane
DirectDefaultSimplePerception. 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 with parameters of type Lane Modifier and Type Method Description Lane
DefaultSimplePerception. 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.Lane
DirectDefaultSimplePerception. 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 Lane
AbstractHeadwayLaneBasedObject. getLane()
Lane at which the object is located.Lane
HeadwayLaneBasedObject. 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, 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, 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, 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, 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, Set<String> conflictIds, Lane lane)
HeadwayConflict(ConflictType conflictType, ConflictPriority conflictPriority, Class<? extends ConflictRule> conflictRuleType, 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, Class<? extends ConflictRule> conflictRuleType, 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(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 Lane
LanePathInfo. 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 Set<Lane>
NextSplitInfo. getCorrectCurrentLanes()
List<Lane>
LanePathInfo. getLanes()
Methods in org.opentrafficsim.road.gtu.lane.tactical with parameters of type Lane Modifier and Type Method Description static LanePathInfo
AbstractLaneBasedTacticalPlanner. 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 Length
LaneBasedCFLCTacticalPlanner. computeSuitabilityWithLaneChanges(Lane startLane, double remainingDistance, 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 boolean
AbstractLaneBasedTacticalPlanner. 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 boolean
AbstractLaneBasedTacticalPlanner. 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 Length
LaneBasedCFLCTacticalPlanner. computeSuitabilityWithLaneChanges(Lane startLane, double remainingDistance, 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, Set<Lane> correctCurrentLanes)
NextSplitInfo(Node nextSplitNode, 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 Lane
LaneFactory. makeLane(OTSRoadNetwork network, String name, OTSRoadNode from, OTSRoadNode to, OTSPoint3D[] intermediatePoints, LaneType laneType, Speed speedLimit, OTSSimulatorInterface simulator)
Create a simple Lane.static Lane[]
LaneFactory. makeMultiLane(OTSRoadNetwork network, 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(OTSRoadNetwork network, 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(OTSRoadNetwork network, 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 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 class
NoTrafficLane
Lane without traffic, e.g.Methods in org.opentrafficsim.road.network.lane that return Lane Modifier and Type Method Description Lane
Lane. clone(CrossSectionLink newParentLink, SimulatorInterface.TimeDoubleUnit newSimulator)
Clone the CrossSectionElement for e.g., copying a network.Lane
DirectedLanePosition. getLane()
Retrieve the lane.Lane
LaneDirection. getLane()
Methods in org.opentrafficsim.road.network.lane that return types with arguments of type Lane Modifier and Type Method Description 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.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.List<Lane>
CrossSectionLink. getLanes()
Return a safe copy of the list of lanes of this CrossSectionLink.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.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, 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 void
LaneCombinationList. addLaneCombination(Lane lane1, Lane lane2)
Add lane combination to the list.static void
ConflictBuilder. buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator)
Build conflict on single lane pair.static void
ConflictBuilder. 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 void
ConflictBuilderParallel. buildConflicts(Lane lane1, GTUDirectionality dir1, Lane lane2, GTUDirectionality dir2, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator)
Build conflict on single lane pair.static void
ConflictBuilderParallel. 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.boolean
LaneCombinationList. contains(Lane lane1, Lane lane2)
Returns whether the combination of the two lanes is included.static void
Conflict. 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.double
ConflictBuilder.FixedWidthGenerator. getWidth(Lane lane, double fraction)
Returns the begin width of this lane.double
ConflictBuilder.RelativeWidthGenerator. getWidth(Lane lane, double fraction)
Returns the begin width of this lane.double
ConflictBuilder.WidthGenerator. getWidth(Lane lane, double fraction)
Returns the begin width of this lane.double
ConflictBuilderParallel.FixedWidthGenerator. getWidth(Lane lane, double fraction)
Returns the begin width of this lane.double
ConflictBuilderParallel.RelativeWidthGenerator. getWidth(Lane lane, double fraction)
Returns the begin width of this lane.double
ConflictBuilderParallel.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 void
ConflictBuilder. buildConflicts(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator)
Build conflicts on list of lanes.static void
ConflictBuilder. buildConflicts(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList, String conflictId)
Build conflicts on list of lanes.static void
ConflictBuilderParallel. buildConflicts(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator)
Build conflicts on list of lanes.static void
ConflictBuilder. buildConflictsParallel(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator)
Build conflicts on list of lanes; parallel implementation.static void
ConflictBuilder. buildConflictsParallelBig(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)
Build conflicts on list of lanes; parallel implementation.static void
ConflictBuilderParallel. buildConflictsParallelBig(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilderParallel.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)
Build conflicts on list of lanes.static void
ConflictBuilder. buildConflictsParallelSmall(List<Lane> lanes, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, ConflictBuilder.WidthGenerator widthGenerator, LaneCombinationList ignoreList, LaneCombinationList permittedList)
Build conflicts on list of lanes; parallel implementation.static void
ConflictBuilderParallel. buildConflictsParallelSmall(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 Lane
AbstractLaneBasedObject. getLane()
Lane
LaneBasedObject. getLane()
Methods in org.opentrafficsim.road.network.lane.object with parameters of type Lane Modifier and Type Method Description static OTSLine3D
LaneBasedObject. 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(String id, Lane lane, Length longitudinalPosition, OTSLine3D geometry)
Construct a new LaneBasedObject with the required fields.AbstractLaneBasedObject(String id, Lane lane, Length longitudinalPosition, OTSLine3D geometry, Length height)
Construct a new AbstractLanebasedObject with the required fields.AbstractLaneBasedObject(String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, OTSLine3D geometry)
Construct a new LaneBasedObject with the required fields.AbstractLaneBasedObject(String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, OTSLine3D geometry, Length height)
Construct a new AbstractLanebasedObject with the required fields.BusStop(String id, Lane lane, Length longitudinalPosition, String name, SimulatorInterface.TimeDoubleUnit simulator)
Distraction(String id, Lane lane, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Distraction.DistractionProfile profile)
SpeedSign(String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Speed speed)
Speed sign active all day for all GTU types.SpeedSign(String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Speed speed, Duration startTimeOfDay, Duration endTimeOfDay)
Speed sign for all GTU types.SpeedSign(String id, Lane lane, LongitudinalDirectionality direction, Length longitudinalPosition, SimulatorInterface.TimeDoubleUnit simulator, Speed speed, GTUType gtuType)
Speed sign active all day.SpeedSign(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 OTSLine3D
AbstractSensor. 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(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_ELEVATION
and default geometry.AbstractSensor(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(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(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(String id, Lane lane, Length longitudinalPosition, Length length, DEVSSimulatorInterface.TimeDoubleUnit simulator, Duration aggregation, Detector.DetectorMeasurement<?,?>... measurements)
Constructor.SimpleReportingSensor(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(String id, Lane laneA, Length positionA, Lane laneB, Length positionB, 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(String id, Lane laneA, Length positionA, Lane laneB, Length positionB, 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(String id, Lane lane, Length longitudinalPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator)
Construct an AbstractTrafficLight at default elevation (use only on roads at elevation 0).AbstractTrafficLight(String id, Lane lane, Length longitudinalPosition, DEVSSimulatorInterface.TimeDoubleUnit simulator, Length height)
Construct an AbstractTrafficLight with specified elevation.FlankSensor(String id, Lane lane, Length longitudinalPosition, RelativePosition.TYPE positionType, DEVSSimulatorInterface.TimeDoubleUnit simulator, TrafficLightSensor parent, Compatible compatible)
Construct a new FlankSensor.SimpleTrafficLight(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 Lane
LaneData. getLane()
Constructors in org.opentrafficsim.road.network.sampling with parameters of type Lane Constructor Description LaneData(Lane lane)
-