- All Implemented Interfaces:
AFilter
This class lets you rate limit a stream of inputs
Instead of being based on the rate that update is called, the value you give it is based on
how much it should be able to change in one second.
-
Constructor Summary
Constructors
-
Method Summary
Get next value in Filter based on the next value given
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ARateLimit
public ARateLimit(Number rateLimit)
- Parameters:
rateLimit
- The max speed in rad/s.
-
Method Details
-
get
Description copied from interface: AFilter
Get next value in Filter based on the next value given
- Specified by:
get
in interface AFilter
- Parameters:
next
- next input value in the stream
- Returns:
- the output value of the filter