Class IDM

    • Constructor Detail

      • IDM

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

        public IDM​(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,
                                                            org.opentrafficsim.base.parameters.Parameters parameters,
                                                            Speed speed,
                                                            Speed desiredSpeed,
                                                            Length desiredHeadway,
                                                            PerceptionIterable<? extends Headway> leaders)
                                                     throws org.opentrafficsim.base.parameters.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:
        org.opentrafficsim.base.parameters.ParameterException - In case of parameter exception.