nlsr::ConfParameter Class Reference

A class to house all the configuration parameters for NLSR. More...

#include <conf-parameter.hpp>

Public Member Functions

 ConfParameter ()
 
void setNetwork (const ndn::Name &networkName)
 
const ndn::Name & getNetwork () const
 
void setRouterName (const ndn::Name &routerName)
 
const ndn::Name & getRouterName () const
 
void setSiteName (const ndn::Name &siteName)
 
const ndn::Name & getSiteName () const
 
void buildRouterPrefix ()
 
const ndn::Name & getRouterPrefix () const
 
const ndn::Name & getChronosyncPrefix () const
 
const ndn::Name & getLsaPrefix () const
 
void setLsaRefreshTime (uint32_t lrt)
 
uint32_t getLsaRefreshTime () const
 
void setLsaInterestLifetime (const ndn::time::seconds &lifetime)
 
const ndn::time::seconds & getLsaInterestLifetime () const
 
void setAdjLsaBuildInterval (uint32_t interval)
 
uint32_t getAdjLsaBuildInterval () const
 
void setFirstHelloInterval (uint32_t interval)
 
uint32_t getFirstHelloInterval () const
 
void setRoutingCalcInterval (uint32_t interval)
 
uint32_t getRoutingCalcInterval () const
 
void setRouterDeadInterval (uint32_t rdt)
 
uint32_t getRouterDeadInterval () const
 
void setFaceDatasetFetchTries (uint32_t count)
 
uint32_t getFaceDatasetFetchTries () const
 
void setFaceDatasetFetchInterval (uint32_t interval)
 
const ndn::time::seconds getFaceDatasetFetchInterval () const
 
void setLogLevel (const std::string &logLevel)
 
const std::string & getLogLevel () const
 
void setInterestRetryNumber (uint32_t irn)
 
uint32_t getInterestRetryNumber () const
 
void setInterestResendTime (uint32_t irt)
 
uint32_t getInterestResendTime () const
 
uint32_t getInfoInterestInterval () const
 
void setInfoInterestInterval (uint32_t iii)
 
void setHyperbolicState (int32_t ihc)
 
int32_t getHyperbolicState () const
 
bool setCorR (double cr)
 
double getCorR () const
 
void setCorTheta (const std::vector< double > &ct)
 
std::vector< double > getCorTheta () const
 
void setMaxFacesPerPrefix (uint32_t mfpp)
 
uint32_t getMaxFacesPerPrefix () const
 
void setLogDir (const std::string &logDir)
 
const std::string & getLogDir () const
 
void setSeqFileDir (const std::string &ssfd)
 
const std::string & getSeqFileDir () const
 
bool isLog4CxxConfAvailable () const
 
void setLog4CxxConfPath (const std::string &path)
 
const std::string & getLog4CxxConfPath () const
 
void writeLog ()
 Dump the current state of all attributes to the log. More...
 

Detailed Description

A class to house all the configuration parameters for NLSR.

This class is conceptually a singleton (but not mechanically) which is just a collection of attributes that serve as a separation-of-data for NLSR's configuration variables. NLSR refers to an instance of this class for all its configuration parameters. This object is typically populated by a ConfFileProcessor reading a configuration file.

See also
nlsr::ConfFileProcessor

Definition at line 120 of file conf-parameter.hpp.

Constructor & Destructor Documentation

nlsr::ConfParameter::ConfParameter ( )
inline

Definition at line 124 of file conf-parameter.hpp.

Member Function Documentation

void nlsr::ConfParameter::buildRouterPrefix ( )
inline

Definition at line 190 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getAdjLsaBuildInterval ( ) const
inline

Definition at line 247 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::Name& nlsr::ConfParameter::getChronosyncPrefix ( ) const
inline

Definition at line 205 of file conf-parameter.hpp.

Here is the caller graph for this function:

double nlsr::ConfParameter::getCorR ( ) const
inline

Definition at line 383 of file conf-parameter.hpp.

Here is the caller graph for this function:

std::vector<double> nlsr::ConfParameter::getCorTheta ( ) const
inline

Definition at line 395 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::time::seconds nlsr::ConfParameter::getFaceDatasetFetchInterval ( ) const
inline

Definition at line 307 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getFaceDatasetFetchTries ( ) const
inline

Definition at line 295 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getFirstHelloInterval ( ) const
inline

Definition at line 259 of file conf-parameter.hpp.

Here is the caller graph for this function:

int32_t nlsr::ConfParameter::getHyperbolicState ( ) const
inline

Definition at line 367 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getInfoInterestInterval ( ) const
inline

Definition at line 349 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getInterestResendTime ( ) const
inline

Definition at line 343 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getInterestRetryNumber ( ) const
inline

Definition at line 331 of file conf-parameter.hpp.

Here is the caller graph for this function:

const std::string& nlsr::ConfParameter::getLog4CxxConfPath ( ) const
inline

Definition at line 450 of file conf-parameter.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string& nlsr::ConfParameter::getLogDir ( ) const
inline

Definition at line 419 of file conf-parameter.hpp.

Here is the caller graph for this function:

const std::string& nlsr::ConfParameter::getLogLevel ( ) const
inline

Definition at line 319 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::time::seconds& nlsr::ConfParameter::getLsaInterestLifetime ( ) const
inline

Definition at line 235 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::Name& nlsr::ConfParameter::getLsaPrefix ( ) const
inline

Definition at line 211 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getLsaRefreshTime ( ) const
inline

Definition at line 223 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getMaxFacesPerPrefix ( ) const
inline

Definition at line 407 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::Name& nlsr::ConfParameter::getNetwork ( ) const
inline

Definition at line 160 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getRouterDeadInterval ( ) const
inline

Definition at line 283 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::Name& nlsr::ConfParameter::getRouterName ( ) const
inline

Definition at line 172 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::Name& nlsr::ConfParameter::getRouterPrefix ( ) const
inline

Definition at line 198 of file conf-parameter.hpp.

Here is the caller graph for this function:

uint32_t nlsr::ConfParameter::getRoutingCalcInterval ( ) const
inline

Definition at line 271 of file conf-parameter.hpp.

Here is the caller graph for this function:

const std::string& nlsr::ConfParameter::getSeqFileDir ( ) const
inline

Definition at line 431 of file conf-parameter.hpp.

Here is the caller graph for this function:

const ndn::Name& nlsr::ConfParameter::getSiteName ( ) const
inline

Definition at line 184 of file conf-parameter.hpp.

Here is the caller graph for this function:

bool nlsr::ConfParameter::isLog4CxxConfAvailable ( ) const
inline

Definition at line 437 of file conf-parameter.hpp.

Here is the caller graph for this function:

void nlsr::ConfParameter::setAdjLsaBuildInterval ( uint32_t  interval)
inline

Definition at line 241 of file conf-parameter.hpp.

Here is the caller graph for this function:

bool nlsr::ConfParameter::setCorR ( double  cr)
inline

Definition at line 373 of file conf-parameter.hpp.

void nlsr::ConfParameter::setCorTheta ( const std::vector< double > &  ct)
inline

Definition at line 389 of file conf-parameter.hpp.

void nlsr::ConfParameter::setFaceDatasetFetchInterval ( uint32_t  interval)
inline

Definition at line 301 of file conf-parameter.hpp.

Here is the caller graph for this function:

void nlsr::ConfParameter::setFaceDatasetFetchTries ( uint32_t  count)
inline

Definition at line 289 of file conf-parameter.hpp.

Here is the caller graph for this function:

void nlsr::ConfParameter::setFirstHelloInterval ( uint32_t  interval)
inline

Definition at line 253 of file conf-parameter.hpp.

Here is the caller graph for this function:

void nlsr::ConfParameter::setHyperbolicState ( int32_t  ihc)
inline

Definition at line 361 of file conf-parameter.hpp.

void nlsr::ConfParameter::setInfoInterestInterval ( uint32_t  iii)
inline

Definition at line 355 of file conf-parameter.hpp.

void nlsr::ConfParameter::setInterestResendTime ( uint32_t  irt)
inline

Definition at line 337 of file conf-parameter.hpp.

void nlsr::ConfParameter::setInterestRetryNumber ( uint32_t  irn)
inline

Definition at line 325 of file conf-parameter.hpp.

void nlsr::ConfParameter::setLog4CxxConfPath ( const std::string &  path)
inline

Definition at line 443 of file conf-parameter.hpp.

void nlsr::ConfParameter::setLogDir ( const std::string &  logDir)
inline

Definition at line 413 of file conf-parameter.hpp.

void nlsr::ConfParameter::setLogLevel ( const std::string &  logLevel)
inline

Definition at line 313 of file conf-parameter.hpp.

void nlsr::ConfParameter::setLsaInterestLifetime ( const ndn::time::seconds &  lifetime)
inline

Definition at line 229 of file conf-parameter.hpp.

void nlsr::ConfParameter::setLsaRefreshTime ( uint32_t  lrt)
inline

Definition at line 217 of file conf-parameter.hpp.

void nlsr::ConfParameter::setMaxFacesPerPrefix ( uint32_t  mfpp)
inline

Definition at line 401 of file conf-parameter.hpp.

void nlsr::ConfParameter::setNetwork ( const ndn::Name &  networkName)
inline

Definition at line 144 of file conf-parameter.hpp.

void nlsr::ConfParameter::setRouterDeadInterval ( uint32_t  rdt)
inline

Definition at line 277 of file conf-parameter.hpp.

void nlsr::ConfParameter::setRouterName ( const ndn::Name &  routerName)
inline

Definition at line 166 of file conf-parameter.hpp.

void nlsr::ConfParameter::setRoutingCalcInterval ( uint32_t  interval)
inline

Definition at line 265 of file conf-parameter.hpp.

Here is the caller graph for this function:

void nlsr::ConfParameter::setSeqFileDir ( const std::string &  ssfd)
inline

Definition at line 425 of file conf-parameter.hpp.

void nlsr::ConfParameter::setSiteName ( const ndn::Name &  siteName)
inline

Definition at line 178 of file conf-parameter.hpp.

void nlsr::ConfParameter::writeLog ( )

Dump the current state of all attributes to the log.

Definition at line 32 of file conf-parameter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: