Uses of Record 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.
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 LanePositionModifier and TypeMethodDescription(package private) LanePositionGeneratorPositions.GeneratorLanePosition.getPosition()Returns the contained position set, representing a single GTU position on the network.LaneBasedGtuGenerator.Placement.getPosition()Returns the position.Methods in org.opentrafficsim.road.gtu.generator with parameters of type LanePositionModifier and TypeMethodDescriptionCfRoomChecker.canPlace(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.Injections.canPlace(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Returns placement for injected GTUs, as used byLaneBasedGtuGenerator.LaneBasedGtuGenerator.RoomChecker.canPlace(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.TtcRoomChecker.canPlace(SortedSet<HeadwayGtu> leaders, LaneBasedGtuCharacteristics characteristics, org.djunits.value.vdouble.scalar.Duration since, LanePosition initialPosition) Return the maximum safe speed and position for a new GTU with the specified characteristics.final voidLaneBasedGtuGenerator.placeGtu(LaneBasedGtuCharacteristics characteristics, LanePosition position, org.djunits.value.vdouble.scalar.Speed speed) Places a GTU, regardless of whether it has room.voidGtuSpawner.spawnGtu(String id, LaneBasedGtuCharacteristics templateGtuType, RoadNetwork network, org.djunits.value.vdouble.scalar.Speed speed, LanePosition position) Create a single GTU.Method parameters in org.opentrafficsim.road.gtu.generator with type arguments of type LanePositionModifier and TypeMethodDescriptionstatic GeneratorPositionsGeneratorPositions.create(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream) Create a GeneratorPositions object to draw positions from.static GeneratorPositionsGeneratorPositions.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 GeneratorPositionsGeneratorPositions.create(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream, GeneratorPositions.LaneBiases biases) Create a GeneratorPositions object to draw positions from.static GeneratorPositionsGeneratorPositions.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.Constructors in org.opentrafficsim.road.gtu.generator with parameters of type LanePositionModifierConstructorDescription(package private)GeneratorLanePosition(int laneNumber, LanePosition position, CrossSectionLink link) Constructor.Placement(org.djunits.value.vdouble.scalar.Speed speed, 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.Methods in org.opentrafficsim.road.gtu.lane with parameters of type LanePositionModifier and TypeMethodDescriptionvoidLaneBasedGtu.init(LaneBasedStrategicalPlanner strategicalPlanner, LanePosition longitudinalPosition, org.djunits.value.vdouble.scalar.Speed initialSpeed) voidLaneBasedGtu.reinit(LanePosition initialLongitudinalPosition) Reinitializes the GTU on the network using the existing strategical planner and zero speed. -
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 OtsLine2dLaneChange.getPath(org.djunits.value.vdouble.scalar.Duration timeStep, LaneBasedGtu gtu, LanePosition from, org.djutils.draw.point.OrientedPoint2d startPosition, org.djunits.value.vdouble.scalar.Length planDistance, LateralDirectionality laneChangeDirection) Returns the path for a lane change.LaneChange.LaneChangePath.getPath(org.djunits.value.vdouble.scalar.Duration timeStep, org.djunits.value.vdouble.scalar.Length planDistance, org.djunits.value.vdouble.scalar.Speed meanSpeed, LanePosition from, org.djutils.draw.point.OrientedPoint2d startPosition, LateralDirectionality laneChangeDirection, OtsLine2d fromLine, OtsLine2d toLine, org.djunits.value.vdouble.scalar.Duration laneChangeDuration, double lcFraction) Returns a (partial) path for a lane change.LaneChange.LaneChangePath.InterpolatedLaneChangePath.getPath(org.djunits.value.vdouble.scalar.Duration timeStep, org.djunits.value.vdouble.scalar.Length planDistance, org.djunits.value.vdouble.scalar.Speed meanSpeed, LanePosition from, org.djutils.draw.point.OrientedPoint2d startPosition, LateralDirectionality laneChangeDirection, OtsLine2d fromLine, OtsLine2d toLine, org.djunits.value.vdouble.scalar.Duration laneChangeDuration, double lcFraction) Returns a (partial) path for a lane change.LaneChange.LaneChangePath.SequentialLaneChangePath.getPath(org.djunits.value.vdouble.scalar.Duration timeStep, org.djunits.value.vdouble.scalar.Length planDistance, org.djunits.value.vdouble.scalar.Speed meanSpeed, LanePosition from, org.djutils.draw.point.OrientedPoint2d startPosition, LateralDirectionality laneChangeDirection, OtsLine2d fromLine, OtsLine2d toLine, org.djunits.value.vdouble.scalar.Duration laneChangeDuration, double lcFraction) Returns a (partial) path for a lane change.