Interface CarFollowingModel

    • Field Detail

      • CAR_FOLLOWING_MODEL

        static final org.opentrafficsim.base.parameters.ParameterTypeClass<CarFollowingModel> CAR_FOLLOWING_MODEL
        Parameter type for car-following model.
    • Method Detail

      • followingAcceleration

        Acceleration followingAcceleration​(org.opentrafficsim.base.parameters.Parameters parameters,
                                           Speed speed,
                                           SpeedLimitInfo speedLimitInfo,
                                           PerceptionIterable<? extends Headway> leaders)
                                    throws org.opentrafficsim.base.parameters.ParameterException
        Determination of car-following acceleration, possibly based on multiple leaders. The implementation should be able to deal with:
        • The current speed being higher than the desired speed.
        • The headway being negative.
        Parameters:
        parameters - Parameters; parameters
        speed - Speed; current speed
        speedLimitInfo - SpeedLimitInfo; info regarding the desired speed for car-following
        leaders - PerceptionIterable<? extends Headway>; set of leader headways and speeds, ordered by headway (closest first)
        Returns:
        car-following acceleration
        Throws:
        org.opentrafficsim.base.parameters.ParameterException - if parameter exception occurs
      • getName

        String getName()
        Return the name of the car-following model.
        Returns:
        name of the car-following model
      • getLongName

        String getLongName()
        Return the complete name of the car-following model.
        Returns:
        complete name of the car-following model
      • init

        default void init​(LaneBasedGTU gtu)
        Initialize car-following model.
        Specified by:
        init in interface Initialisable
        Parameters:
        gtu - LaneBasedGTU; gtu