Uses of Class
org.opentrafficsim.road.network.speed.SpeedLimitInfo
Package
Description
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
GTU (Car) following models such as IDM+.
Classes that implement the LMRS lane change model integrated with a car-following model forming a tactical planner.
Static methods for composition in tactical planners.
LMRS (Lane change Model with Relaxation and Synchronization) utilities for tactical planner.
Classes to connect driver behavior with many different aspects that govern the desired speed.
-
Uses of SpeedLimitInfo in org.opentrafficsim.road.gtu.lane.perception.headway
Modifier and TypeMethodDescriptionstatic SpeedLimitInfo
AbstractHeadwayGtu.getSpeedLimitInfo
(LaneBasedGtu gtu) Creates speed limit info for given GTU.HeadwayGtu.getSpeedLimitInfo()
Many models that observe a GTU need to predict the imminent behavior of that GTU.final SpeedLimitInfo
HeadwayGtuReal.getSpeedLimitInfo()
Many models that observe a GTU need to predict the imminent behavior of that GTU.final SpeedLimitInfo
HeadwayGtuRealCopy.getSpeedLimitInfo()
Many models that observe a GTU need to predict the imminent behavior of that GTU.final SpeedLimitInfo
HeadwayGtuSimple.getSpeedLimitInfo()
Many models that observe a GTU need to predict the imminent behavior of that GTU.final SpeedLimitInfo
HeadwayGtuType.getSpeedLimitInfo()
Many models that observe a GTU need to predict the imminent behavior of that GTU.ModifierConstructorDescription(package private)
HeadwayGtuRealCopy
(String id, GtuType gtuType, 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.Length length, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedLimitInfo, Route route, org.djunits.value.vdouble.scalar.Speed desiredSpeed, GtuStatus... gtuStatus) Protected constructor for moved copies or subclasses.(package private)
HeadwayGtuRealCopy
(String id, GtuType gtuType, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedLimitInfo, Route route, org.djunits.value.vdouble.scalar.Speed desiredSpeed, GtuStatus... gtuStatus) Protected constructor for moved copies or subclasses. -
Uses of SpeedLimitInfo in org.opentrafficsim.road.gtu.lane.tactical.following
Modifier and TypeMethodDescriptionfinal org.djunits.value.vdouble.scalar.Speed
AbstractCarFollowingModel.desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed.org.djunits.value.vdouble.scalar.Speed
DesiredSpeedModel.desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed.final org.djunits.value.vdouble.scalar.Speed
FixedAccelerationModel.desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed.final org.djunits.value.vdouble.scalar.Speed
IdmOld.desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed.final org.djunits.value.vdouble.scalar.Speed
IdmPlusOld.desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed.final org.djunits.value.vdouble.scalar.Speed
SequentialFixedAccelerationModel.desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed.final org.djunits.value.vdouble.scalar.Acceleration
AbstractCarFollowingModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.org.djunits.value.vdouble.scalar.Acceleration
CarFollowingModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
FixedAccelerationModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
IdmOld.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
IdmPlusOld.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final org.djunits.value.vdouble.scalar.Acceleration
SequentialFixedAccelerationModel.followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedInfo, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders. -
Uses of SpeedLimitInfo 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.org.djunits.value.vdouble.scalar.Speed
SocioDesiredSpeed.desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed. -
Uses of SpeedLimitInfo in org.opentrafficsim.road.gtu.lane.tactical.util
Modifier and TypeMethodDescriptionstatic AnticipationInfo
AnticipationInfo.anticipateMovementFreeAcceleration
(org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed initialSpeed, org.opentrafficsim.base.parameters.Parameters parameters, CarFollowingModel carFollowingModel, SpeedLimitInfo speedLimitInfo, org.djunits.value.vdouble.scalar.Duration timeStep) Returns info of the anticipation using free acceleration from car-following model.static 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 org.djunits.value.vdouble.scalar.Acceleration
CarFollowingUtil.approachTargetSpeed
(CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed targetSpeed) Returns an acceleration based on the car-following model in order to adjust the speed to a given value at some location ahead.static org.djunits.value.vdouble.scalar.Acceleration
CarFollowingUtil.followSingleLeader
(CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed leaderSpeed) Follow a set of headway GTUs.static org.djunits.value.vdouble.scalar.Acceleration
CarFollowingUtil.followSingleLeader
(CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, HeadwayGtu leader) Follow a set of headway GTUs.static org.djunits.value.vdouble.scalar.Acceleration
CarFollowingUtil.freeAcceleration
(CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) Calculate free acceleration.static org.djunits.value.vdouble.scalar.Speed
SpeedLimitUtil.getLegalSpeedLimit
(SpeedLimitInfo speedLimitInfo) Returns the minimum speed of the applicable speed limit types MAX_LEGAL_VEHICLE_SPEED, ROAD_CLASS, FIXED_SIGN and DYNAMIC_SIGN.static org.djunits.value.vdouble.scalar.Speed
SpeedLimitUtil.getMaximumVehicleSpeed
(SpeedLimitInfo speedLimitInfo) Returns the speed of speed limit type MAX_VEHICLE_SPEED.static org.djunits.value.vdouble.scalar.Acceleration
TrafficLightUtil.respondToTrafficLight
(org.opentrafficsim.base.parameters.Parameters parameters, HeadwayTrafficLight headwayTrafficLight, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) Returns an acceleration as response to a traffic light, being positive infinity if ignored.static org.djunits.value.vdouble.scalar.Acceleration
TrafficLightUtil.respondToTrafficLights
(org.opentrafficsim.base.parameters.Parameters parameters, Iterable<HeadwayTrafficLight> headwayTrafficLights, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) Returns an acceleration as response to a set of traffic lights, being positive infinity if ignored.static org.djunits.value.vdouble.scalar.Acceleration
CarFollowingUtil.stop
(CarFollowingModel carFollowingModel, org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, org.djunits.value.vdouble.scalar.Length distance) Stop within given distance.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.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 SpeedLimitInfo in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs
Modifier and TypeMethodDescriptionboolean
GapAcceptance.acceptGap
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, org.djunits.value.vdouble.scalar.Acceleration ownAcceleration, LateralDirectionality lat) Determine whether a gap is acceptable.(package private) static boolean
LmrsUtil.acceptLaneChange
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, org.djunits.value.vdouble.scalar.Acceleration ownAcceleration, LateralDirectionality lat, GapAcceptance gapAcceptance, LaneChange laneChange) Determine whether a lane change is acceptable (gap, lane markings, etc.).org.djunits.value.vdouble.scalar.Acceleration
Cooperation.cooperate
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, LateralDirectionality lat, Desire ownDesire) Determine acceleration for cooperation.static org.djunits.value.vdouble.scalar.Acceleration
GapAcceptance.egoAcceleration
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, LateralDirectionality lat) Determine whether a gap is acceptable.static org.djunits.value.vdouble.scalar.Acceleration
LmrsUtil.singleAcceleration
(org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed followerSpeed, org.djunits.value.vdouble.scalar.Speed leaderSpeed, double desire, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm) Determine acceleration from car-following with desire-adjusted headway.static org.djunits.value.vdouble.scalar.Acceleration
Synchronization.stopForEnd
(org.djunits.value.vdouble.scalar.Length xCur, org.djunits.value.vdouble.scalar.Length xMerge, org.opentrafficsim.base.parameters.Parameters params, org.djunits.value.vdouble.scalar.Speed ownSpeed, CarFollowingModel cfm, SpeedLimitInfo sli) Calculates acceleration to stop for a split or dead-end, accounting for infrastructure.org.djunits.value.vdouble.scalar.Acceleration
Synchronization.synchronize
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, LateralDirectionality lat, LmrsData lmrsData, LaneChange laneChange, LateralDirectionality initiatedLaneChange) Determine acceleration for synchronization.static org.djunits.value.vdouble.scalar.Acceleration
Synchronization.tagAlongAcceleration
(HeadwayGtu leader, org.djunits.value.vdouble.scalar.Speed followerSpeed, org.djunits.value.vdouble.scalar.Length followerLength, org.djunits.value.vdouble.scalar.Speed tagSpeed, double desire, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm) Calculates acceleration by following an adjacent vehicle, with tagging along if desire is not very high and speed is low. -
Uses of SpeedLimitInfo in org.opentrafficsim.road.network.speed
Modifier and TypeMethodDescriptionfinal <T> SpeedLimitInfo
SpeedLimitProspect.buildSpeedLimitInfo
(org.djunits.value.vdouble.scalar.Length distance, SpeedLimitType<T> speedLimitType) Builds speed limit info with only MAX_VEHICLE_SPEED and the given speed limit type, where the speed info is obtained at the given distance.final SpeedLimitInfo
SpeedLimitProspect.getSpeedLimitInfo
(org.djunits.value.vdouble.scalar.Length distance) Returns the speed info at a given location.final SpeedLimitInfo
SpeedLimitProspect.getSpeedLimitInfo
(org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Duration time) Returns the speed info at a location following an acceleration over some duration.