nfd::fw::NccStrategy::MeasurementsEntryInfo Class Reference

StrategyInfo on measurements::Entry. More...

#include <daemon/fw/ncc-strategy.hpp>

+ Inheritance diagram for nfd::fw::NccStrategy::MeasurementsEntryInfo:
+ Collaboration diagram for nfd::fw::NccStrategy::MeasurementsEntryInfo:

Public Member Functions

 MeasurementsEntryInfo ()
void adjustPredictUp ()
shared_ptr< FacegetBestFace ()
void inheritFrom (const MeasurementsEntryInfo &other)
void updateBestFace (const Face &face)

Static Public Member Functions

static constexpr int getTypeId ()

Public Attributes

weak_ptr< FacebestFace
time::microseconds prediction
weak_ptr< FacepreviousFace

Static Public Attributes

static const int ADJUST_PREDICT_DOWN_SHIFT = 7
static const int ADJUST_PREDICT_UP_SHIFT = 3
static const time::microseconds INITIAL_PREDICTION = 8192_us
static const time::microseconds MAX_PREDICTION = 160_ms
static const time::microseconds MIN_PREDICTION = 127_us

Detailed Description

StrategyInfo on measurements::Entry.

Definition at line 57 of file ncc-strategy.hpp.

Constructor & Destructor Documentation

◆ MeasurementsEntryInfo()

nfd::fw::NccStrategy::MeasurementsEntryInfo::MeasurementsEntryInfo ( )

Definition at line 278 of file ncc-strategy.cpp.

Member Function Documentation

◆ adjustPredictUp()

void nfd::fw::NccStrategy::MeasurementsEntryInfo::adjustPredictUp ( )

Definition at line 325 of file ncc-strategy.cpp.

◆ getBestFace()

shared_ptr< Face > nfd::fw::NccStrategy::MeasurementsEntryInfo::getBestFace ( )

Definition at line 290 of file ncc-strategy.cpp.

◆ getTypeId()

static constexpr int nfd::fw::NccStrategy::MeasurementsEntryInfo::getTypeId ( )

Definition at line 61 of file ncc-strategy.hpp.

◆ inheritFrom()

void nfd::fw::NccStrategy::MeasurementsEntryInfo::inheritFrom ( const MeasurementsEntryInfo other)

Definition at line 284 of file ncc-strategy.cpp.

◆ updateBestFace()

void nfd::fw::NccStrategy::MeasurementsEntryInfo::updateBestFace ( const Face face)

Definition at line 301 of file ncc-strategy.cpp.

Member Data Documentation


const int nfd::fw::NccStrategy::MeasurementsEntryInfo::ADJUST_PREDICT_DOWN_SHIFT = 7

Definition at line 94 of file ncc-strategy.hpp.


const int nfd::fw::NccStrategy::MeasurementsEntryInfo::ADJUST_PREDICT_UP_SHIFT = 3

Definition at line 96 of file ncc-strategy.hpp.

◆ bestFace

weak_ptr<Face> nfd::fw::NccStrategy::MeasurementsEntryInfo::bestFace

Definition at line 88 of file ncc-strategy.hpp.


const time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::INITIAL_PREDICTION = 8192_us

Definition at line 92 of file ncc-strategy.hpp.


const time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::MAX_PREDICTION = 160_ms

Definition at line 95 of file ncc-strategy.hpp.


const time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::MIN_PREDICTION = 127_us

Definition at line 93 of file ncc-strategy.hpp.

◆ prediction

time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::prediction

Definition at line 90 of file ncc-strategy.hpp.

◆ previousFace

weak_ptr<Face> nfd::fw::NccStrategy::MeasurementsEntryInfo::previousFace

Definition at line 89 of file ncc-strategy.hpp.