F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Utils/TokenBucket.hpp>
Public Member Functions | |
TokenBucket (U32 replenishInterval, U32 maxTokens, U32 replenishRate, U32 startTokens, Fw::Time startTime) | |
TokenBucket (U32 replenishInterval, U32 maxTokens) | |
void | setMaxTokens (U32 maxTokens) |
void | setReplenishInterval (U32 replenishInterval) |
void | setReplenishRate (U32 replenishRate) |
U32 | getMaxTokens () const |
U32 | getReplenishInterval () const |
U32 | getReplenishRate () const |
U32 | getTokens () const |
void | replenish () |
bool | trigger (const Fw::Time time) |
Definition at line 24 of file TokenBucket.hpp.
Utils::TokenBucket::TokenBucket | ( | U32 | replenishInterval, |
U32 | maxTokens, | ||
U32 | replenishRate, | ||
U32 | startTokens, | ||
Fw::Time | startTime | ||
) |
Definition at line 18 of file TokenBucket.cpp.
Utils::TokenBucket::TokenBucket | ( | U32 | replenishInterval, |
U32 | maxTokens | ||
) |
Definition at line 34 of file TokenBucket.cpp.
U32 Utils::TokenBucket::getMaxTokens | ( | ) | const |
Definition at line 86 of file TokenBucket.cpp.
U32 Utils::TokenBucket::getReplenishInterval | ( | ) | const |
Definition at line 80 of file TokenBucket.cpp.
U32 Utils::TokenBucket::getReplenishRate | ( | ) | const |
Definition at line 92 of file TokenBucket.cpp.
U32 Utils::TokenBucket::getTokens | ( | ) | const |
Definition at line 98 of file TokenBucket.cpp.
void Utils::TokenBucket::replenish | ( | ) |
Definition at line 72 of file TokenBucket.cpp.
void Utils::TokenBucket::setMaxTokens | ( | U32 | maxTokens | ) |
Definition at line 56 of file TokenBucket.cpp.
void Utils::TokenBucket::setReplenishInterval | ( | U32 | replenishInterval | ) |
Definition at line 48 of file TokenBucket.cpp.
void Utils::TokenBucket::setReplenishRate | ( | U32 | replenishRate | ) |
Definition at line 64 of file TokenBucket.cpp.
bool Utils::TokenBucket::trigger | ( | const Fw::Time | time | ) |
Definition at line 104 of file TokenBucket.cpp.