StrategyInfo on measurements::Entry. More...
#include <ncc-strategy.hpp>
Public Member Functions | |
MeasurementsEntryInfo () | |
void | inheritFrom (const MeasurementsEntryInfo &other) |
shared_ptr< Face > | getBestFace () |
void | updateBestFace (const Face &face) |
void | adjustPredictUp () |
Public Member Functions inherited from nfd::fw::StrategyInfo | |
virtual | ~StrategyInfo ()=default |
Static Public Member Functions | |
static constexpr int | getTypeId () |
Static Public Member Functions inherited from nfd::fw::StrategyInfo | |
static constexpr int | getTypeId () |
Public Attributes | |
weak_ptr< Face > | bestFace |
weak_ptr< Face > | previousFace |
time::microseconds | prediction |
Static Public Attributes | |
static const time::microseconds | INITIAL_PREDICTION = time::microseconds(8192) |
static const time::microseconds | MIN_PREDICTION = time::microseconds(127) |
static const int | ADJUST_PREDICT_DOWN_SHIFT = 7 |
static const time::microseconds | MAX_PREDICTION = time::milliseconds(160) |
static const int | ADJUST_PREDICT_UP_SHIFT = 3 |
Additional Inherited Members | |
Protected Member Functions inherited from nfd::fw::StrategyInfo | |
StrategyInfo ()=default | |
StrategyInfo on measurements::Entry.
Definition at line 52 of file ncc-strategy.hpp.
nfd::fw::NccStrategy::MeasurementsEntryInfo::MeasurementsEntryInfo | ( | ) |
Definition at line 263 of file ncc-strategy.cpp.
Referenced by getTypeId().
|
inlinestatic |
Definition at line 56 of file ncc-strategy.hpp.
References adjustPredictUp(), getBestFace(), inheritFrom(), MeasurementsEntryInfo(), and updateBestFace().
void nfd::fw::NccStrategy::MeasurementsEntryInfo::inheritFrom | ( | const MeasurementsEntryInfo & | other | ) |
Definition at line 269 of file ncc-strategy.cpp.
Referenced by nfd::fw::NccStrategy::getMeasurementsEntryInfo(), and getTypeId().
shared_ptr< Face > nfd::fw::NccStrategy::MeasurementsEntryInfo::getBestFace | ( | ) |
Definition at line 275 of file ncc-strategy.cpp.
References bestFace, and previousFace.
Referenced by nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::NccStrategy::beforeSatisfyInterest(), and getTypeId().
void nfd::fw::NccStrategy::MeasurementsEntryInfo::updateBestFace | ( | const Face & | face | ) |
Definition at line 286 of file ncc-strategy.cpp.
References ADJUST_PREDICT_DOWN_SHIFT, bestFace, MIN_PREDICTION, prediction, and previousFace.
Referenced by nfd::fw::NccStrategy::beforeSatisfyInterest(), and getTypeId().
void nfd::fw::NccStrategy::MeasurementsEntryInfo::adjustPredictUp | ( | ) |
Definition at line 310 of file ncc-strategy.cpp.
References ADJUST_PREDICT_UP_SHIFT, bestFace, MAX_PREDICTION, prediction, and previousFace.
Referenced by getTypeId(), and nfd::fw::NccStrategy::timeoutOnBestFace().
weak_ptr<Face> nfd::fw::NccStrategy::MeasurementsEntryInfo::bestFace |
Definition at line 83 of file ncc-strategy.hpp.
Referenced by adjustPredictUp(), getBestFace(), and updateBestFace().
weak_ptr<Face> nfd::fw::NccStrategy::MeasurementsEntryInfo::previousFace |
Definition at line 84 of file ncc-strategy.hpp.
Referenced by adjustPredictUp(), nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::NccStrategy::doPropagate(), getBestFace(), and updateBestFace().
time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::prediction |
Definition at line 85 of file ncc-strategy.hpp.
Referenced by adjustPredictUp(), nfd::fw::NccStrategy::afterReceiveInterest(), and updateBestFace().
|
static |
Definition at line 87 of file ncc-strategy.hpp.
Referenced by nfd::fw::NccStrategy::getMeasurementsEntryInfo().
|
static |
Definition at line 88 of file ncc-strategy.hpp.
Referenced by nfd::fw::NccStrategy::getMeasurementsEntryInfo(), and updateBestFace().
|
static |
Definition at line 89 of file ncc-strategy.hpp.
Referenced by updateBestFace().
|
static |
Definition at line 90 of file ncc-strategy.hpp.
Referenced by adjustPredictUp(), and nfd::fw::NccStrategy::getMeasurementsEntryInfo().
|
static |
Definition at line 91 of file ncc-strategy.hpp.
Referenced by adjustPredictUp().