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.
Lane-based objects that act as sensors.
-
Uses of LanePosition in org.opentrafficsim.road.gtu.generator
Methods in org.opentrafficsim.road.gtu.generator that return LanePositionModifier and TypeMethodDescription(package private) LanePosition
GeneratorPositions.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) 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) final void
LaneBasedGtuGenerator.placeGtu
(LaneBasedGtuCharacteristics characteristics, LanePosition position, org.djunits.value.vdouble.scalar.Speed speed) Places a GTU, regardless of whether it has room.void
GtuSpawner.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 GeneratorPositions
GeneratorPositions.create
(Set<LanePosition> positions, nl.tudelft.simulation.jstats.streams.StreamInterface stream) Create a GeneratorPositions object to draw positions from.static 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 biases) 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.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 TypeMethodDescriptionvoid
LaneBasedGtu.init
(LaneBasedStrategicalPlanner strategicalPlanner, LanePosition longitudinalPosition, org.djunits.value.vdouble.scalar.Speed initialSpeed) void
LaneBasedGtu.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 org.opentrafficsim.base.geometry.OtsLine2d
LaneChange.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.org.opentrafficsim.base.geometry.OtsLine2d
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, org.opentrafficsim.base.geometry.OtsLine2d fromLine, org.opentrafficsim.base.geometry.OtsLine2d toLine, org.djunits.value.vdouble.scalar.Duration laneChangeDuration, double lcFraction) Returns a (partial) path for a lane change.org.opentrafficsim.base.geometry.OtsLine2d
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, org.opentrafficsim.base.geometry.OtsLine2d fromLine, org.opentrafficsim.base.geometry.OtsLine2d toLine, org.djunits.value.vdouble.scalar.Duration laneChangeDuration, double lcFraction) org.opentrafficsim.base.geometry.OtsLine2d
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, org.opentrafficsim.base.geometry.OtsLine2d fromLine, org.opentrafficsim.base.geometry.OtsLine2d toLine, org.djunits.value.vdouble.scalar.Duration laneChangeDuration, double lcFraction) -
Uses of LanePosition in org.opentrafficsim.road.network.lane.object.detector
Constructors in org.opentrafficsim.road.network.lane.object.detector with parameters of type LanePositionModifierConstructorDescriptionLoopDetector
(String id, LanePosition position, org.djunits.value.vdouble.scalar.Length length, DetectorType detectorType, org.djunits.value.vdouble.scalar.Time firstAggregation, org.djunits.value.vdouble.scalar.Duration aggregation, LoopDetector.LoopDetectorMeasurement<?, ?>... measurements) Constructor.