NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::fw::NccStrategy::MeasurementsEntryInfo Class Reference

StrategyInfo on measurements::Entry. More...

#include <ncc-strategy.hpp>

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

Public Member Functions

 MeasurementsEntryInfo ()
 
void inheritFrom (const MeasurementsEntryInfo &other)
 
shared_ptr< FacegetBestFace ()
 
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< FacebestFace
 
weak_ptr< FacepreviousFace
 
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
 

Detailed Description

StrategyInfo on measurements::Entry.

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

Constructor & Destructor Documentation

◆ MeasurementsEntryInfo()

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

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

Referenced by getTypeId().

Member Function Documentation

◆ getTypeId()

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

◆ inheritFrom()

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().

◆ getBestFace()

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

◆ updateBestFace()

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

◆ adjustPredictUp()

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

Member Data Documentation

◆ bestFace

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

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

Referenced by adjustPredictUp(), getBestFace(), and updateBestFace().

◆ previousFace

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

◆ prediction

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

◆ INITIAL_PREDICTION

const time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::INITIAL_PREDICTION = time::microseconds(8192)
static

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

Referenced by nfd::fw::NccStrategy::getMeasurementsEntryInfo().

◆ MIN_PREDICTION

const time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::MIN_PREDICTION = time::microseconds(127)
static

◆ ADJUST_PREDICT_DOWN_SHIFT

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

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

Referenced by updateBestFace().

◆ MAX_PREDICTION

const time::microseconds nfd::fw::NccStrategy::MeasurementsEntryInfo::MAX_PREDICTION = time::milliseconds(160)
static

◆ ADJUST_PREDICT_UP_SHIFT

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

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

Referenced by adjustPredictUp().


The documentation for this class was generated from the following files: