Uses of Class
org.opentrafficsim.road.gtu.lane.LaneBasedGtu
Package
Description
The lane-based GTUs are the Generalized Travel Units that travel in lanes, and need to switch lanes to overtake.
Classes about vehicle control, including ACC and CACC.
Implementation of lane-based perception for the GTU.
Categories define a set of perceivable information.
Contains perception categories to perceive neighbors.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
Mental mechanisms are a part of perception.
Package for the Stochastic Distraction Model by and in cooperation with Manuel Lindorfer (manuel.lindorfer@fh-ooe.at).
The lane structure provides a way to see the world for a lane based model.
Specific operational plan method for road-vehicles operating in a lane-based network.
Tactical planners for a lane-based GTU.
Classes that deal with lane changing models.
GTU (Car) following models such as IDM+.
Classes that deal with lane changing models.
Classes that implement the LMRS lane change model integrated with a car-following model forming a tactical planner.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
Static methods for composition in tactical planners.
LMRS (Lane change Model with Relaxation and Synchronization) utilities for tactical planner.
Strategical planners for a road-based GTU.
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
Contains classes describing intersection conflicts.
Lane-based objects that act as sensors.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
-
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Acceleration
VehicleModel.boundAcceleration
(org.djunits.value.vdouble.scalar.Acceleration acceleration, LaneBasedGtu gtu) Returns a bounded acceleration.org.djunits.value.vdouble.scalar.Acceleration
VehicleModel.MassBased.boundAcceleration
(org.djunits.value.vdouble.scalar.Acceleration acceleration, LaneBasedGtu gtu) Returns a bounded acceleration.abstract void
AbstractLaneBasedMoveChecker.checkMove
(LaneBasedGtu gtu) Check the move of the given GTU.void
AccelerationChecker.checkMove
(LaneBasedGtu gtu) Check the move of the given GTU.void
CollisionDetector.checkMove
(LaneBasedGtu gtu) Check the move of the given GTU.void
MultiLaneBasedMoveChecker.checkMove
(LaneBasedGtu gtu) Check the move of the given GTU. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.control
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Acceleration
AbstractActuatedControl.delayActuation
(org.djunits.value.vdouble.scalar.Acceleration desiredAcceleration, LaneBasedGtu gtu) Delays the actuation of acceleration.org.djunits.value.vdouble.scalar.Acceleration
DelayedActuation.delayActuation
(org.djunits.value.vdouble.scalar.Acceleration desiredAcceleration, LaneBasedGtu gtu) Delays the actuation of acceleration.org.djunits.value.vdouble.scalar.Acceleration
AbstractActuatedControl.getAcceleration
(LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters settings) Calculate acceleration.org.djunits.value.vdouble.scalar.Acceleration
LongitudinalControl.getAcceleration
(LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters settings) Calculate acceleration.abstract org.djunits.value.vdouble.scalar.Acceleration
AbstractActuatedControl.getDesiredAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the desired acceleration from the longitudinal control.final org.djunits.value.vdouble.scalar.Acceleration
AbstractLinearFreeControl.getDesiredAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the desired acceleration from the longitudinal control.abstract org.djunits.value.vdouble.scalar.Acceleration
AbstractLinearFreeControl.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
LinearAcc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
LinearCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
PloegAcc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
PloegCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.Modifier and TypeMethodDescriptionabstract org.djunits.value.vdouble.scalar.Acceleration
AbstractActuatedControl.getDesiredAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the desired acceleration from the longitudinal control.final org.djunits.value.vdouble.scalar.Acceleration
AbstractLinearFreeControl.getDesiredAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the desired acceleration from the longitudinal control.abstract org.djunits.value.vdouble.scalar.Acceleration
AbstractLinearFreeControl.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
LinearAcc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
LinearCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
PloegAcc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control.org.djunits.value.vdouble.scalar.Acceleration
PloegCacc.getFollowingAcceleration
(LaneBasedGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.opentrafficsim.base.parameters.Parameters settings) Returns the following acceleration of the longitudinal control. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.perception
Modifier and TypeMethodDescriptionprotected LaneBasedGtu
AbstractPerceptionReiterable.getGtu()
Returns the GTU.Modifier and TypeMethodDescriptionPerceptionFactory.generatePerception
(LaneBasedGtu gtu) Generate perception.protected org.djunits.value.vdouble.scalar.Length
DownstreamNeighborsIterable.getDistance
(LaneBasedGtu object, LaneRecordInterface<?> record, org.djunits.value.vdouble.scalar.Length position) Returns the distance to the object.protected org.djunits.value.vdouble.scalar.Length
UpstreamNeighborsIterable.getDistance
(LaneBasedGtu object, LaneRecordInterface<?> record, org.djunits.value.vdouble.scalar.Length position) Returns the distance to the object.protected abstract H
AbstractPerceptionReiterable.perceive
(LaneBasedGtu perceivingGtu, U object, org.djunits.value.vdouble.scalar.Length distance) Returns a perceived version of the underlying object.DownstreamNeighborsIterable.perceive
(LaneBasedGtu perceivingGtu, LaneBasedGtu object, org.djunits.value.vdouble.scalar.Length distance) Returns a perceived version of the underlying object.MultiLanePerceptionIterable.perceive
(LaneBasedGtu perceivingGtu, U object, org.djunits.value.vdouble.scalar.Length distance) Returns a perceived version of the underlying object.UpstreamNeighborsIterable.perceive
(LaneBasedGtu perceivingGtu, LaneBasedGtu object, org.djunits.value.vdouble.scalar.Length distance) Returns a perceived version of the underlying object.ModifierConstructorDescriptionAbstractPerceptionIterable
(LaneBasedGtu perceivingGtu, LaneRecordInterface<?> root, org.djunits.value.vdouble.scalar.Length initialPosition, boolean downstream, org.djunits.value.vdouble.scalar.Length maxDistance, RelativePosition relativePosition, Route route) Constructor.protected
AbstractPerceptionReiterable
(LaneBasedGtu perceivingGtu) Constructor.Create a new LanePerception module without mental module.CategoricalLanePerception
(LaneBasedGtu gtu, Mental mental) Create a new LanePerception module with mental module.DownstreamNeighborsIterable
(LaneBasedGtu perceivingGtu, LaneRecordInterface<?> root, org.djunits.value.vdouble.scalar.Length initialPosition, org.djunits.value.vdouble.scalar.Length maxDistance, RelativePosition relativePosition, HeadwayGtuType headwayGtuType, RelativeLane lane, boolean ignoreIfUpstream) Constructor.LaneBasedObjectIterable
(LaneBasedGtu perceivingGtu, Class<L> clazz, LaneRecordInterface<?> root, org.djunits.value.vdouble.scalar.Length initialPosition, boolean downstream, org.djunits.value.vdouble.scalar.Length maxDistance, RelativePosition relativePosition, Route route) Constructor.MultiLanePerceptionIterable
(LaneBasedGtu perceivingGtu) Constructor.UpstreamNeighborsIterable
(LaneBasedGtu perceivingGtu, LaneRecordInterface<?> root, org.djunits.value.vdouble.scalar.Length initialPosition, org.djunits.value.vdouble.scalar.Length maxDistance, RelativePosition relativePosition, HeadwayGtuType headwayGtuType, RelativeLane lane) Constructor. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.perception.categories
-
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.perception.categories.neighbors
Modifier and TypeMethodDescriptionPerceptionCollectable.PerceptionAccumulator<LaneBasedGtu,
org.djunits.value.vdouble.scalar.Duration> TaskHeadwayCollector.getAccumulator()
Returns the accumulator.DirectNeighborsPerception.getFollowers
(RelativeLane lane) Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.NeighborsPerception.getFollowers
(RelativeLane lane) Set of followers on a lane, including adjacent GTU's who's FRONT is back of the own vehicle FRONT.CaccPerception.getLeaders()
Returns the leaders.DirectNeighborsPerception.getLeaders
(RelativeLane lane) Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.LongitudinalControllerPerception.getLeaders()
Returns the leaders.NeighborsPerception.getLeaders
(RelativeLane lane) Set of leaders on a lane, including adjacent GTU's who's FRONT is ahead of the own vehicle FRONT.Modifier and TypeMethodDescriptionDefaultCaccSensors.createDownstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.createDownstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.PerceivedHeadwayGtuType.createDownstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.default HeadwayGtu
HeadwayGtuType.createHeadwayGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) Creates a headway object from a GTU, downstream or upstream.HeadwayGtuType.PerceivedHeadwayGtuType.createHeadwayGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) Creates a headway object from a GTU, downstream or upstream.DefaultCaccSensors.createParallelGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) Creates a headway object from a GTU, parallel.HeadwayGtuType.createParallelGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) Creates a headway object from a GTU, parallel.HeadwayGtuType.PerceivedHeadwayGtuType.createParallelGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) Creates a headway object from a GTU, parallel.DefaultCaccSensors.createUpstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.createUpstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.HeadwayGtuType.PerceivedHeadwayGtuType.createUpstreamGtu
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance) Creates a headway object from a GTU, downstream.Estimation.estimate
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream, org.djunits.value.vdouble.scalar.Time when) Estimate headway, speed and acceleration.Estimation.FactorEstimation.estimate
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream, org.djunits.value.vdouble.scalar.Time when) Estimate headway, speed and acceleration.default org.djunits.value.vdouble.scalar.Length
Estimation.getDelayedHeadway
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream, org.djunits.value.vdouble.scalar.Time when) Returns a delayed headway.default org.djunits.value.vdouble.scalar.Speed
Estimation.getDelayedSpeedDifference
(LaneBasedGtu perceivingGtu, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Time when) Returns a delayed speed difference (other minus ego).default org.djunits.value.vdouble.scalar.Speed
Estimation.getEgoSpeed
(LaneBasedGtu perceivingGtu) Returns the ego speed. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.perception.headway
Modifier and TypeMethodDescriptionHeadwayConflict.getDownstreamConflictingGTUs()
Returns a set of conflicting GTU's downstream of the start of the conflict ordered close to far from the conflict.HeadwayConflict.getUpstreamConflictingGTUs()
Returns a set of conflicting GTU's upstream of the start of the conflict ordered close to far from the conflict.Modifier and TypeMethodDescriptionstatic final GtuStatus[]
AbstractHeadwayGtu.getGtuStatuses
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Time when) Collects GTU statuses from a gtu.static SpeedLimitInfo
AbstractHeadwayGtu.getSpeedLimitInfo
(LaneBasedGtu gtu) Creates speed limit info for given GTU.ModifierConstructorDescriptionHeadwayGtuPerceived
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) HeadwayGtuPerceived
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration) HeadwayGtuReal
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length distance, boolean facingSameDirection) Construct a new Headway information object, for a GTU ahead of us or behind us.HeadwayGtuReal
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, boolean facingSameDirection) Construct a new Headway information object, for a GTU parallel with us.HeadwayGtuRealCopy
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length distance) Construct a new Headway information object, for a GTU ahead of us or behind us.HeadwayGtuRealCopy
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) Construct a new Headway information object, for a GTU parallel with us.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 LaneBasedGtu in org.opentrafficsim.road.gtu.lane.perception.mental
Modifier and TypeMethodDescriptiondouble
ConstantTask.calculateTaskDemand
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns the gross task demand to be managed by a task manager.double
ExponentialTask.calculateTaskDemand
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns the gross task demand to be managed by a task manager.double
Task.calculateTaskDemand
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns the gross task demand to be managed by a task manager.double
TaskHeadwayBased.calculateTaskDemand
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns the gross task demand to be managed by a task manager.double
TaskRoadSideDistraction.calculateTaskDemand
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns the gross task demand to be managed by a task manager.double
TaskLaneChanging.LateralConsideration.getConsideration
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns fraction of lateral consideration, <0 for left lane, >0 for right lane.protected org.djunits.value.vdouble.scalar.Duration
TaskCarFollowing.getHeadway
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns a collector for the task demand.protected abstract org.djunits.value.vdouble.scalar.Duration
TaskHeadwayBased.getHeadway
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns a collector for the task demand.protected org.djunits.value.vdouble.scalar.Duration
TaskLaneChanging.getHeadway
(LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Returns a collector for the task demand.void
TaskManager.manage
(Set<Task> tasks, LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Manage tasks.void
TaskManager.SummativeTaskManager.manage
(Set<Task> tasks, LanePerception perception, LaneBasedGtu gtu, org.opentrafficsim.base.parameters.Parameters parameters) Manage tasks. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.perception.mental.sdm
Modifier and TypeMethodDescriptionfinal Task
Distraction.getTask
(LaneBasedGtu gtu) Returns a task for the given GTU.TaskSupplier.Constant.getTask
(LaneBasedGtu gtu) Returns a task for the given GTU.TaskSupplier.getTask
(LaneBasedGtu gtu) Returns a task for the given GTU.void
StochasticDistractionModel.startDistraction
(LaneBasedGtu gtu, Distraction distraction, boolean scheduleNext) Start a distraction.void
StochasticDistractionModel.stopDistraction
(LaneBasedGtu gtu, Task task) Stops a distraction task. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.perception.structure
Modifier and TypeMethodDescriptionLaneStructure.getDownstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.LaneStructure.getFirstDownstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.LaneStructure.getFirstUpstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.LaneStructure.getUpstreamGtus
(RelativeLane relativeLane, RelativePosition.Type egoPosition, RelativePosition.Type otherPosition, RelativePosition.Type egoDistancePosition, RelativePosition.Type otherDistancePosition) Returns an iterator over GTUs perceived on a relative lane, ordered close to far.ModifierConstructorDescriptionLaneStructure
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length upstream, org.djunits.value.vdouble.scalar.Length downstream) Constructor. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.plan.operational
Modifier and TypeMethodDescriptionstatic LaneBasedOperationalPlan
LaneOperationalPlanBuilder.buildAccelerationLaneChangePlan
(LaneBasedGtu gtu, LateralDirectionality laneChangeDirectionality, org.djutils.draw.point.OrientedPoint2d startPosition, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Duration timeStep, LaneChange laneChange) Build a plan with a path and a given start speed to try to reach a provided end speed.static LaneBasedOperationalPlan
LaneOperationalPlanBuilder.buildAccelerationPlan
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Duration timeStep, boolean deviative) Build a plan with a path and a given start speed to try to reach a provided end speed.static LaneBasedOperationalPlan
LaneOperationalPlanBuilder.buildPlanFromSimplePlan
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Time startTime, SimpleOperationalPlan simplePlan, LaneChange laneChange) Build an operational plan based on a simple operational plan and status info.boolean
LaneChange.checkRoom
(LaneBasedGtu gtu, Headway headway) Checks whether the given GTU has sufficient space relative to aHeadway
.static OtsLine2d
LaneOperationalPlanBuilder.createPathAlongCenterLine
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length distance) Creates a path along lane center lines.final org.djunits.value.vdouble.scalar.Length
LaneBasedOperationalPlan.getDistanceAlongLane
(LaneBasedGtu gtu, org.djutils.draw.point.OrientedPoint2d point) Returns the distance along the reference lane that the GTU travels from the current location up to the point.final 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.final RelativeLane
LaneChange.getSecondLane
(LaneBasedGtu gtu) Second lane of lane change relative to the reference lane.final org.djunits.value.vdouble.scalar.Length
LaneBasedOperationalPlan.getTotalLengthAlongLane
(LaneBasedGtu gtu) Returns the total length along the reference lane that the GTU travels.static void
LaneOperationalPlanBuilder.scheduleLaneChangeFinalization
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length distance, LateralDirectionality laneChangeDirection) Schedules a lane change finalization after the given distance is covered.final void
SimpleOperationalPlan.setTurnIndicator
(LaneBasedGtu gtu) ModifierConstructorDescriptionLaneBasedOperationalPlan
(LaneBasedGtu gtu, OtsLine2d path, org.djunits.value.vdouble.scalar.Time startTime, Segments segments, boolean deviative) Construct an operational plan with or without a lane change.LaneChange
(LaneBasedGtu gtu) Constructor. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical
Modifier and TypeMethodDescriptionstatic LanePathInfo
AbstractLaneBasedTacticalPlanner.buildLanePathInfo
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway) Build a list of lanes forward, with a maximum headway relative to the reference point of the GTU.static LanePathInfo
AbstractLaneBasedTacticalPlanner.buildLanePathInfo
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway, Lane startLane, org.djunits.value.vdouble.scalar.Length position) Build a list of lanes forward, with a maximum headway relative to the reference point of the GTU.AbstractLaneBasedTacticalPlanner.buildLinkListForward
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway) Make a list of links on which to drive next, with a maximum headway relative to the reference point of the GTU.protected static boolean
AbstractLaneBasedTacticalPlanner.connectsToPath
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway, Lane startLane, org.djunits.value.vdouble.scalar.Length startLanePosition, 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?LaneBasedCfLcTacticalPlannerFactory.create
(LaneBasedGtu gtu) Creates a new tactical planner for the given GTU.LaneBasedGtuFollowingTacticalPlannerFactory.create
(LaneBasedGtu gtu) Creates a new tactical planner for the given GTU.LaneBasedTacticalPlannerFactory.create
(LaneBasedGtu gtu) Creates a new tactical planner for the given GTU.static NextSplitInfo
AbstractLaneBasedTacticalPlanner.determineNextSplit
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway) Calculate the next location where the network splits, with a maximum headway relative to the reference point of the GTU.protected final CarFollowingModel
AbstractLaneBasedTacticalPlannerFactory.nextCarFollowingModel
(LaneBasedGtu gtu) Returns the next car following model.protected static boolean
AbstractLaneBasedTacticalPlanner.noLaneDrop
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxHeadway, Lane startLane, org.djunits.value.vdouble.scalar.Length startLanePosition) 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?ModifierConstructorDescriptionAbstractLaneBasedTacticalPlanner
(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Instantiates a tactical planner.LaneBasedCfLcTacticalPlanner
(GtuFollowingModelOld carFollowingModel, LaneChangeModel laneChangeModel, LaneBasedGtu gtu) Instantiated a tactical planner with GTU following and lane change behavior.LaneBasedGtuFollowingTacticalPlanner
(GtuFollowingModelOld carFollowingModel, LaneBasedGtu gtu) Instantiate a tactical planner with just GTU following behavior and no lane changes. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical.directedlanechange
Modifier and TypeMethodDescriptionfinal DirectedLaneMovementStep
AbstractDirectedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, LateralDirectionality direction, Collection<Headway> sameLaneGTUs, Collection<Headway> otherLaneGTUs, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Duration laneChangeTime) Compute the acceleration and lane change.final DirectedLaneMovementStep
DirectedFixedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, LateralDirectionality direction, Collection<Headway> sameLaneTraffic, Collection<Headway> otherLaneTraffic, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Duration laneChangeTime) Compute the acceleration and lane change.DirectedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, LateralDirectionality direction, Collection<Headway> sameLaneTraffic, Collection<Headway> otherLaneTraffic, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Duration laneChangeTime) Compute the acceleration and lane change. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical.following
Modifier and TypeMethodDescriptionfinal AccelerationStep
AbstractGtuFollowingModelMobil.computeAccelerationStep
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Speed leaderSpeed, org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the acceleration that would be used to follow a leader.final AccelerationStep
AbstractGtuFollowingModelMobil.computeAccelerationStep
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Speed leaderSpeed, org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the acceleration that would be used to follow a leader.GtuFollowingModelOld.computeAccelerationStep
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Speed leaderSpeed, org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the acceleration that would be used to follow a leader.GtuFollowingModelOld.computeAccelerationStep
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Speed leaderSpeed, org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the acceleration that would be used to follow a leader.final AccelerationStep
AbstractGtuFollowingModelMobil.computeAccelerationStepWithNoLeader
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the acceleration that would be used if the is not leader in sight.final AccelerationStep
AbstractGtuFollowingModelMobil.computeAccelerationStepWithNoLeader
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the acceleration that would be used if the is not leader in sight.GtuFollowingModelOld.computeAccelerationStepWithNoLeader
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the acceleration that would be used if the is not leader in sight.GtuFollowingModelOld.computeAccelerationStepWithNoLeader
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the acceleration that would be used if the is not leader in sight.final DualAccelerationStep
AbstractGtuFollowingModelMobil.computeDualAccelerationStep
(LaneBasedGtu referenceGTU, Collection<Headway> otherGTUs, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.final DualAccelerationStep
AbstractGtuFollowingModelMobil.computeDualAccelerationStep
(LaneBasedGtu referenceGTU, Collection<Headway> otherHeadways, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.GtuFollowingModelOld.computeDualAccelerationStep
(LaneBasedGtu gtu, Collection<Headway> otherHeadways, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.GtuFollowingModelOld.computeDualAccelerationStep
(LaneBasedGtu gtu, Collection<Headway> otherHeadways, org.djunits.value.vdouble.scalar.Length maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Duration stepSize) Compute the lowest accelerations (or most severe decelerations) that would be used if a referenceGTU is present (inserted, or not removed) in a set of other GTUs.
If any GTU in the set of otherGTUs has a null headway (indicating that the other GTU is in fact parallel to the referenceGTU), prohibitive decelerations shall be returned.
Two AccelerationStep values are returned in a DualAccelerationStep.
or should slow down for a crossing from accelerating to unsafe speeds.final void
AbstractCarFollowingModel.init
(LaneBasedGtu gtu) Initialize car-following model.default void
CarFollowingModel.init
(LaneBasedGtu gtu) Initialize car-following model.void
Initialisable.init
(LaneBasedGtu gtu) Initialize car-following model. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical.lanechangemobil
Modifier and TypeMethodDescriptionfinal LaneMovementStep
AbstractLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, Collection<Headway> sameLaneGTUs, Collection<Headway> preferredLaneGTUs, Collection<Headway> nonPreferredLaneGTUs, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration preferredLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Acceleration nonPreferredLaneRouteIncentive) Compute the acceleration and lane change.final LaneMovementStep
FixedLaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, Collection<Headway> sameLaneTraffic, Collection<Headway> rightLaneTraffic, Collection<Headway> leftLaneTraffic, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration preferredLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Acceleration nonPreferredLaneRouteIncentive) Compute the acceleration and lane change.LaneChangeModel.computeLaneChangeAndAcceleration
(LaneBasedGtu gtu, Collection<Headway> sameLaneTraffic, Collection<Headway> rightLaneTraffic, Collection<Headway> leftLaneTraffic, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration preferredLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Acceleration nonPreferredLaneRouteIncentive) Compute the acceleration and lane change. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical.lmrs
Modifier and TypeMethodDescriptionfinal void
AccelerationBusStop.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.final void
AccelerationConflicts.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.void
AccelerationIncentive.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.void
AccelerationNoRightOvertake.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.final void
AccelerationSpeedLimitTransition.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.final void
AccelerationTrafficLights.accelerate
(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.final Lmrs
LmrsFactory.create
(LaneBasedGtu gtu) Creates a new tactical planner for the given GTU.DefaultLmrsPerceptionFactory.generatePerception
(LaneBasedGtu gtu) Generate perception.void
SocioDesiredSpeed.init
(LaneBasedGtu laneBasedGtu) Initialize car-following model.default <T extends HeadwayLaneBasedObject>
Iterable<T>AccelerationIncentive.onRoute
(Iterable<T> iterable, LaneBasedGtu gtu) Returns an iterable with only those lane-based objects that are on the route, accounting for longitudinal direction of the GTU type.ModifierConstructorDescriptionAbstractIncentivesTacticalPlanner
(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Constructor.Lmrs
(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception, Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating) Constructor setting the car-following model. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical.toledo
Modifier and TypeMethodDescriptionfinal Toledo
ToledoFactory.create
(LaneBasedGtu gtu) Creates a new tactical planner for the given GTU.ModifierConstructorDescriptionToledo
(CarFollowingModel carFollowingModel, LaneBasedGtu gtu) Constructor. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical.util
Modifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.Acceleration
ConflictUtil.approachConflicts
(org.opentrafficsim.base.parameters.Parameters parameters, Iterable<HeadwayConflict> conflicts, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Length vehicleLength, org.djunits.value.vdouble.scalar.Length vehicleWidth, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, SpeedLimitInfo speedLimitInfo, ConflictUtil.ConflictPlans conflictPlans, LaneBasedGtu gtu, RelativeLane lane) Approach conflicts by applying appropriate acceleration (or deceleration).Modifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.Acceleration
ConflictUtil.approachConflicts
(org.opentrafficsim.base.parameters.Parameters parameters, Iterable<HeadwayConflict> conflicts, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Length vehicleLength, org.djunits.value.vdouble.scalar.Length vehicleWidth, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, SpeedLimitInfo speedLimitInfo, ConflictUtil.ConflictPlans conflictPlans, LaneBasedGtu gtu, RelativeLane lane) Approach conflicts by applying appropriate acceleration (or deceleration).static boolean
ConflictUtil.stopForGiveWayConflict
(HeadwayConflict conflict, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.ParameterTypeAcceleration bType, org.djunits.value.vdouble.scalar.Length prevEnd) Approach a give-way conflict.static boolean
ConflictUtil.stopForPriorityConflict
(HeadwayConflict conflict, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Length prevEnd) Approach a priority conflict.static boolean
ConflictUtil.stopForStopConflict
(HeadwayConflict conflict, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.ParameterTypeAcceleration bType, org.djunits.value.vdouble.scalar.Length prevEnd) Approach a stop conflict. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs
Modifier and TypeMethodDescriptionstatic SimpleOperationalPlan
LmrsUtil.determinePlan
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Time startTime, CarFollowingModel carFollowingModel, LaneChange laneChange, LmrsData lmrsData, LanePerception perception, Iterable<MandatoryIncentive> mandatoryIncentives, Iterable<VoluntaryIncentive> voluntaryIncentives) Determines a simple representation of an operational plan.Modifier and TypeMethodDescriptionstatic HeadwayGtu
Synchronization.getFollower
(HeadwayGtu gtu, PerceptionCollectable<HeadwayGtu, LaneBasedGtu> leaders, HeadwayGtu follower, org.djunits.value.vdouble.scalar.Length ownLength) Returns the upstream gtu of the given gtu.(package private) HeadwayGtu
LmrsData.getSyncVehicle
(PerceptionCollectable<HeadwayGtu, LaneBasedGtu> adjLeaders) Returns the gtu from the set that is the current sync vehicle, ornull
of there is no sync vehicle or it is not in the set. -
Uses of LaneBasedGtu in org.opentrafficsim.road.gtu.strategical
Modifier and TypeMethodDescriptionLaneBasedStrategicalPlanner.getGtu()
final LaneBasedGtu
LaneBasedStrategicalRoutePlanner.getGtu()
Modifier and TypeMethodDescriptionLaneBasedStrategicalPlannerFactory.create
(LaneBasedGtu gtu, Route route, Node origin, Node destination) Creates a new strategical planner for the given GTU.LaneBasedStrategicalRoutePlannerFactory.create
(LaneBasedGtu gtu, Route route, Node origin, Node destination) Creates a new strategical planner for the given GTU.ModifierConstructorDescriptionLaneBasedStrategicalRoutePlanner
(LaneBasedTacticalPlanner fixedTacticalPlanner, Route route, LaneBasedGtu gtu, Node origin, Node destination, RouteGenerator routeGenerator) Constructor for a strategical planner with route.LaneBasedStrategicalRoutePlanner
(LaneBasedTacticalPlanner fixedTacticalPlanner, LaneBasedGtu gtu) Constructor for a strategical planner without route. -
Uses of LaneBasedGtu in org.opentrafficsim.road.network.lane
Modifier and TypeMethodDescriptionfinal LaneBasedGtu
Lane.getFirstGtu()
Get the first GTU on the lane, relative to a driving direction on this lane.final LaneBasedGtu
Lane.getGtu
(int index) Returns the index'th GTU.final LaneBasedGtu
Lane.getGtu
(int index, org.djunits.value.vdouble.scalar.Time time) Returns the index'th GTU at specified time.final LaneBasedGtu
Lane.getGtuAhead
(org.djunits.value.vdouble.scalar.Length position, RelativePosition.Type relativePosition, org.djunits.value.vdouble.scalar.Time when) Get the first GTU where the relativePosition is in front of another GTU on the lane, in a driving direction on this lane, compared to the DESIGN LINE.final LaneBasedGtu
Lane.getGtuBehind
(org.djunits.value.vdouble.scalar.Length position, RelativePosition.Type relativePosition, org.djunits.value.vdouble.scalar.Time when) Get the first GTU where the relativePosition is behind a certain position on the lane, in a driving direction on this lane, compared to the DESIGN LINE.final LaneBasedGtu
Lane.getLastGtu()
Get the last GTU on the lane, relative to a driving direction on this lane.Modifier and TypeMethodDescriptionfinal org.djutils.immutablecollections.ImmutableList<LaneBasedGtu>
Lane.getGtuList()
final List<LaneBasedGtu>
Lane.getGtuList
(org.djunits.value.vdouble.scalar.Time time) Returns the list of GTU's at the specified time.Modifier and TypeMethodDescriptionfinal int
Lane.addGtu
(LaneBasedGtu gtu, double fractionalPosition) Add a LaneBasedGtu to the list of this Lane.final int
Lane.addGtu
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Length longitudinalPosition) Add a LaneBasedGtu to the list of this Lane.final int
Lane.indexOfGtu
(LaneBasedGtu gtu) Returns the index of the given GTU, or -1 if not present.final int
Lane.indexOfGtu
(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Time time) Returns the index of the given GTU, or -1 if not present, at specified time.final void
Lane.removeGtu
(LaneBasedGtu gtu, boolean removeFromParentLink, org.djunits.value.vdouble.scalar.Length position) Remove a GTU from the GTU list of this lane.final void
Lane.scheduleDetectorTriggers
(LaneBasedGtu gtu, double referenceStartSI, double referenceMoveSI) Schedule triggering of the detectors for a certain time step; from now until the nextEvaluationTime of the GTU. -
Uses of LaneBasedGtu in org.opentrafficsim.road.network.lane.conflict
Modifier and TypeMethodDescriptionConflict.getDownstreamGtus
(LaneBasedGtu perceivingGtu, HeadwayGtuType headwayGtuType, org.djunits.value.vdouble.scalar.Length visibility) Provides the downstream GTUs.Conflict.getUpstreamGtus
(LaneBasedGtu perceivingGtu, HeadwayGtuType headwayGtuType, org.djunits.value.vdouble.scalar.Length visibility) Provides the upstream GTUs.Modifier and TypeMethodDescriptionConflict.getDownstreamGtus
(LaneBasedGtu perceivingGtu, HeadwayGtuType headwayGtuType, org.djunits.value.vdouble.scalar.Length visibility) Provides the downstream GTUs.Conflict.getUpstreamGtus
(LaneBasedGtu perceivingGtu, HeadwayGtuType headwayGtuType, org.djunits.value.vdouble.scalar.Length visibility) Provides the upstream GTUs. -
Uses of LaneBasedGtu in org.opentrafficsim.road.network.lane.object.detector
Modifier and TypeFieldDescriptionstatic final BiPredicate<SinkDetector,
LaneBasedGtu> SinkDetector.DESTINATION
Predicate to use to destroy all GTUs with routes ending in the end node of this link, possibly via a connector.Modifier and TypeMethodDescription(package private) <C> void
LoopDetector.accumulate
(LoopDetector.LoopDetectorMeasurement<C, ?> measurement, LaneBasedGtu gtu, boolean front) Accumulates a measurement.LoopDetector.LoopDetectorMeasurement.accumulateEntry
(C cumulative, LaneBasedGtu gtu, LoopDetector loopDetector) Returns an accumulated value for when the front reaches the detector.LoopDetector.PlatoonSizes.accumulateEntry
(LoopDetector.PlatoonMeasurement cumulative, LaneBasedGtu gtu, LoopDetector loopDetector) Returns an accumulated value for when the front reaches the detector.LoopDetector.LoopDetectorMeasurement.accumulateExit
(C cumulative, LaneBasedGtu gtu, LoopDetector loopDetector) Returns an accumulated value for when the rear leaves the detector.LoopDetector.PlatoonSizes.accumulateExit
(LoopDetector.PlatoonMeasurement cumulative, LaneBasedGtu gtu, LoopDetector loopDetector) Returns an accumulated value for when the rear leaves the detector.protected final void
TrafficLightDetector.addGtu
(LaneBasedGtu gtu) Add a GTU to the set.protected final void
TrafficLightDetector.removeGtu
(LaneBasedGtu gtu) Remove a GTU from the set.final void
TrafficLightDetector.signalDetection
(TrafficLightDetector.StartEndDetector detector, LaneBasedGtu gtu) One of our start/end detectors has triggered.final void
LaneDetector.trigger
(LaneBasedGtu gtu) Trigger an action on the GTU.protected abstract void
LaneDetector.triggerResponse
(LaneBasedGtu gtu) Implementation of the response to a trigger of this detector by a GTU.protected void
LoopDetector.triggerResponse
(LaneBasedGtu gtu) Implementation of the response to a trigger of this detector by a GTU.final void
ReportingDetector.triggerResponse
(LaneBasedGtu gtu) Implementation of the response to a trigger of this detector by a GTU.final void
SinkDetector.triggerResponse
(LaneBasedGtu gtu) Implementation of the response to a trigger of this detector by a GTU.protected final void
TrafficLightDetector.StartEndDetector.triggerResponse
(LaneBasedGtu gtu) Implementation of the response to a trigger of this detector by a GTU.boolean
SinkDetector.willDestroy
(LaneBasedGtu gtu) Returns whether the GTU will be removed by this sink.ModifierConstructorDescriptionSinkDetector
(Lane lane, org.djunits.value.vdouble.scalar.Length position, OtsSimulatorInterface simulator, DetectorType detectorType, BiPredicate<SinkDetector, LaneBasedGtu> predicate) Constructor. -
Uses of LaneBasedGtu in org.opentrafficsim.road.network.sampling
Modifier and TypeMethodDescriptionfinal void
RoadSampler.notifySample
(LaneBasedGtu gtu, Lane lane, boolean scheduleNext) Samples a gtu and schedules the next sampling event.