Class AbstractActuatedControl

    • Constructor Detail

      • AbstractActuatedControl

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

      • delayActuation

        public Acceleration delayActuation​(Acceleration desiredAcceleration,
                                           LaneBasedGTU gtu)
        Delays the actuation of acceleration.
        Parameters:
        desiredAcceleration - Acceleration; desired acceleration
        gtu - LaneBasedGTU; gtu
        Returns:
        Acceleration; delayed acceleration
      • getAcceleration

        public Acceleration getAcceleration​(LaneBasedGTU gtu,
                                            Parameters settings)
        Calculate acceleration.
        Specified by:
        getAcceleration in interface LongitudinalControl
        Parameters:
        gtu - LaneBasedGTU; controlled GTU
        settings - Parameters; system settings
        Returns:
        Acceleration; level of acceleration, may be null if the controller is unable to deal with a situation