Class AccelerationNoRightOvertake

    • Field Detail

      • VCONG

        public static final org.opentrafficsim.base.parameters.ParameterTypeSpeed VCONG
        Speed threshold below which traffic is considered congested.
      • B0

        public static final org.opentrafficsim.base.parameters.ParameterTypeAcceleration B0
        Maximum adjustment deceleration, e.g. when speed limit drops.
    • Constructor Detail

      • AccelerationNoRightOvertake

        public AccelerationNoRightOvertake()
    • Method Detail

      • accelerate

        public void accelerate​(SimpleOperationalPlan simplePlan,
                               RelativeLane lane,
                               Length mergeDistance,
                               LaneBasedGTU gtu,
                               LanePerception perception,
                               CarFollowingModel carFollowingModel,
                               Speed speed,
                               org.opentrafficsim.base.parameters.Parameters params,
                               SpeedLimitInfo speedLimitInfo)
                        throws OperationalPlanException,
                               org.opentrafficsim.base.parameters.ParameterException,
                               GTUException
        Determine acceleration.
        Specified by:
        accelerate in interface AccelerationIncentive
        Parameters:
        simplePlan - SimpleOperationalPlan; simple plan to set the acceleration
        lane - RelativeLane; lane on which to consider the acceleration
        mergeDistance - Length; distance over which a lane change is impossible
        gtu - LaneBasedGTU; gtu
        perception - LanePerception; perception
        carFollowingModel - CarFollowingModel; car-following model
        speed - Speed; current speed
        params - Parameters; parameters
        speedLimitInfo - SpeedLimitInfo; speed limit info
        Throws:
        OperationalPlanException - in case of an error
        org.opentrafficsim.base.parameters.ParameterException - on missing parameter
        GTUException - when there is a problem with the state of the GTU when planning a path