Uses of Class
org.opentrafficsim.road.network.lane.LanePosition
Packages that use LanePosition
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.
Implementation of lane-based perception for the GTU.
Specific operational plan method for road-vehicles operating in a lane-based network.
-
Uses of LanePosition in org.opentrafficsim.road.gtu.generator
Methods in org.opentrafficsim.road.gtu.generator that return types with arguments of type LanePositionModifier and TypeMethodDescription(package private) Set<LanePosition>
GeneratorPositions.GeneratorLanePosition.getPosition()
Returns the contained position set, representing a single GTU position on the network.LaneBasedGtuGenerator.Placement.getPosition()
Returns the position.Method parameters in org.opentrafficsim.road.gtu.generator with type arguments of type LanePositionModifier and TypeMethodDescriptionCfRoomChecker.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, Duration since, Set<LanePosition> initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.Injections.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, Duration since, Set<LanePosition> initialPosition) Returns placement for injected GTUs, as used byLaneBasedGtuGenerator
.LaneBasedGtuGenerator.RoomChecker.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, Duration since, Set<LanePosition> initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.TtcRoomChecker.canPlace
(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, Duration since, Set<LanePosition> initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.static GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, StreamInterface stream) Create a GeneratorPositions object to draw positions from.static GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, 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, StreamInterface stream, GeneratorPositions.LaneBiases biases) Create a GeneratorPositions object to draw positions from.static GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, StreamInterface stream, GeneratorPositions.LaneBiases laneBiases, Map<CrossSectionLink, Double> linkWeights, Map<CrossSectionLink, Node> viaNodes) Create a GeneratorPositions object to draw positions from.final void
LaneBasedGtuGenerator.placeGtu
(LaneBasedGtuCharacteristics characteristics, Set<LanePosition> position, Speed speed) Places a GTU, regardless of whether it has room.Constructor parameters in org.opentrafficsim.road.gtu.generator with type arguments of type LanePositionModifierConstructorDescription(package private)
GeneratorLanePosition
(int laneNumber, Set<LanePosition> position, CrossSectionLink link) Constructor.Placement
(Speed speed, Set<LanePosition> position) Constructor. -
Uses of LanePosition in org.opentrafficsim.road.gtu.lane
Methods in org.opentrafficsim.road.gtu.lane that return LanePositionModifier and TypeMethodDescriptionLaneBasedGtu.getReferencePosition()
Return the current Lane, position and directionality of the GTU.Method parameters in org.opentrafficsim.road.gtu.lane with type arguments of type LanePositionModifier and TypeMethodDescriptionvoid
LaneBasedGtu.init
(LaneBasedStrategicalPlanner strategicalPlanner, Set<LanePosition> initialLongitudinalPositions, Speed initialSpeed) void
LaneBasedGtu.reinit
(Set<LanePosition> initialLongitudinalPositions) Reinitializes the GTU on the network using the existing strategical planner and zero speed. -
Uses of LanePosition in org.opentrafficsim.road.gtu.lane.perception
Methods in org.opentrafficsim.road.gtu.lane.perception with parameters of type LanePositionModifier and TypeMethodDescriptionvoid
LaneStructure.update
(LanePosition pos, Route route, GtuType gtuType) Updates the underlying structure shifting the root position to the input.final void
RollingLaneStructure.update
(LanePosition pos, Route route, GtuType gtuType) Updates the underlying structure shifting the root position to the input. -
Uses of LanePosition in org.opentrafficsim.road.gtu.lane.plan.operational
Methods in org.opentrafficsim.road.gtu.lane.plan.operational with parameters of type LanePositionModifier and TypeMethodDescriptionfinal OtsLine3d
LaneChange.getPath
(Duration timeStep, LaneBasedGtu gtu, LanePosition from, DirectedPoint startPosition, Length planDistance, LateralDirectionality laneChangeDirection) Returns the path for a lane change.LaneChange.LaneChangePath.getPath
(Duration timeStep, Length planDistance, Speed meanSpeed, LanePosition from, DirectedPoint startPosition, LateralDirectionality laneChangeDirection, OtsLine3d fromLine, OtsLine3d toLine, Duration laneChangeDuration, double lcFraction) Returns a (partial) path for a lane change.LaneChange.LaneChangePath.InterpolatedLaneChangePath.getPath
(Duration timeStep, Length planDistance, Speed meanSpeed, LanePosition from, DirectedPoint startPosition, LateralDirectionality laneChangeDirection, OtsLine3d fromLine, OtsLine3d toLine, Duration laneChangeDuration, double lcFraction) Returns a (partial) path for a lane change.LaneChange.LaneChangePath.SequentialLaneChangePath.getPath
(Duration timeStep, Length planDistance, Speed meanSpeed, LanePosition from, DirectedPoint startPosition, LateralDirectionality laneChangeDirection, OtsLine3d fromLine, OtsLine3d toLine, Duration laneChangeDuration, double lcFraction) Returns a (partial) path for a lane change.