Class LinearACC

    • Field Detail

      • KS

        public static final org.opentrafficsim.base.parameters.ParameterTypeDouble KS
        Gap error gain parameter.
      • KV

        public static final org.opentrafficsim.base.parameters.ParameterTypeDouble KV
        Speed error gain parameter.
    • Constructor Detail

      • LinearACC

        public LinearACC​(DelayedActuation delayedActuation)
        Constructor using default sensors with no delay.
        Parameters:
        delayedActuation - DelayedActuation; delayed actuation
    • Method Detail

      • getFollowingAcceleration

        public Acceleration getFollowingAcceleration​(LaneBasedGTU gtu,
                                                     PerceptionCollectable<HeadwayGTU,​LaneBasedGTU> leaders,
                                                     org.opentrafficsim.base.parameters.Parameters settings)
                                              throws org.opentrafficsim.base.parameters.ParameterException
        Returns the following acceleration of the longitudinal control. This method is only invoked if there is at least 1 leader.
        Specified by:
        getFollowingAcceleration in class AbstractLinearFreeControl
        Parameters:
        gtu - LaneBasedGTU; gtu
        leaders - PerceptionCollectable<HeadwayGTU, LaneBasedGTU>; leaders
        settings - Parameters; system settings
        Returns:
        Acceleration; following acceleration of the longitudinal control
        Throws:
        org.opentrafficsim.base.parameters.ParameterException - if parameter is not present