Public Methods
Public Members
- static const uint32_t FIXED
static const uint32_t FIXED
| FIXED |
void set_damping (bool damping)
| set_damping |
bool get_damping ()
| get_damping |
[const]
void set_half_life (uint32_t half_life)
| set_half_life |
void set_max_hold_down (uint32_t max_hold_down)
| set_max_hold_down |
void set_reuse (uint32_t reuse)
| set_reuse |
void set_cutoff (uint32_t cutoff)
| set_cutoff |
uint32_t get_tick ()
| get_tick |
[const]
Get the current clock tick.
uint32_t get_merit ()
| get_merit |
[const]
Merit value to use the first time a route is encountered.
uint32_t compute_merit (uint32_t last_time, uint32_t last_merit)
| compute_merit |
[const]
Compute the merit value given the last time and merit values.
bool cutoff (uint32_t merit)
| cutoff |
[const]
True of the merit value has passed the cutoff threshold.
bool reuse (uint32_t merit)
| reuse |
[const]
True of the merit value is above the reuse threshold.
uint32_t get_reuse_time (uint32_t merit)
| get_reuse_time |
[const]
Compute how long the route should be damped in seconds.
The time for this figure of merit to decay to the reuse threshold.
Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:33 2006, using kdoc $.