Uses of Class
org.opentrafficsim.road.gtu.tactical.TacticalContextEgo
Packages that use TacticalContextEgo
Package
Description
The lane-based GTUs are the Generalized Travel Units that travel in lanes, and need to switch lanes to overtake.
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 TacticalContextEgo in org.opentrafficsim.road.gtu
Methods in org.opentrafficsim.road.gtu with parameters of type TacticalContextEgoModifier and TypeMethodDescriptionstatic voidBreak.on(TacticalContextEgo context, String id, double time, boolean additionalCondition) Break on perception and double time. -
Uses of TacticalContextEgo in org.opentrafficsim.road.gtu.tactical.lmrs
Methods in org.opentrafficsim.road.gtu.tactical.lmrs with parameters of type TacticalContextEgoModifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.AccelerationAccelerationBusStop.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) final org.djunits.value.vdouble.scalar.AccelerationAccelerationConflicts.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationIncentive.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Determine acceleration.org.djunits.value.vdouble.scalar.AccelerationAccelerationLaneChangers.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationNoSlowLaneOvertake.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationSpeedTransition.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) org.djunits.value.vdouble.scalar.AccelerationAccelerationTrafficLights.accelerate(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) IncentiveBusStop.determineDesire(TacticalContextEgo context, ImmutableLinkedHashMap<Class<? extends MandatoryIncentive>, Desire> mandatoryDesire) IncentiveCourtesy.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) IncentiveDummy.determineDesire(TacticalContextEgo context, ImmutableLinkedHashMap<Class<? extends MandatoryIncentive>, Desire> mandatoryDesire) IncentiveGetInLane.determineDesire(TacticalContextEgo context, ImmutableLinkedHashMap<Class<? extends MandatoryIncentive>, Desire> mandatoryDesire) IncentiveKeep.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) IncentiveQueue.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) IncentiveRoute.determineDesire(TacticalContextEgo context, ImmutableLinkedHashMap<Class<? extends MandatoryIncentive>, Desire> mandatoryDesire) IncentiveSocioSpeed.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) IncentiveSpeed.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) IncentiveSpeedWithCourtesy.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) IncentiveStayOnSlowLanes.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) org.djunits.value.vdouble.scalar.AccelerationAbstractIncentivesTacticalPlanner.getAcceleration(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance) Determine acceleration.static doubleIncentiveRoute.getDesireToLeave(TacticalContextEgo context, RelativeLane lane) Calculates desire to leave a lane.AbstractIncentivesTacticalPlanner.getMandatoryDesire(TacticalContextEgo context) Determines level of lane change desire for mandatory lane change incentives.AbstractIncentivesTacticalPlanner.getVoluntaryDesire(TacticalContextEgo context) Determines level of lane change desire for voluntary lane change incentives. -
Uses of TacticalContextEgo in org.opentrafficsim.road.gtu.tactical.util
Methods in org.opentrafficsim.road.gtu.tactical.util with parameters of type TacticalContextEgoModifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.AccelerationConflictUtil.approachConflicts(TacticalContextEgo context, ConflictUtil.ConflictPlans conflictPlans, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, boolean onRoute) Approach conflicts by applying appropriate acceleration (or deceleration).static org.djunits.value.vdouble.scalar.AccelerationSpeedLimitUtil.considerSpeedLimitTransitions(TacticalContextEgo context, RelativeLane lane) Acceleration for speed limit transitions.static SimpleOperationalPlanDeadEndUtil.dealWithDeadEnd(TacticalContextEgo context, SimpleOperationalPlan plan) Adjusts the simple operational plan to deal with dead-end situations.static SimpleOperationalPlanLaneChangeNotAllowedUtil.preventLaneChange(TacticalContextEgo context, SimpleOperationalPlan plan) Adjusts the simple operational plan to deal with lane changes that are not allowed.static org.djunits.value.vdouble.scalar.AccelerationTrafficLightUtil.respondToTrafficLight(TacticalContextEgo context, PerceivedTrafficLight headwayTrafficLight) Returns an acceleration as response to a traffic light, being positive infinity if ignored.static org.djunits.value.vdouble.scalar.AccelerationTrafficLightUtil.respondToTrafficLights(TacticalContextEgo context, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, boolean onRoute) Returns an acceleration as response to a set of traffic lights, being positive infinity if ignored. -
Uses of TacticalContextEgo in org.opentrafficsim.road.gtu.tactical.util.lmrs
Methods in org.opentrafficsim.road.gtu.tactical.util.lmrs with parameters of type TacticalContextEgoModifier and TypeMethodDescriptionbooleanGapAcceptance.acceptGap(TacticalContextEgo context, double desire, LateralDirectionality lat) Determine whether a gap is acceptable.static booleanSynchronization.canBeAhead(TacticalContextEgo context, PerceivedGtu adjacentVehicle, org.djunits.value.vdouble.scalar.Length xCur, int nCur, org.djunits.value.vdouble.scalar.Speed tagSpeed, double dCoop, org.djunits.value.vdouble.scalar.Acceleration b, org.djunits.value.vdouble.scalar.Duration tMin, org.djunits.value.vdouble.scalar.Duration tMax, org.djunits.value.vdouble.scalar.Length x0, org.djunits.value.vdouble.scalar.Duration t0, org.djunits.value.vdouble.scalar.Duration lc, double desire) Returns whether a driver estimates it can be ahead of an adjacent vehicle for merging.org.djunits.value.vdouble.scalar.AccelerationCooperation.cooperate(TacticalContextEgo context, LateralDirectionality lat, LmrsData lmrsData, Desire ownDesire) Determine acceleration for cooperation.MandatoryIncentive.determineDesire(TacticalContextEgo context, ImmutableLinkedHashMap<Class<? extends MandatoryIncentive>, Desire> mandatoryDesire) Determines level of lane change desire for a lane change incentive.VoluntaryIncentive.determineDesire(TacticalContextEgo context, Desire mandatoryDesire, ImmutableLinkedHashMap<Class<? extends VoluntaryIncentive>, Desire> voluntaryDesire) Determines level of lane change desire for a lane change incentive.static SimpleOperationalPlanLmrsUtil.determinePlan(TacticalContextEgo context, LmrsData lmrsData, AbstractIncentivesTacticalPlanner incentives) Determines a simple representation of an operational plan.static voidTailgating.deviate(TacticalContextEgo context, double rho) Add lateral deviation intent based on level of social pressure.static DesireLmrsUtil.getLaneChangeDesire(TacticalContextEgo context, AbstractIncentivesTacticalPlanner incentives) Determines lane change desire for the given GtU.static org.djunits.value.vdouble.scalar.AccelerationSynchronization.stopForEnd(TacticalContextEgo context, org.djunits.value.vdouble.scalar.Length xCur, org.djunits.value.vdouble.scalar.Length xMerge) Calculates acceleration to stop for a split or dead-end, accounting for infrastructure.org.djunits.value.vdouble.scalar.AccelerationSynchronization.synchronize(TacticalContextEgo context, double desire, LateralDirectionality lat, LmrsData lmrsData, LateralDirectionality initiatedLaneChange) Determine acceleration for synchronization.static org.djunits.value.vdouble.scalar.AccelerationSynchronization.tagAlongAcceleration(TacticalContextEgo context, PerceivedGtu leader, org.djunits.value.vdouble.scalar.Speed tagSpeed, double desire) Calculates acceleration by following an adjacent vehicle, with tagging along if desire is not very high and speed is low.voidTailgating.tailgate(TacticalContextEgo context) Apply tailgating.