14 #ifndef TokenBucket_HPP
15 #define TokenBucket_HPP
20 #define MAX_TOKEN_BUCKET_TOKENS 1000
33 TokenBucket(U32 replenishInterval, U32 maxTokens, U32 replenishRate, U32 startTokens,
Fw::Time startTime);
66 U32 m_replenishInterval;
C++-compatible configuration header for fprime configuration.
void setMaxTokens(U32 maxTokens)
TokenBucket(U32 replenishInterval, U32 maxTokens, U32 replenishRate, U32 startTokens, Fw::Time startTime)
void setReplenishRate(U32 replenishRate)
U32 getReplenishInterval() const
bool trigger(const Fw::Time time)
U32 getReplenishRate() const
void setReplenishInterval(U32 replenishInterval)