Class Throttle


  • public class Throttle
    extends Object
    Throttle that only permits a certain number of events.
    Author:
    Kay Kasemir
    • Constructor Detail

      • Throttle

        public Throttle​(double seconds_between_messages)
        Construct throttle that only allows one event in every time slot.
        Parameters:
        seconds_between_messages -  
    • Method Detail

      • getPeriod

        public double getPeriod()
        Returns:
        Event period [seconds]
      • isPermitted

        public boolean isPermitted()
        Returns:
        true if another event is permitted "right now"