Uses of Class
org.opentrafficsim.road.network.lane.CrossSectionLink
Package
Description
Generate GTUs according to some prescription.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
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.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
-
Uses of CrossSectionLink in org.opentrafficsim.road.gtu.generator
Modifier and TypeMethodDescription(package private) CrossSectionLink
GeneratorPositions.GeneratorLanePosition.getLink()
Returns the link.Modifier and TypeMethodDescriptionstatic GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream, Map<CrossSectionLink, Double> linkWeights, Map<CrossSectionLink, Node> viaNodes) Create a GeneratorPositions object to draw positions from.static GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream, GeneratorPositions.LaneBiases laneBiases, Map<CrossSectionLink, Double> linkWeights, Map<CrossSectionLink, Node> viaNodes) Create a GeneratorPositions object to draw positions from.GeneratorPositions.draw
(GtuType gtuType, LaneBasedGtuCharacteristics characteristics, Map<CrossSectionLink, Map<Integer, Integer>> unplaced) Draw a new position to generate a GTU.Injections.draw
(GtuType gtuType, LaneBasedGtuCharacteristics characteristics, Map<CrossSectionLink, Map<Integer, Integer>> unplaced) Draw a new position to generate a GTU.ModifierConstructorDescription(package private)
GeneratorLanePosition
(int laneNumber, LanePosition position, CrossSectionLink link) Constructor. -
Uses of CrossSectionLink in org.opentrafficsim.road.gtu.lane.perception.headway
Modifier and TypeMethodDescriptionfinal CrossSectionLink
HeadwayConflict.getConflictingLink()
Returns the conflicting link.ModifierConstructorDescriptionHeadwayConflict
(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. -
Uses of CrossSectionLink in org.opentrafficsim.road.gtu.lane.tactical
Modifier and TypeMethodDescriptionprotected final int
LaneBasedCfLcTacticalPlanner.countCompatibleLanes
(CrossSectionLink link, GtuType gtuType) Determine how many lanes on a CrossSectionLink are compatible with a particular GTU type.
TODO: this method should probably be moved into the CrossSectionLink class -
Uses of CrossSectionLink in org.opentrafficsim.road.network.factory
Modifier and TypeMethodDescriptionstatic CrossSectionLink
LaneFactory.makeLink
(RoadNetwork network, String name, Node from, Node to, org.djutils.draw.point.Point2d[] intermediatePoints, OtsSimulatorInterface simulator) Create a Link along intermediate coordinates from one Node to another. -
Uses of CrossSectionLink in org.opentrafficsim.road.network.lane
Modifier and TypeFieldDescriptionprotected final CrossSectionLink
CrossSectionElement.link
Cross Section Link to which the element belongs.Modifier and TypeMethodDescriptionfinal CrossSectionLink
CrossSectionElement.getLink()
Returns the link of this cross-section element.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.static Object
LaneGeometryUtil.createStraightShoulder
(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) Creates a simple straight shoulder.static Stripe
LaneGeometryUtil.createStraightStripe
(Stripe.Type type, CrossSectionLink link, org.djunits.value.vdouble.scalar.Length offset, org.djunits.value.vdouble.scalar.Length width) Creates a simple straight lane.ModifierConstructorDescriptionCrossSectionElement
(CrossSectionLink link, String id, OtsLine2d centerLine, org.djutils.draw.line.Polygon2d contour, List<CrossSectionSlice> crossSectionSlices) Constructor.Lane
(CrossSectionLink link, String id, OtsLine2d centerLine, org.djutils.draw.line.Polygon2d contour, List<CrossSectionSlice> crossSectionSlices, LaneType laneType, Map<GtuType, org.djunits.value.vdouble.scalar.Speed> speedLimitMap) Constructor specifying geometry.Shoulder
(CrossSectionLink link, String id, OtsLine2d centerLine, org.djutils.draw.line.Polygon2d contour, List<CrossSectionSlice> crossSectionSlices, LaneType laneType) Constructor specifying geometry.Stripe
(Stripe.Type type, CrossSectionLink link, OtsLine2d centerLine, org.djutils.draw.line.Polygon2d contour, List<CrossSectionSlice> crossSectionSlices) Constructor specifying geometry. -
Uses of CrossSectionLink in org.opentrafficsim.road.network.lane.conflict
Modifier and TypeMethodDescriptionfinal void
LaneCombinationList.addLinkCombination
(CrossSectionLink link1, CrossSectionLink link2) Add any combination of lanes on both links to the list. -
Uses of CrossSectionLink in org.opentrafficsim.road.network.sampling