Uses of Interface
org.opentrafficsim.road.gtu.lane.tactical.following.CarFollowingModel
Packages that use CarFollowingModel
Package
Description
Implementation of lane-based perception for the GTU.
Interfaces and classes describing perceived objects.
Tactical planners for a lane-based GTU.
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.
-
Uses of CarFollowingModel in org.opentrafficsim.road.gtu.lane.perception
Methods in org.opentrafficsim.road.gtu.lane.perception that return CarFollowingModelModifier and TypeMethodDescriptionfinal CarFollowingModelGtuTypeAssumptions.getCarFollowingModel(GtuType gtuType) Return the car following model for a certain GtuType as an assumption for that GtuType.Methods in org.opentrafficsim.road.gtu.lane.perception with parameters of type CarFollowingModelModifier and TypeMethodDescriptionfinal voidGtuTypeAssumptions.setCarFollowingModel(GtuType gtuType, CarFollowingModel carFollowingModel) Set the car following model for a certain GtuType as an assumption for that GtuType. -
Uses of CarFollowingModel in org.opentrafficsim.road.gtu.lane.perception.object
Methods in org.opentrafficsim.road.gtu.lane.perception.object that return CarFollowingModelModifier and TypeMethodDescriptionPerceivedGtu.Behavior.getCarFollowingModel()Many models that observe a GTU need to predict the imminent behavior of that GTU. -
Uses of CarFollowingModel in org.opentrafficsim.road.gtu.lane.tactical
Methods in org.opentrafficsim.road.gtu.lane.tactical that return CarFollowingModelModifier and TypeMethodDescriptionfinal CarFollowingModelAbstractLaneBasedTacticalPlanner.getCarFollowingModel()LaneBasedTacticalPlanner.getCarFollowingModel()Returns the car-following model.protected final CarFollowingModelAbstractLaneBasedTacticalPlannerFactory.nextCarFollowingModel(LaneBasedGtu gtu) Returns the next car following model.Methods in org.opentrafficsim.road.gtu.lane.tactical with parameters of type CarFollowingModelModifier and TypeMethodDescriptionfinal voidAbstractLaneBasedTacticalPlanner.setCarFollowingModel(CarFollowingModel carFollowingModel) Sets the car-following model.Constructors in org.opentrafficsim.road.gtu.lane.tactical with parameters of type CarFollowingModelModifierConstructorDescriptionAbstractLaneBasedTacticalPlanner(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Instantiates a tactical planner.Constructor parameters in org.opentrafficsim.road.gtu.lane.tactical with type arguments of type CarFollowingModelModifierConstructorDescriptionAbstractLaneBasedTacticalPlannerFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory, PerceptionFactory perceptionFactory) Constructor. -
Uses of CarFollowingModel in org.opentrafficsim.road.gtu.lane.tactical.following
Classes in org.opentrafficsim.road.gtu.lane.tactical.following with type parameters of type CarFollowingModelModifier and TypeInterfaceDescriptioninterfaceCarFollowingModelFactory<T extends CarFollowingModel>Factory for car-following models.Classes in org.opentrafficsim.road.gtu.lane.tactical.following that implement CarFollowingModelModifier and TypeClassDescriptionclassDefault implementation where desired speed and headway are pre-calculated for car-following.classImplementation of the IDM.classImplementation of the IDM.classImplementation of the IDM+.classCopyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.Fields in org.opentrafficsim.road.gtu.lane.tactical.following with type parameters of type CarFollowingModelModifier and TypeFieldDescriptionstatic final ParameterTypeClass<CarFollowingModel>CarFollowingModel.CAR_FOLLOWING_MODELParameter type for car-following model. -
Uses of CarFollowingModel in org.opentrafficsim.road.gtu.lane.tactical.lmrs
Fields in org.opentrafficsim.road.gtu.lane.tactical.lmrs with type parameters of type CarFollowingModelModifier and TypeFieldDescriptionstatic final LmrsFactory.Setting<BiFunction<DesiredHeadwayModel,DesiredSpeedModel, CarFollowingModel>> LmrsFactory.Setting.CAR_FOLLOWING_MODELCar-following model: IDM or IDM_PLUS (default).Methods in org.opentrafficsim.road.gtu.lane.tactical.lmrs with parameters of type CarFollowingModelModifier and TypeMethodDescriptionvoidAccelerationBusStop.accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) final voidAccelerationConflicts.accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) voidAccelerationIncentive.accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) Determine acceleration.voidAccelerationNoRightOvertake.accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) voidAccelerationSpeedLimitTransition.accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) voidAccelerationTrafficLights.accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) IncentiveBusStop.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire) IncentiveCourtesy.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) IncentiveDummy.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire) IncentiveGetInLane.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire) IncentiveKeep.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) IncentiveQueue.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) IncentiveRoute.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire) IncentiveSocioSpeed.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) IncentiveSpeed.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) IncentiveSpeedWithCourtesy.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) IncentiveStayRight.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) LmrsFactory.TacticalPlannerProvider.from(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception, Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating) Constructs an instance of the correct tactical planner class.Method parameters in org.opentrafficsim.road.gtu.lane.tactical.lmrs with type arguments of type CarFollowingModelModifier and TypeMethodDescriptionLmrsFactoryOld.Factory.setCarFollowingModelFactory(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory) Deprecated.Sets car-following model factory.Constructors in org.opentrafficsim.road.gtu.lane.tactical.lmrs with parameters of type CarFollowingModelModifierConstructorDescriptionAbstractIncentivesTacticalPlanner(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.Constructor parameters in org.opentrafficsim.road.gtu.lane.tactical.lmrs with type arguments of type CarFollowingModelModifierConstructorDescriptionprotectedLmrsFactoryOld(CarFollowingModelFactory<? extends CarFollowingModel> carFollowingModelFactory, PerceptionFactory perceptionFactory, Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating, Set<Supplier<? extends MandatoryIncentive>> mandatoryIncentives, Set<Supplier<? extends VoluntaryIncentive>> voluntaryIncentives, Set<Supplier<? extends AccelerationIncentive>> accelerationIncentives) Deprecated.Constructor with full control over incentives and type of synchronization. -
Uses of CarFollowingModel in org.opentrafficsim.road.gtu.lane.tactical.util
Methods in org.opentrafficsim.road.gtu.lane.tactical.util with parameters of type CarFollowingModelModifier and TypeMethodDescriptionstatic AnticipationInfoAnticipationInfo.anticipateMovementFreeAcceleration(Length distance, Speed initialSpeed, Parameters parameters, CarFollowingModel carFollowingModel, SpeedLimitInfo speedLimitInfo, Duration timeStep) Returns info of the anticipation using free acceleration from car-following model.static AccelerationConflictUtil.approachConflicts(Parameters parameters, Iterable<PerceivedConflict> conflicts, PerceptionCollectable<PerceivedGtu, LaneBasedGtu> leaders, CarFollowingModel carFollowingModel, Length vehicleLength, Length vehicleWidth, Speed speed, Acceleration acceleration, SpeedLimitInfo speedLimitInfo, ConflictUtil.ConflictPlans conflictPlans, LaneBasedGtu gtu, RelativeLane lane) Approach conflicts by applying appropriate acceleration (or deceleration).static AccelerationCarFollowingUtil.approachTargetSpeed(CarFollowingModel carFollowingModel, Parameters parameters, Speed speed, SpeedLimitInfo speedLimitInfo, Length distance, 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 AccelerationSpeedLimitUtil.considerSpeedLimitTransitions(Parameters parameters, Speed speed, SpeedLimitProspect speedLimitProspect, CarFollowingModel carFollowingModel) Acceleration for speed limit transitions.static AccelerationCarFollowingUtil.constantAccelerationStop(CarFollowingModel carFollowingModel, Parameters parameters, Speed speed, Length distance) Return constant acceleration in order to stop in specified distance.static AccelerationCarFollowingUtil.followSingleLeader(CarFollowingModel carFollowingModel, Parameters parameters, Speed speed, SpeedLimitInfo speedLimitInfo, Length distance, Speed leaderSpeed) Follow a set of headway GTUs.static AccelerationCarFollowingUtil.followSingleLeader(CarFollowingModel carFollowingModel, Parameters parameters, Speed speed, SpeedLimitInfo speedLimitInfo, PerceivedGtu leader) Follow a set of headway GTUs.static AccelerationCarFollowingUtil.freeAcceleration(CarFollowingModel carFollowingModel, Parameters parameters, Speed speed, SpeedLimitInfo speedLimitInfo) Calculate free acceleration.static AccelerationTrafficLightUtil.respondToTrafficLight(Parameters parameters, PerceivedTrafficLight headwayTrafficLight, CarFollowingModel carFollowingModel, Speed speed, SpeedLimitInfo speedLimitInfo) Returns an acceleration as response to a traffic light, being positive infinity if ignored.static AccelerationTrafficLightUtil.respondToTrafficLights(Parameters parameters, Iterable<PerceivedTrafficLight> headwayTrafficLights, CarFollowingModel carFollowingModel, Speed speed, SpeedLimitInfo speedLimitInfo) Returns an acceleration as response to a set of traffic lights, being positive infinity if ignored.static AccelerationCarFollowingUtil.stop(CarFollowingModel carFollowingModel, Parameters parameters, Speed speed, SpeedLimitInfo speedLimitInfo, Length distance) Stop within given distance.static booleanConflictUtil.stopForGiveWayConflict(PerceivedConflict conflict, PerceptionCollectable<PerceivedGtu, LaneBasedGtu> leaders, Speed speed, Acceleration acceleration, Length vehicleLength, Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, ParameterTypeAcceleration bType, Length prevEnd) Approach a give-way conflict.static booleanConflictUtil.stopForStopConflict(PerceivedConflict conflict, PerceptionCollectable<PerceivedGtu, LaneBasedGtu> leaders, Speed speed, Acceleration acceleration, Length vehicleLength, Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, ParameterTypeAcceleration bType, Length prevEnd) Approach a stop conflict. -
Uses of CarFollowingModel in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs
Methods in org.opentrafficsim.road.gtu.lane.tactical.util.lmrs with parameters of type CarFollowingModelModifier and TypeMethodDescriptionbooleanGapAcceptance.acceptGap(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, Speed ownSpeed, Acceleration ownAcceleration, LateralDirectionality lat) Determine whether a gap is acceptable.Cooperation.cooperate(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, LateralDirectionality lat, Desire ownDesire) Determine acceleration for cooperation.MandatoryIncentive.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire) Determines level of lane change desire for a lane change incentive.VoluntaryIncentive.determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) Determines level of lane change desire for a lane change incentive.static SimpleOperationalPlanLmrsUtil.determinePlan(LaneBasedGtu gtu, CarFollowingModel carFollowingModel, LmrsData lmrsData, LanePerception perception, Iterable<MandatoryIncentive> mandatoryIncentives, Iterable<VoluntaryIncentive> voluntaryIncentives) Determines a simple representation of an operational plan.static DesireLmrsUtil.getLaneChangeDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Iterable<MandatoryIncentive> mandatoryIncentives, Iterable<VoluntaryIncentive> voluntaryIncentives, Map<Class<? extends Incentive>, Desire> desireMap) Determines lane change desire for the given GtU.static AccelerationLmrsUtil.singleAcceleration(Length distance, Speed followerSpeed, Speed leaderSpeed, double desire, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm) Determine acceleration from car-following with desire-adjusted headway.static AccelerationSynchronization.stopForEnd(Length xCur, Length xMerge, Parameters params, Speed ownSpeed, CarFollowingModel cfm, SpeedLimitInfo sli) Calculates acceleration to stop for a split or dead-end, accounting for infrastructure.Synchronization.synchronize(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, LateralDirectionality lat, LmrsData lmrsData, LateralDirectionality initiatedLaneChange) Determine acceleration for synchronization.static AccelerationSynchronization.tagAlongAcceleration(PerceivedGtu leader, Speed followerSpeed, Length followerLength, Speed tagSpeed, double desire, 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.