Class IDMPlusMulti

    • Field Detail

      • NLEADERS

        public static final ParameterTypeInteger NLEADERS
        Number of leaders considered parameter.
    • Constructor Detail

      • IDMPlusMulti

        public IDMPlusMulti()
        Default constructor using default models for desired headway and desired speed.
      • IDMPlusMulti

        public IDMPlusMulti​(DesiredHeadwayModel desiredHeadwayModel,
                            DesiredSpeedModel desiredSpeedModel)
        Constructor with modular models for desired headway and desired speed.
        Parameters:
        desiredHeadwayModel - DesiredHeadwayModel; desired headway model
        desiredSpeedModel - DesiredSpeedModel; desired speed model
    • Method Detail

      • getName

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

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

        protected final Acceleration combineInteractionTerm​(Acceleration aFree,
                                                            Parameters parameters,
                                                            Speed speed,
                                                            Speed desiredSpeed,
                                                            Length desiredHeadway,
                                                            PerceptionIterable<? extends Headway> leaders)
                                                     throws ParameterException
        Combines an interaction term with the free term. There should be at least 1 leader for this method.
        Specified by:
        combineInteractionTerm in class AbstractIDM
        Parameters:
        aFree - Acceleration; Free term of acceleration.
        parameters - Parameters; Parameters.
        speed - Speed; Current speed.
        desiredSpeed - Speed; Desired speed.
        desiredHeadway - Length; Desired headway.
        leaders - PerceptionIterable<? extends Headway>; Set of leader headways (guaranteed positive) and speeds, ordered by headway (closest first).
        Returns:
        Combination of terms into a single acceleration.
        Throws:
        ParameterException - In case of parameter exception.